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

Support Django 3.0 #255

Open
snake-soft opened this issue Oct 24, 2020 · 3 comments
Open

Support Django 3.0 #255

snake-soft opened this issue Oct 24, 2020 · 3 comments

Comments

@snake-soft
Copy link

In Django 3 they dropped support for Python2 compatibility APIs:
https://docs.djangoproject.com/en/3.0/releases/3.0/#removed-private-python-2-compatibility-apis

Because of that django-oscar-paypal threw an error when using it with Django3:
ImportError: cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding' (/home/me/.virtualenvs/oscar/lib/python3.7/site-packages/django/utils/encoding.py)

I found the solution for that problem here:
https://forum.djangoproject.com/t/python-2-unicode-compatible/715

In short - The compatibility api is available as standalone package:
https://pypi.org/project/six/


Are there any other issues known that could avoid the django 3 compatibility?

@Dihfahsih1
Copy link

To install oscar with django 3.x, do the following:

pip3 install django-tables2
pip3 install django-oscar==3.0a0
pip3 install Django==3.1.3

@fluxtom
Copy link

fluxtom commented Aug 20, 2021

The latest version of django-oscar-paypal seems to fix the issue, but it is not in pypi yet.

pip3 install git+https://github.com/django-oscar/django-oscar-paypal.git fixed the issue for me.

@laf0rge
Copy link

laf0rge commented Jun 20, 2022

given that it's close to one year since @fluxtom has repored the git master works but is not in pip: Can the pip metadata please be updated?

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

4 participants