Closed baloda closed 4 years ago
You have redis
in your extras
but not rabbitmq
so that could be one issue, also it looks like you might be running python from outside of your virtualenv. Beyond that, I'm not sure how else I could help (this is due to your environment being misconfigured so it's not a bug in django_dramatiq) so I'm closing this. Sorry!
i tried various hit and try case. in each time these errors.
I am getting couple of errors like these: No module named 'pika' (even i have installed the pika) heartbeat_interval 0 no app with admin label some thing like these not sure
i am not sure if i am doing correct configuration, my Pipfile is: [packages] dj-database-url = "" django = "" django-dramatiq = "" dramatiq = {extras = ["watch", "redis"]} gunicorn = "" redis = "" mysqlclient = "" whitenoise = "*"
Exception in thread django-main-thread: Traceback (most recent call last): File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 870, in run self._target(*self._args, self._kwargs) File "/Users/dharmveer.baloda/.local/share/virtualenvs/django_dramatiq_example-oGmvUKz8/lib/python3.7/site-packages/django/utils/autoreload.py", line 54, in wrapper fn(*args, *kwargs) File "/Users/dharmveer.baloda/.local/share/virtualenvs/django_dramatiq_example-oGmvUKz8/lib/python3.7/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run autoreload.raise_last_exception() File "/Users/dharmveer.baloda/.local/share/virtualenvs/django_dramatiq_example-oGmvUKz8/lib/python3.7/site-packages/django/utils/autoreload.py", line 77, in raise_last_exception raise _exception[1] File "/Users/dharmveer.baloda/.local/share/virtualenvs/django_dramatiq_example-oGmvUKz8/lib/python3.7/site-packages/django/core/management/init.py", line 337, in execute autoreload.check_errors(django.setup)() File "/Users/dharmveer.baloda/.local/share/virtualenvs/django_dramatiq_example-oGmvUKz8/lib/python3.7/site-packages/django/utils/autoreload.py", line 54, in wrapper fn(args, kwargs) File "/Users/dharmveer.baloda/.local/share/virtualenvs/django_dramatiq_example-oGmvUKz8/lib/python3.7/site-packages/django/init.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/Users/dharmveer.baloda/.local/share/virtualenvs/django_dramatiq_example-oGmvUKz8/lib/python3.7/site-packages/django/apps/registry.py", line 91, in populate app_config = AppConfig.create(entry) File "/Users/dharmveer.baloda/.local/share/virtualenvs/django_dramatiq_example-oGmvUKz8/lib/python3.7/site-packages/django/apps/config.py", line 116, in create mod = import_module(mod_path) File "/Users/dharmveer.baloda/.local/share/virtualenvs/django_dramatiq_example-oGmvUKz8/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Users/dharmveer.baloda/.local/share/virtualenvs/django_dramatiq_example-oGmvUKz8/lib/python3.7/site-packages/django_dramatiq/apps.py", line 107, in
DjangoDramatiqConfig.initialize()
File "/Users/dharmveer.baloda/.local/share/virtualenvs/django_dramatiq_example-oGmvUKz8/lib/python3.7/site-packages/django_dramatiq/apps.py", line 67, in initialize
broker_class = load_class(broker_path)
File "/Users/dharmveer.baloda/.local/share/virtualenvs/django_dramatiq_example-oGmvUKz8/lib/python3.7/site-packages/django_dramatiq/utils.py", line 7, in load_class
module = importlib.import_module(module_path)
File "/Users/dharmveer.baloda/.local/share/virtualenvs/django_dramatiq_example-oGmvUKz8/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Users/dharmveer.baloda/.local/share/virtualenvs/django_dramatiq_example-oGmvUKz8/lib/python3.7/site-packages/dramatiq/brokers/rabbitmq.py", line 25, in
import pika
ModuleNotFoundError: No module named 'pika'