Development #85374
Mauvaise version de python-memcached installé
0%
Description
Après avoir lancé les commandes make install et make deploy, j'avais une erreur lors de l'authentification à authentic.
Le problème venait visiblement du fait que python-memcached==1.61 était installé alors que django attendait la version 1.59
Une fois python-memcached==1.59 installé dans le virtualenv le problème était résolu.
Demandes liées
Historique
Mis à jour par Yann Weber il y a 4 mois
Internal Server Error: /login/ Traceback (most recent call last): File "/home/yann/envs/publik-env-py3/lib/python3.11/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) ^^^^^^^^^^^^^^^^^^^^^ File "/home/yann/envs/publik-env-py3/lib/python3.11/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yann/envs/publik-env-py3/lib/python3.11/site-packages/django/views/decorators/clickjacking.py", line 15, in wrapped_view resp = view_func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yann/envs/publik-env-py3/lib/python3.11/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yann/envs/publik-env-py3/lib/python3.11/site-packages/django/utils/decorators.py", line 130, in _wrapped_view response = view_func(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yann/envs/publik-env-py3/lib/python3.11/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func response = view_func(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yann/src/authentic/src/authentic2/views.py", line 665, in login auth_blocks.append(utils_misc.get_authenticator_method(authenticator, 'login', parameters)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yann/src/authentic/src/authentic2/utils/misc.py", line 204, in get_authenticator_method content = response = getattr(authenticator, method)(**parameters) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yann/src/authentic/src/authentic2/apps/authenticators/models.py", line 433, in login return views.login_password_login(request, self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yann/src/authentic/src/authentic2/views.py", line 1012, in login_password_login csrf_token_check(request, form) File "/home/yann/src/authentic/src/authentic2/utils/views.py", line 50, in csrf_token_check form.is_valid() File "/home/yann/envs/publik-env-py3/lib/python3.11/site-packages/django/forms/forms.py", line 175, in is_valid return self.is_bound and not self.errors ^^^^^^^^^^^ File "/home/yann/envs/publik-env-py3/lib/python3.11/site-packages/django/forms/forms.py", line 170, in errors self.full_clean() File "/home/yann/envs/publik-env-py3/lib/python3.11/site-packages/django/forms/forms.py", line 373, in full_clean self._clean_form() File "/home/yann/envs/publik-env-py3/lib/python3.11/site-packages/django/forms/forms.py", line 400, in _clean_form cleaned_data = self.clean() ^^^^^^^^^^^^ File "/home/yann/src/authentic/src/authentic2/forms/authentication.py", line 110, in clean self.clean_authenticate() File "/home/yann/src/authentic/src/authentic2/forms/authentication.py", line 127, in clean_authenticate self.user_cache = utils_misc.authenticate( ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yann/src/authentic/src/authentic2/utils/misc.py", line 1310, in authenticate return dj_authenticate(request=request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yann/envs/publik-env-py3/lib/python3.11/site-packages/django/views/decorators/debug.py", line 42, in sensitive_variables_wrapper return func(*func_args, **func_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yann/envs/publik-env-py3/lib/python3.11/site-packages/django/contrib/auth/__init__.py", line 76, in authenticate user = backend.authenticate(request, **credentials) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yann/src/authentic/src/authentic2/backends/models_backend.py", line 95, in authenticate user_login_success(user.get_username()) File "/home/yann/src/authentic/src/authentic2/user_login_failure.py", line 31, in user_login_success cache.delete(key(identifier)) File "/home/yann/envs/publik-env-py3/lib/python3.11/site-packages/django/core/cache/backends/memcached.py", line 202, in delete return bool(self._cache._deletetouch([b'DELETED'], 'delete', key)) ^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Client' object has no attribute '_deletetouch' "POST /login/?nonce=_EDCEAE1734722185D014BC7F83DF4DE0&next=/idp/saml2/continue%3Fnonce%3D_EDCEAE1734722185D014BC7F83DF4DE0 HTTP/1.0" 500 136964
Mis à jour par Frédéric Péters il y a 4 mois
Pour info ça passera avec django 4.2 mais c'est bel et bien nécessaire de se limiter à 1.59 en 3.2, https://github.com/django/django/commit/c9ad85803382481a5f6085006bd10987e7c180e9
Mis à jour par Robot Gitea il y a 4 mois
- Statut changé de Nouveau à En cours
- Assigné à mis à Emmanuel Cazenave
Emmanuel Cazenave (ecazenave) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/publik-devinst/pulls/13
- Titre : WIP: pin python-memcached (#85374)
- Modifications : https://git.entrouvert.org/entrouvert/publik-devinst/pulls/13/files
Mis à jour par Frédéric Péters il y a 4 mois
- Lié à Development #55981: Ajouter à jenkins l'exécution d'un bout des applications (?) ajouté
Mis à jour par Robot Gitea il y a 4 mois
- Statut changé de Solution proposée à Solution validée
Benjamin Dauvergne (bdauvergne) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a 4 mois
- Statut changé de Solution validée à Résolu (à déployer)
Benjamin Dauvergne (bdauvergne) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/publik-devinst/pulls/13
- Titre : pin python-memcached (#85374)
- Modifications : https://git.entrouvert.org/entrouvert/publik-devinst/pulls/13/files
Mis à jour par Emmanuel Cazenave il y a 4 mois
- Statut changé de Résolu (à déployer) à Solution déployée