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 16:42:07 UTC
[GitHub] [incubator-superset] bzmatteo72 commented on issue #11765: Apache Superset: cannot send email
bzmatteo72 commented on issue #11765:
URL: https://github.com/apache/incubator-superset/issues/11765#issuecomment-736671848
hello,
i have resolved the previous issue. Now I'm able to start correctly Superset but i have still problem with Celery worker when i run this command to start the service as per documentation:
celery worker --app=superset.tasks.celery_app:app --pool=prefork -O fair -c 4
This is the error that i get (it seems is not able to connect to my postgresql db but the connection works well when itry to use trhe same in Superset web portal)
(env4) matteo@mbalzarotti-NB:~/superset$ celery worker --app=superset.tasks.celery_app:app --pool=prefork -O fair -c 4
Loaded your LOCAL configuration at [/home/matteo/superset/config/superset_config.py]
logging was configured successfully
INFO:superset.utils.logging_configurator:logging was configured successfully
/home/matteo/superset/env4/lib/python3.7/site-packages/flask_caching/__init__.py:192: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
"Flask-Caching: CACHE_TYPE is set to null, "
No PIL installation found
INFO:superset.utils.screenshots:No PIL installation found
[2020-12-01 17:38:19,687: CRITICAL/MainProcess] Unrecoverable error: ModuleNotFoundError("No module named 'postgresql'")Traceback (most recent call last):
File "/home/matteo/superset/env4/lib/python3.7/site-packages/kombu/utils/objects.py", line 42, in __get__
return obj.__dict__[self.__name__]
KeyError: 'backend'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/matteo/superset/env4/lib/python3.7/site-packages/celery/worker/worker.py", line 208, in start
self.blueprint.start(self)
File "/home/matteo/superset/env4/lib/python3.7/site-packages/celery/bootsteps.py", line 115, in start
self.on_start()
File "/home/matteo/superset/env4/lib/python3.7/site-packages/celery/apps/worker.py", line 140, in on_start
self.emit_banner()
File "/home/matteo/superset/env4/lib/python3.7/site-packages/celery/apps/worker.py", line 155, in emit_banner
' \n', self.startup_info(artlines=not use_image))),
File "/home/matteo/superset/env4/lib/python3.7/site-packages/celery/apps/worker.py", line 218, in startup_info
results=self.app.backend.as_uri(),
File "/home/matteo/superset/env4/lib/python3.7/site-packages/kombu/utils/objects.py", line 44, in __get__
value = obj.__dict__[self.__name__] = self.__get(obj)
File "/home/matteo/superset/env4/lib/python3.7/site-packages/celery/app/base.py", line 1193, in backend
return self._get_backend()
File "/home/matteo/superset/env4/lib/python3.7/site-packages/celery/app/base.py", line 910, in _get_backend
self.loader)
File "/home/matteo/superset/env4/lib/python3.7/site-packages/celery/app/backends.py", line 74, in by_url
return by_name(backend, loader), url
File "/home/matteo/superset/env4/lib/python3.7/site-packages/celery/app/backends.py", line 54, in by_name
cls = symbol_by_name(backend, aliases)
File "/home/matteo/superset/env4/lib/python3.7/site-packages/kombu/utils/imports.py", line 57, in symbol_by_name
module = imp(module_name, package=package, **kwargs)
File "/home/matteo/superset/env4/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'postgresql'
(env4) matteo@mbalzarotti-NB:~/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