Project

General

Profile

Support #35585

Erreur lors de l'installation d'authentic2

Added by Éloi Rivard 7 months ago. Updated 7 months ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
26 Aug 2019
Due date:
% Done:

0%

Patch proposed:
No
Planning:
No

Description

Bonjour,
Sur une Archlinux, en suivant scrupuleusement le déroulé des commandes présenté dans la documentation (https://authentic2.readthedocs.io/en/stable/installation.html), j'obtiens une erreur à l'étape 3 :

No handlers could be found for logger "authentic2.plugins" 
Traceback (most recent call last):
  File "/home/eloi/authentic-test/env/bin/authentic2-ctl", line 20, in <module>
    execute_from_command_line(sys.argv[:1] + argv)
  File "/home/eloi/authentic-test/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/home/eloi/authentic-test/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
    settings.INSTALLED_APPS
  File "/home/eloi/authentic-test/env/lib/python2.7/site-packages/django/conf/__init__.py", line 46, in __getattr__
    self._setup(name)
  File "/home/eloi/authentic-test/env/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
    self._wrapped = Settings(settings_module)
  File "/home/eloi/authentic-test/env/lib/python2.7/site-packages/django/conf/__init__.py", line 94, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/eloi/authentic-test/env/lib/python2.7/site-packages/authentic2/settings.py", line 89, in <module>
    MIDDLEWARE_CLASSES = plugins.register_plugins_middleware(MIDDLEWARE_CLASSES)
  File "/home/eloi/authentic-test/env/lib/python2.7/site-packages/authentic2/plugins.py", line 84, in register_plugins_middleware
    for plugin in get_plugins(group_name):
  File "/home/eloi/authentic-test/env/lib/python2.7/site-packages/authentic2/plugins.py", line 38, in get_plugins
    raise PluginError('unable to load entrypoint %s' % entrypoint, e)
authentic2.plugins.PluginError: ('unable to load entrypoint authentic2-idp-saml2 = authentic2.idp.saml:Plugin', ContextualVersionConflict(XStatic-jQuery 3.3.1.1 (/home/eloi/authentic-test/env/lib/python2.7/site-packages), Requirement.parse('XStatic-jQuery<2'), set(['gadjo'])))

History

#2 Updated by Éloi Rivard 7 months ago

After manually installing 'XStatic-jQuery' with 'pip install XStatic-jQuery<2', there is a new error:

No handlers could be found for logger "authentic2.plugins" 
Traceback (most recent call last):
  File "/home/eloi/authentic-test/env/bin/authentic2-ctl", line 20, in <module>
    execute_from_command_line(sys.argv[:1] + argv)
  File "/home/eloi/authentic-test/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/home/eloi/authentic-test/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
    settings.INSTALLED_APPS
  File "/home/eloi/authentic-test/env/lib/python2.7/site-packages/django/conf/__init__.py", line 46, in __getattr__
    self._setup(name)
  File "/home/eloi/authentic-test/env/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
    self._wrapped = Settings(settings_module)
  File "/home/eloi/authentic-test/env/lib/python2.7/site-packages/django/conf/__init__.py", line 94, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/eloi/authentic-test/env/lib/python2.7/site-packages/authentic2/settings.py", line 89, in <module>
    MIDDLEWARE_CLASSES = plugins.register_plugins_middleware(MIDDLEWARE_CLASSES)
  File "/home/eloi/authentic-test/env/lib/python2.7/site-packages/authentic2/plugins.py", line 84, in register_plugins_middleware
    for plugin in get_plugins(group_name):
  File "/home/eloi/authentic-test/env/lib/python2.7/site-packages/authentic2/plugins.py", line 38, in get_plugins
    raise PluginError('unable to load entrypoint %s' % entrypoint, e)
authentic2.plugins.PluginError: ('unable to load entrypoint authentic2-idp-saml2 = authentic2.idp.saml:Plugin', ContextualVersionConflict(Django 1.7.11 (/home/eloi/authentic-test/env/lib/python2.7/site-packages), Requirement.parse('django>=1.11'), set(['django-sekizai', 'django-model-utils', 'django-tables2'])))

#3 Updated by Emmanuel Cazenave 7 months ago

Bonjour (on peut écrire en français),

La documentation que vous suivez n'est malheureusement pas du tout à jour, la version d'authentic qui est sur pypi est anté diluvienne.

Je pense qu'il faut faut mieux reprendre à zéro et installer à partir des sources, quelque chose comme ça :

virtualenv authentic
source ./authentic/bin/activate
cd authentic
pip install 'django<2'
git clone https://git.entrouvert.org/authentic.git
cd authentic
pip install -e .

#4 Updated by Éloi Rivard 7 months ago

Effectivement ça fonctionne mieux avec cette méthode :)

Also available in: Atom PDF