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 on Django master (3.0) due to django.utils.six

See original GitHub issue

django.utils.six has been removed on Django master, so this fails unless six is installed

try:
    from django.utils import six
except ImportError:
    import six

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
kstopacommented, Dec 29, 2019

I’ve already created a pull request solving this issue

1reaction
therefromherecommented, Oct 24, 2019

Looks like this project is abandoned, we’ve migrated to https://github.com/rpkilby/jsonfield2 instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: cannot import name 'six' from 'django.utils'
It tells you two important things: ... It is first telling you it cannot import the six module from django.utils , which is...
Read more >
ImportError: cannot import name 'six' from 'django.utils'
The most common cause of the error is having an outdated version of a package that uses django.utils.six under the hood.
Read more >
ImportError cannot import name six from django utils path-to ...
ecently, I upgraded the version of Django framework from 2.0.6 to 3.0 and suddenly after calling python manage.py shell command, ...
Read more >
Import error on Django master (3.0) due to django.utils.six #225
django.utils.six has been removed on Django master, so this fails unless six is installed try: from django.utils import six except ImportError: import six....
Read more >
Removing and renaming Django's Python 2 related helpers
A related issue is the naming of the force_text() / force_str() and smart_text() / smart_str() functions. Aymeric proposed a PR to change all...
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