You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/08/28 11:17:04 UTC
[GitHub] [superset] grafke opened a new issue #16492: Superset 1.3.0 add new database returns 500
grafke opened a new issue #16492:
URL: https://github.com/apache/superset/issues/16492
Adding a new database does not work on Superset 1.3.0
Stacktrace:
```Unable to load dialect <class 'sqlalchemy.dialects.mssql.adodbapi.MSDialect_adodbapi'>: type object 'MSDialect_adodbapi' has no attribute 'dbapi'
2021-08-28 11:15:02,478:WARNING:superset.db_engine_specs:Unable to load dialect <class 'sqlalchemy.dialects.mssql.adodbapi.MSDialect_adodbapi'>: type object 'MSDialect_adodbapi' has no attribute 'dbapi'
module 'sqlalchemy_clickhouse.base' has no attribute 'name'
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/security/decorators.py", line 67, in wraps
return f(self, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/superset/views/base_api.py", line 85, in wraps
raise ex
File "/usr/local/lib/python3.8/site-packages/superset/views/base_api.py", line 82, in wraps
duration, response = time_function(f, self, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/superset/utils/core.py", line 1428, in time_function
response = func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/superset/utils/log.py", line 241, in wrapper
value = f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/superset/databases/api.py", line 923, in available
for engine_spec, drivers in get_available_engine_specs().items():
File "/usr/local/lib/python3.8/site-packages/superset/db_engine_specs/__init__.py", line 130, in get_available_engine_specs
backend = dialect.name
AttributeError: module 'sqlalchemy_clickhouse.base' has no attribute 'name'
2021-08-28 11:15:02,486:ERROR:superset.views.base:module 'sqlalchemy_clickhouse.base' has no attribute 'name'
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/security/decorators.py", line 67, in wraps
return f(self, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/superset/views/base_api.py", line 85, in wraps
raise ex
File "/usr/local/lib/python3.8/site-packages/superset/views/base_api.py", line 82, in wraps
duration, response = time_function(f, self, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/superset/utils/core.py", line 1428, in time_function
response = func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/superset/utils/log.py", line 241, in wrapper
value = f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/superset/databases/api.py", line 923, in available
for engine_spec, drivers in get_available_engine_specs().items():
File "/usr/local/lib/python3.8/site-packages/superset/db_engine_specs/__init__.py", line 130, in get_available_engine_specs
backend = dialect.name
AttributeError: module 'sqlalchemy_clickhouse.base' has no attribute 'name'
```
### Expected results
Ability to add new databases.
### Actual results
A call to /api/v1/database/available/ returns:
{"errors": [{"message": "module 'sqlalchemy_clickhouse.base' has no attribute 'name'", "error_type": "GENERIC_BACKEND_ERROR", "level": "error", "extra": {"issue_codes": [{"code": 1011, "message": "Issue 1011 - Superset encountered an unexpected error."}]}}]}
#### Screenshots
<img width="1788" alt="image" src="https://user-images.githubusercontent.com/9698688/131216048-a17d2001-d733-45c5-9f69-2005381dbacd.png">
#### How to reproduce the bug
1. Go to /databaseview/list/
2. Open developer console
2. Click on + Database
4. See error
### Environment
(please complete the following information):
- superset version: 1.3.0
- python version: 3.8.11
- node.js version: 14
- any feature flags active: N/A
### Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [X] I have checked the superset logs for python stacktraces and included it here as text if there are any.
- [X] I have reproduced the issue with at least the latest released version of superset.
- [X] I have checked the issue tracker for the same issue and I haven't found one similar.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] villebro closed issue #16492: Superset 1.3.0 add new database returns 500
Posted by GitBox <gi...@apache.org>.
villebro closed issue #16492:
URL: https://github.com/apache/superset/issues/16492
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] machzqcq commented on issue #16492: Superset 1.3.0 add new database returns 500
Posted by GitBox <gi...@apache.org>.
machzqcq commented on issue #16492:
URL: https://github.com/apache/superset/issues/16492#issuecomment-912203821
I can confirm that uninstalling `sqlalchemy-clickhouse` and installing `clickhouse-sqlalchemy` disappears the reported UI error. Tried on ubuntu 20.04. Here are the steps
```
pip3 uninstall sqlalchemy-clickhouse
pip3 install wheel. # if you get error on setup.py and not able to bdist_wheel ~ish
pip3 install clickhouse-sqlalchemy
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] grafke commented on issue #16492: Superset 1.3.0 add new database returns 500
Posted by GitBox <gi...@apache.org>.
grafke commented on issue #16492:
URL: https://github.com/apache/superset/issues/16492#issuecomment-913599476
Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] villebro commented on issue #16492: Superset 1.3.0 add new database returns 500
Posted by GitBox <gi...@apache.org>.
villebro commented on issue #16492:
URL: https://github.com/apache/superset/issues/16492#issuecomment-908469709
Have you tried `clickhouse-sqlalchemy` You seem to be running `sqlalchemy-clickhouse` which some have said to not work as well, so switching the connector might help.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] villebro commented on issue #16492: Superset 1.3.0 add new database returns 500
Posted by GitBox <gi...@apache.org>.
villebro commented on issue #16492:
URL: https://github.com/apache/superset/issues/16492#issuecomment-913589330
Thanks for confirming - closing
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] villebro commented on issue #16492: Superset 1.3.0 add new database returns 500
Posted by GitBox <gi...@apache.org>.
villebro commented on issue #16492:
URL: https://github.com/apache/superset/issues/16492#issuecomment-908469709
Have you tried `clickhouse-sqlalchemy` You seem to be running `sqlalchemy-clickhouse` which some have said to not work as well, so switching the connector might help.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org