question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Import Error running qcluster command Python 3.7 Django 2.1.5

See original GitHub issue
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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
lambycommented, May 31, 2019

Perhaps, but that’s not the real, ongoing solution. I mean, django-q should not require using the Django admin, at the very least, and the order of INSTALLED_APPS should not make any difference.

2reactions
lambycommented, Apr 26, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: Couldn't import Django - Stack Overflow
Check that you have installed Django; by executing import django in python. you mustn't see ModuleNotFoundError if everything's ok.
Read more >
Cannot Import Views In Django 2.1.4 Python 3.7.0 Win 7 - ADocLib
I am getting strange error in Django when trying to run tests: Python Version 3.7.2 ... Import Error running qcluster command Python 3.7...
Read more >
After package django project with pyinstaller, with manage ...
with development mode, after install django-q python package, you can run python manage.py qcluster releated with django-q.
Read more >
Installation — Django Q 1.3.6 documentation
Run Django Q cluster in order to handle tasks async: $ python manage.py qcluster ... Please note that Django versions below 2.0 do...
Read more >
django-q - PyPI
Warning. Since Python 3.7 async became a reserved keyword and was refactored to async_task ... Run Django migrations to create the database tables:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found