Incompatible with Django 4.x
See original GitHub issueUsing this package with django 4.x gives the following error:
Traceback (most recent call last):
File "/opt/pysetup/.venv/lib/python3.10/site-packages/rest_framework/settings.py", line 177, in import_from_string
return import_string(val)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/django/utils/module_loading.py", line 30, in import_string
return cached_import(module_path, class_name)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/django/utils/module_loading.py", line 15, in cached_import
import_module(module_path)
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/opt/pysetup/.venv/lib/python3.10/site-packages/drf_firebase_auth/authentication.py", line 11, in <module>
from django.utils.encoding import smart_text
ImportError: cannot import name 'smart_text' from 'django.utils.encoding' (/opt/pysetup/.venv/lib/python3.10/site-packages/django/utils/encoding.py)
Smart text has been deprecated since django 3.0 and removed in 4.0. I’m willing to submit a PR that fixes this
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
[BUG] Incompatibility with Django 4.0 #11924 - bokeh ... - GitHub
I was trying to use "tabulator" with "panel" and I am using Django 4. According to documentation, I should change bokeh.server.django with ...
Read more >Django 4.0 release notes
These release notes cover the new features, as well as some backwards incompatible changes you'll want to be aware of when upgrading from...
Read more >Django Project Install error (The conflict is caused by
Django needs asgiref > 4 but you are forcing to install 3.2.5 , that's why there is a conflict occurring. Share. Share a...
Read more >Changelog — django-configurations 2.4 documentation
BACKWARD INCOMPATIBLE Drop compatibility for Django < 3.2. BACKWARD INCOMPATIBLE Drop ... BACKWARD INCOMPATIBLE Drop support for Python 2.7 and 3.5.
Read more >Incompatibility with Django 4.0.6 (#439) - GNU Mailman - GitLab
And for the "dev" image the incompatibility should be resolved in urls.py file as well as in PostgreSQL database version, since Django 4.0 ......
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
It’s a shame this hasn’t yet made it into a release. Pretty vital update to keep the library current.
@garyburgmann are you still working on this project?
@garyburgmann check my PR on this issue, should be good to merge
@adamduren you can set your requirements.txt to install from my fork while we wait for a merge,
pip install git+https://github.com/quorth0n/drf-firebase-auth@issue-40