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.

Django 3 doesn't contain 'six' anymore

See original GitHub issue

See https://docs.djangoproject.com/en/3.0/releases/3.0/#removed-private-python-2-compatibility-apis

  File "/home/tic/Development/karrot-docker/karrot-backend/karrot/groups/models.py", line 13, in <module>
    from versatileimagefield.fields import VersatileImageField
  File "/home/tic/Development/karrot-docker/karrot-backend/env/lib/python3.7/site-packages/versatileimagefield/fields.py", line 12, in <module>
    from .files import VersatileImageFieldFile, VersatileImageFileDescriptor
  File "/home/tic/Development/karrot-docker/karrot-backend/env/lib/python3.7/site-packages/versatileimagefield/files.py", line 9, in <module>
    from django.utils import six
ImportError: cannot import name 'six' from 'django.utils' (/home/tic/Development/karrot-docker/karrot-backend/env/lib/python3.7/site-packages/django/utils/__init__.py)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
respondcreatecommented, Dec 29, 2019

Hey @ndavydovdev, @dmptrluke and @tiltec!

This PR has been merged and added to the new 2.0 release, here’s how to get it:

$ pip install django-versatileimagefield==2.0
1reaction
respondcreatecommented, Dec 18, 2019

Hey @ndavydovdev, @dmptrluke and @tiltec!

Apologies for not getting to this yet as I’ve been absolutely slammed. I promise I’ll get this sorted and have a new Django 3.0-ready release minuted by this weekend. Stay tuned!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting error cannot import name 'six' from 'django.utils' when ...
I have checked in folder Lib\site-packages\django\utils and not found and six.py file but still from Lib\site-packages\jsonfield\encode.py ...
Read more >
Databases | Django documentation
Django opens a connection to the database when it first makes a database query. It keeps this connection open and reuses it in...
Read more >
Static File Errors With New Version of Django - YouTube
... to version 3.1 and now we need to make a change to our settings.py file to deal with our static files.In the...
Read more >
How to build a React application in a Django project
Learning about hybrid applications by creating a single-page React app. Exploring the common issues that come up and how to solve them.
Read more >
Chapter 6: The Django Admin Site
(The order of INSTALLED_APPS doesn't matter, but we like to keep things alphabetical so it's easy for a human to read.) Make sure...
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