Skip to content
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

django-timezone-field breaking celery-beat for Django 3 #304

Closed
npsqm opened this issue Feb 3, 2020 · 8 comments
Closed

django-timezone-field breaking celery-beat for Django 3 #304

npsqm opened this issue Feb 3, 2020 · 8 comments

Comments

@npsqm
Copy link

npsqm commented Feb 3, 2020

Summary:

django-celery-beat-1.6.0 does not work with Django 3 because of it's dependency on django-timezone-field<4.0 because timezone-field<4.0 does not support Django 3. The breaking dependency change was introduced as a reaction to #296

  • Celery Version: 4.4.0 (cliffs)
  • Celery-Beat Version: django-celery-beat-1.6.0
  • Djang Version: 3.0.3

Exact steps to reproduce the issue:

  1. Install django-celery-beat-1.6.0 and Django 3.0.3
  2. call django.setup() in your code (or do python3 manage.py shell I guess)
Traceback (most recent call last):

[...]
  File "/usr/local/lib/python3.7/dist-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.7/dist-packages/django/apps/registry.py", line 114, in populate
    app_config.import_models()
  File "/usr/local/lib/python3.7/dist-packages/django/apps/config.py", line 211, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/local/lib/python3.7/dist-packages/django_celery_beat/models.py", line 6, in <module>
    import timezone_field
  File "/usr/local/lib/python3.7/dist-packages/timezone_field/__init__.py", line 1, in <module>
    from timezone_field.fields import TimeZoneField
  File "/usr/local/lib/python3.7/dist-packages/timezone_field/fields.py", line 5, in <module>
    from django.utils import six
ImportError: cannot import name 'six' from 'django.utils' (/usr/local/lib/python3.7/dist-packages/django/utils/__init__.py)
@ErwinJunge
Copy link

ErwinJunge commented Feb 3, 2020

@ErwinJunge
Copy link

#300 will fix this

@rmk135
Copy link

rmk135 commented Feb 4, 2020

Have just faced the same issue.

Does anybody know when the hotfix could be published?

@frankyjquintero
Copy link

@auvipy @thedrow Please, an early release is needed to support Django 3.0

@shintojoseph1234
Copy link

Fixed this issue in #300

Uninstall the existing version using this code

pip uninstall django-celery-beat==1.6.0

Install the fixed version from master using the below code

pip install https://github.com/celery/django-celery-beat/zipball/master#egg=django-celery-beat

@auvipy You can close this issue now. Thanks

@auvipy auvipy closed this as completed Feb 7, 2020
@MartinFalatic
Copy link

For those who install from pinned releases, is a numbered release with this fix coming soon?

@auvipy
Copy link
Member

auvipy commented Feb 7, 2020

yes

@MartinFalatic
Copy link

This appears to be related to #308 - still awaiting a release with this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants