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/03/16 07:13:31 UTC
[GitHub] [superset] mschuch opened a new issue #13640: Could not load database driver: TrinoEngineSpec
mschuch opened a new issue #13640:
URL: https://github.com/apache/superset/issues/13640
I followed the trino tutorial and started superset with the Docker Compose of the latest git repository.
And now i get always the error:
ERROR: Could not load database driver: TrinoEngineSpec
### Expected results
I have access to trino database
### Actual results
Error Message
#### How to reproduce the bug
1. Clone git repo
2. Add sqlalchemy-trino to requirements-local.txt (https://superset.apache.org/docs/databases/dockeradddrivers)
3. Execute "docker-compose -f docker-compose-non-dev.yml up"
4. Add trino://{username}:{password}@{hostname}:{port}/{catalog} to database and see error
### Environment
(please complete the following information):
- superset version: `docker version: latest`
- python version: `python --version`
Python 3.7.9
Flask 1.1.2
Werkzeug 1.0.1
### 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.
### Additional context
```
pip freeze output of worker:
simplejson==3.17.2
six==1.15.0
slackclient==2.5.0
SQLAlchemy==1.3.20
sqlalchemy-trino==0.2.0
SQLAlchemy-Utils==0.36.8
sqlparse==0.3.0
tableschema==1.20.0
tabulator==1.52.5
thrift==0.13.0
thrift-sasl==0.4.2
trino==0.305.0
```
----------------------------------------------------------------
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.
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] manuelreis commented on issue #13640: Could not load database driver: TrinoEngineSpec
Posted by GitBox <gi...@apache.org>.
manuelreis commented on issue #13640:
URL: https://github.com/apache/superset/issues/13640#issuecomment-801772726
same issue here
----------------------------------------------------------------
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.
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] nytai closed issue #13640: Could not load database driver: TrinoEngineSpec
Posted by GitBox <gi...@apache.org>.
nytai closed issue #13640:
URL: https://github.com/apache/superset/issues/13640
--
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.
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] dungdm93 commented on issue #13640: Could not load database driver: TrinoEngineSpec
Posted by GitBox <gi...@apache.org>.
dungdm93 commented on issue #13640:
URL: https://github.com/apache/superset/issues/13640#issuecomment-801834941
I just check it out, there is no package `sqlalchemy-trino` installed inside `apache/superset:latest` image.

In this case, I'd like to suggest u using a custom image with `pip install apache-superset[trino]`
----------------------------------------------------------------
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.
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] liamnv commented on issue #13640: Could not load database driver: TrinoEngineSpec
Posted by GitBox <gi...@apache.org>.
liamnv commented on issue #13640:
URL: https://github.com/apache/superset/issues/13640#issuecomment-801746743
@dungdm93
----------------------------------------------------------------
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.
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] dungdm93 edited a comment on issue #13640: Could not load database driver: TrinoEngineSpec
Posted by GitBox <gi...@apache.org>.
dungdm93 edited a comment on issue #13640:
URL: https://github.com/apache/superset/issues/13640#issuecomment-801806989
@mschuch, @manuelreis
Are you install superset from [pypi](https://pypi.org/project/apache-superset/) or GitHub?
----------------------------------------------------------------
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.
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] mschuch commented on issue #13640: Could not load database driver: TrinoEngineSpec
Posted by GitBox <gi...@apache.org>.
mschuch commented on issue #13640:
URL: https://github.com/apache/superset/issues/13640#issuecomment-802603886
@dungdm93
Thank you now it works as intended.
--
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.
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] dungdm93 commented on issue #13640: Could not load database driver: TrinoEngineSpec
Posted by GitBox <gi...@apache.org>.
dungdm93 commented on issue #13640:
URL: https://github.com/apache/superset/issues/13640#issuecomment-801806989
Are you install superset from [pypi](https://pypi.org/project/apache-superset/) or GitHub?
----------------------------------------------------------------
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.
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] manuelreis commented on issue #13640: Could not load database driver: TrinoEngineSpec
Posted by GitBox <gi...@apache.org>.
manuelreis commented on issue #13640:
URL: https://github.com/apache/superset/issues/13640#issuecomment-804787453
@dungdm93 I was using the helm chart contained in this repo.
--
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.
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] dungdm93 commented on issue #13640: Could not load database driver: TrinoEngineSpec
Posted by GitBox <gi...@apache.org>.
dungdm93 commented on issue #13640:
URL: https://github.com/apache/superset/issues/13640#issuecomment-801953973
@mschuch I just realize that `superset-webserver` in the docker-compose use default command (`docker/docker-entrypoint.sh`)
which don't load `docker/docker-bootstrap.sh` file, and then don't install the dependencies is defined in `requirements-local.txt`
https://github.com/apache/superset/blob/adc247b7e4fade7ef0d68cb07df5e3aa6bf9a677/docker-compose-non-dev.yml#L43-L51
For now, you could workaround by overriding docker command like this:

----------------------------------------------------------------
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.
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] mschuch commented on issue #13640: Could not load database driver: TrinoEngineSpec
Posted by GitBox <gi...@apache.org>.
mschuch commented on issue #13640:
URL: https://github.com/apache/superset/issues/13640#issuecomment-801847615
@dungdm93 But i added "sqlalchemy-trino" to the requirements-local.txt, is that not sufficient?
----------------------------------------------------------------
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.
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] dungdm93 commented on issue #13640: Could not load database driver: TrinoEngineSpec
Posted by GitBox <gi...@apache.org>.
dungdm93 commented on issue #13640:
URL: https://github.com/apache/superset/issues/13640#issuecomment-801881410
Sorry, I forgot `Add sqlalchemy-trino to requirements-local.txt`. It's MUST work.
----------------------------------------------------------------
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.
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] dungdm93 commented on issue #13640: Could not load database driver: TrinoEngineSpec
Posted by GitBox <gi...@apache.org>.
dungdm93 commented on issue #13640:
URL: https://github.com/apache/superset/issues/13640#issuecomment-804794827
@manuelreis you shoud add `sqlalchemy-trino` to `additionalRequirements`
--
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.
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] mschuch commented on issue #13640: Could not load database driver: TrinoEngineSpec
Posted by GitBox <gi...@apache.org>.
mschuch commented on issue #13640:
URL: https://github.com/apache/superset/issues/13640#issuecomment-801816160
@dungdm93
I installed superset from the GitHub repo with docker-compose
`docker-compose -f docker-compose-non-dev.yml up`
----------------------------------------------------------------
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.
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