Import error of GoogleOpenIdConnect when performing authentication in mailman web app
I'm using the latest version of Mailman bundler (3.0.3) and I'm currently experiencing a problem when starting the django-based web app.
First of all, I had to manually install into the Python 2.7 virtualenv the social-auth-app-django
package. Without it, the web app didn't start at all because of a missing import in the django social apps.
After that, the app will start normally, nevertheless another issue arises when I try to login.
As soon as I am redirected to the /archives/accounts/login/
page, the web app raises an error as follows:
ERROR Internal Server Error: /archives/accounts/login/ Traceback (most recent call last): File "/opt/mailman/mailman-bundler/eggs/Django-1.8.17-py2.7.egg/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/opt/mailman/mailman-bundler/eggs/HyperKitty-1.0.3-py2.7.egg/hyperkitty/views/accounts.py", line 62, in login_view for backend in get_backends(): File "/opt/mailman/mailman-bundler/eggs/Django-1.8.17-py2.7.egg/django/contrib/auth/__init__.py", line 38, in get_backends return _get_backends(return_tuples=False) File "/opt/mailman/mailman-bundler/eggs/Django-1.8.17-py2.7.egg/django/contrib/auth/__init__.py", line 27, in _get_backends backend = load_backend(backend_path) File "/opt/mailman/mailman-bundler/eggs/Django-1.8.17-py2.7.egg/django/contrib/auth/__init__.py", line 21, in load_backend return import_string(path)() File "/opt/mailman/mailman-bundler/eggs/Django-1.8.17-py2.7.egg/django/utils/module_loading.py", line 26, in import_string module = import_module(module_path) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/opt/mailman/mailman-bundler/eggs/python_social_auth-0.3.3-py2.7.egg/social/backends/google.py", line 1, in <module> from social_core.backends.google import BaseGoogleAuth, BaseGoogleOAuth2API, \ ImportError: cannot import name GoogleOpenIdConnect
I am not able to login to the Mailman web app because of this error.
I'm really not sure if the problem depends on the installation of the social-auth-app-django package
.
Additionally, is it possible to remove completely any social login from the Mailman web application?
Thanks in advance.