Incompatibility with Django 3
See original GitHub issueFirst, 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:
- Created 4 years ago
- Reactions:4
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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)