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 2020/12/01 18:01:56 UTC

[GitHub] [incubator-superset] Shkurupii commented on issue #11765: Apache Superset: cannot send email

Shkurupii commented on issue #11765:
URL: https://github.com/apache/incubator-superset/issues/11765#issuecomment-736721734


   `ModuleNotFoundError: No module named 'postgresql'` means your celery backend is misconfigured.  I have checked celery backend config https://docs.celeryproject.org/en/latest/userguide/configuration.html#conf-database-result-backend and your latest superset_config.py file and found smth. See an example from documentation:
   ```
   # postgresql
   result_backend = 'db+postgresql://scott:tiger@localhost/mydatabase'
   ```
   I guess you should update your config with 
   `CELERY_RESULT_BACKEND = "db+postgresql+psycopg2://matteo:matteo@127.0.0.1:5432/superset_loc"` or `CELERY_RESULT_BACKEND = "db+postgresql://matteo:matteo@127.0.0.1:5432/superset_loc"` and re-run celery.
   
   In my 1st example I have also different connection strings for:
   ```
   CELERY_RESULT_BACKEND = 'db+mysql://superset:passsssword@localhost/superset'
   SQLALCHEMY_DATABASE_URI = 'mysql://superset:passsssword@localhost/superset'
   ```


----------------------------------------------------------------
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