Cannot Install Django-Q on Django 5

We have problem install Django-Q on DJango 5 when run python manage.py migrate it was error as message below

pip install django-q

INSTALLED_APPS = [
    ...
    'django_q',
]

python manage.py migrate

Q_CLUSTER = {
    'name': 'Django Q',
    'workers': 16,
    'recycle': 500,
    'timeout': 1200,
    'compress': True,
    'save_limit': 250,
    'queue_limit': 1000,
    'cpu_affinity': 1,
    'label': 'Django Q',
}

Error message:

  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/Users/imac/Desktop/Project/Test/myenv/lib/python3.12/site-packages/django_q/apps.py", line 3, in <module>
    from django_q.conf import Conf
  File "/Users/imac/Desktop/Project/Test/myenv/lib/python3.12/site-packages/django_q/conf.py", line 8, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

How to Fix the issue ?

Back to Top