-
-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import Error running qcluster command Python 3.7 Django 2.1.5 #331
Comments
Can't reproduce this. Works fine on Python 3.7.2 with Django 2.1.5.
…On Sat, Jan 19, 2019 at 4:52 AM Tharshan Muthulingam < ***@***.***> wrote:
Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "ENV/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "ENV/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "ENV/lib/python3.7/site-packages/django/core/management/__init__.py", line 224, in fetch_command
klass = load_command_class(app_name, subcommand)
File "ENV/lib/python3.7/site-packages/django/core/management/__init__.py", line 36, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "ENV/versions/3.7.0/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 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "ENV/lib/python3.7/site-packages/django_q/management/commands/qcluster.py", line 4, in <module>
from django_q.cluster import Cluster
File "ENV/lib/python3.7/site-packages/django_q/cluster.py", line 24, in <module>
from django_q import tasks
File "ENV/lib/python3.7/site-packages/django_q/tasks.py", line 12, in <module>
from django_q.cluster import worker, monitor
ImportError: cannot import name 'worker' from 'django_q.cluster' (ENV/lib/python3.7/site-packages/django_q/cluster.py)
Sentry is attempting to send 1 pending error messages
Waiting up to 10 seconds
Press Ctrl-C to quit
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#331>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADwINQcaGSCPLzEXIHMjNTaiKdvQYEJBks5vEpZ8gaJpZM4aI8Zv>
.
|
I'm running in to this also on python 3.6.4 and Django 1.11.18. |
Looks to me like a circular import:
|
@viperfx could it have been that you were running Django 1.11? |
Is this a known issue on Django 1.11? |
I'm running into this issue as well...
|
+1 Django-q 1.0.1 Happens when directly initiating a cluster in my code (not using the management command) |
Same with Django 2.1.7, django-q 1.0.1, python 3.6.8 |
I have same issue. Python 3.7.2,Django 2.1.5,django-q 1.0.1 |
@Koed00 I think it's worth reviewing this? Seems to be a long list of people having this issue |
Can reproduce here:
|
Alternative PR created at #356 |
Put your |
I'm not using |
Guys! - had the same issue with Python 3.7.0 - and Django 2.1.7 Solved it - the issue was that I didn't have |
Perhaps, but that's not the real, ongoing solution. I mean, |
The text was updated successfully, but these errors were encountered: