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

Error on django > 3 when django-utils-six is not installed #78

Open
jasperoosthoek opened this issue May 11, 2021 · 0 comments
Open

Error on django > 3 when django-utils-six is not installed #78

jasperoosthoek opened this issue May 11, 2021 · 0 comments

Comments

@jasperoosthoek
Copy link

jasperoosthoek commented May 11, 2021

After installing django-permanent in a docker container I tried to import:

from django_permanent.models import PermanentModel

and got this error:

ImportError                               Traceback (most recent call last)
<ipython-input-2-3bd377b0f254> in <module>
----> 1 from django_permanent.models import PermanentModel

/usr/local/lib/python3.8/site-packages/django_permanent/models.py in <module>
      3 from django.db.models.deletion import Collector
      4 from . import settings
----> 5 from .deletion import *  # NOQA
      6 from .related import *  # NOQA
      7 from .query import NonDeletedQuerySet, DeletedQuerySet, PermanentQuerySet

/usr/local/lib/python3.8/site-packages/django_permanent/deletion.py in <module>
      7 from django.db.models import signals, sql
      8 from django.db.models.deletion import Collector
----> 9 from django.utils import six
     10 from django.utils.timezone import now
     11 from django import VERSION as DJANGO_VERSION

After installing django-utils-six I was able to import PermanentModel

pip install django-utils-six

More context: https://stackoverflow.com/questions/59193514/importerror-cannot-import-name-six-from-django-utils

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

1 participant