django-rest-framework-social-oauth2
django-rest-framework-social-oauth2 copied to clipboard
Dependency on django-braces leads to import error: cannot import name 'six' from 'django.utils'
I'm not sure what change I made that led to this, but suddenly I can't start my Django server. It seems to be due to a dependency django-rest-framework-social-oauth2 has on the django-braces package, which hasn't been updated in so long it's not compatible with Python 3.7.
Any fixes, patches, or workarounds appreciated!
Exception in thread django-main-thread:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/Users/dylan/.local/share/virtualenvs/server-2uc2X-TS/lib/python3.7/site-packages/django/utils/autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "/Users/dylan/.local/share/virtualenvs/server-2uc2X-TS/lib/python3.7/site-packages/django/core/management/commands/runserver.py", line 117, in inner_run
self.check(display_num_errors=True)
File "/Users/dylan/.local/share/virtualenvs/server-2uc2X-TS/lib/python3.7/site-packages/django/core/management/base.py", line 395, in check
include_deployment_checks=include_deployment_checks,
File "/Users/dylan/.local/share/virtualenvs/server-2uc2X-TS/lib/python3.7/site-packages/django/core/management/base.py", line 382, in _run_checks
return checks.run_checks(**kwargs)
File "/Users/dylan/.local/share/virtualenvs/server-2uc2X-TS/lib/python3.7/site-packages/django/core/checks/registry.py", line 72, in run_checks
new_errors = check(app_configs=app_configs)
File "/Users/dylan/.local/share/virtualenvs/server-2uc2X-TS/lib/python3.7/site-packages/django/core/checks/urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "/Users/dylan/.local/share/virtualenvs/server-2uc2X-TS/lib/python3.7/site-packages/django/core/checks/urls.py", line 23, in check_resolver
return check_method()
File "/Users/dylan/.local/share/virtualenvs/server-2uc2X-TS/lib/python3.7/site-packages/django/urls/resolvers.py", line 406, in check
for pattern in self.url_patterns:
File "/Users/dylan/.local/share/virtualenvs/server-2uc2X-TS/lib/python3.7/site-packages/django/utils/functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "/Users/dylan/.local/share/virtualenvs/server-2uc2X-TS/lib/python3.7/site-packages/django/urls/resolvers.py", line 587, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/Users/dylan/.local/share/virtualenvs/server-2uc2X-TS/lib/python3.7/site-packages/django/utils/functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "/Users/dylan/.local/share/virtualenvs/server-2uc2X-TS/lib/python3.7/site-packages/django/urls/resolvers.py", line 580, in urlconf_module
return import_module(self.urlconf_name)
File "/Users/dylan/.local/share/virtualenvs/server-2uc2X-TS/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
same with me, now I cant use this
Ah, I see the issue. Django updated from 2.2 to 3.0 yesterday, and lots of stuff is breaking. I unwittingly "upgraded" by having django = "*"
in my Pipfile. I've changed that to django = "2.2"
so I can upgrade when all the packages I use are compatible.
So basically, this is a note to say we need 3.x compatibility. :-)
(Sorry, I meant django = "==2.2"
.)
A fix for this has been integrated in the master branch already, I'll alert the maintainer to publish a new release.
@PhilipGarnero
Great, thanks.
Thank you for your proactive maintenance and support of the new Django release. Can you please share the timeline for when you plan to publish the release containing those fixes?
Hi all.
My team and I are constantly using this framework and it seems it has died out there. I contacted the owner by email asking if he would add some of us as maintainers so we could continue to improve it. However we didn't get a response.
I am publishing the project under my profile and we are going to continue to invest time in it.
So I would like to gently ask you to contribute to this project on: https://github.com/wagnerdelima/drf-social-oauth2
Thank you for understanding.