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.

Incompatibility with Django 3

See original GitHub issue

First, thank you very much for this great plugin!

While testing the deployment of an app using django-private-storage in an environment with the recently release Django 3.0, I noticed that django-private-storage attempts to import django.utils.six in fields.py.

As Django 3.0 has removed private Python 2 compatibility APIs like django.utils.six, trying to import it raises a ModuleNotFoundError.

See https://docs.djangoproject.com/en/3.0/releases/3.0/#removed-private-python-2-compatibility-apis for details; the Django release notes suggest to either remove usage of this vendored library or switching to using six directly.

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
wiegandmcommented, Dec 6, 2019

I have created two PRs (#42 and #45) which should address this issue – more specifically, a tox test matrix built on the changes in #43 also succeeds for Django 3.0.

Merging both #42 and #45 would make django-private-storage work with Django 3 (AFAICT, at least the unit tests succeed), but at the price of losing compatibility with Python 2.7.

I leave it up to the maintainers of this fine project to make the decision, but in my humble opinion, supporting Django 3.0 would be preferable to supporting Python 2.7 past the upcoming EOL.

2reactions
vdboorcommented, Jan 14, 2020

Thanks for your work! Django 3.0 support is fixed in 2.2.2!

I’ve used your PR’s as inspiration, but implemented it in a python2 compatible way so I could do a minor version bump instead of major release that drops compatibility (see f0176505f6b038d171dea7f2422be06751c22469)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django 3.0 release notes
Python compatibility ¶. Django 3.0 supports Python 3.6, 3.7, 3.8, and 3.9 (as of 3.0.11). We highly recommend and only officially support the ......
Read more >
Django 3 incompatibility · Issue #26 · oscarmcm/django-places ...
DESCRIPTION I try install Django-places, but Django 3 remove six API. django.utils.six - Remove usage of this vendored library or switch to six....
Read more >
Django 3 incompatibility (#44) · Issues · Information Services ...
Fails to build with django 3: Traceback (most recent call last):
Read more >
MySQL Bugs: #98346: Compatibility issue with Django 3.x
Description: Hi, Django in the the release 3.x remove support for Python 2, some APIs bundled get removed, including six.
Read more >
Incompatibility Issue in upgrade django from 2.4 to 3.0
I maintain a system and update it frequently because it's been used a lot since django 1.8, currently the project is on django...
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