Project

General

Profile

Tâche #34298

Scénario #34243: Traitement express MEN (23-25)

EOP ne fonctionne plus sur AmonEcole

Added by Joël Cuissinat almost 2 years ago. Updated almost 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
06/14/2022
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

https://etb3.ac-test.fr/eoleapps/eop/ → 404 Not Found

>>> from eoleflask.application import run
>>> run(config='eoleapps')
eoleflask - Unable to load module 'eop': No module named 'ead2'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/eoleflask/loader.py", line 89, in load_app
    m = __import__(module)
  File "/usr/lib/python3/dist-packages/eop/__init__.py", line 44, in <module>
    mod = importlib.import_module(module, package='eop')
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib/python3/dist-packages/eop/modules/api/etabsapi.py", line 10, in <module>
    from ead2.backend.actions.scribe.tool.etablissements import get_etabs
ModuleNotFoundError: No module named 'ead2'
<werkzeug.middleware.dispatcher.DispatcherMiddleware object at 0x7f089a271c70>

Pas évident de savoir depuis quand ça arrive, par exemple la dernière ISO (2.8.1.1 du 26/01/2022) ne présente pas le problème (paquet EOP 2.8.2-17).
La modification suivante a du être écrasée par un merge : eop:c59cdbb

Associated revisions

Revision e0643dd7 (diff)
Added by Joël Cuissinat almost 2 years ago

import `get_etabs` from new `scribe.eoleldap` implementation

Ref: #34298

History

#1 Updated by Joël Cuissinat almost 2 years ago

  • Status changed from Nouveau to En cours

#2 Updated by Joël Cuissinat almost 2 years ago

  • Assigned To set to Joël Cuissinat

#3 Updated by Joël Cuissinat almost 2 years ago

Il faut corriger l'import sur EOLE ≥ 2.8.1

#4 Updated by Joël Cuissinat almost 2 years ago

NB : merge trouvé :

eop$ git show df5c3490497116891b3f857d42987340aefac87d src/eop/modules/api/etabsapi.py
commit df5c3490497116891b3f857d42987340aefac87d
Merge: f4133bb 92c4410
Author: Matthieu Lamalle <mlamalle@cadoles.com>
Date:   Thu Feb 17 09:57:39 2022 +0100

    Merge branch '2.8.0/master' into 2.8.1/master

diff --cc src/eop/modules/api/etabsapi.py
index b760205,2201a2c..00608cf
--- a/src/eop/modules/api/etabsapi.py
+++ b/src/eop/modules/api/etabsapi.py
@@@ -4,8 -4,11 +4,10 @@@ from xmlrpc.client import ServerProx
  from flask.views import MethodView
  from eop.modules.api import membersapi, ldapusersapi
  from eoleauthlib.authclient import login_required
- from scribe.eoleldap import Ldap, get_etabs
- 
+ from eop import utils
+ import sys
+ sys.path.append('/usr/share')
+ from ead2.backend.actions.scribe.tool.etablissements import get_etabs
 -
  etabsapi = Blueprint('etabsapi', __name__, url_prefix='/api/etabs/')

  class EtabsAPI(MethodView):

#5 Updated by Joël Cuissinat almost 2 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#6 Updated by Joël Cuissinat almost 2 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

Also available in: Atom PDF