Tâche #22094
Scénario #21866: Traitement express MEN (46-48)
ead2: erreur lors d'importation scribe 2.4.2
Remaining (hours):
0.0
Description
Je rencontre un problème lorsque je veux mettre à jour la base élève sur scribe:
J'ai refait l'import avec de nouveaux fichiers re-générés, mais c'est le même problème :
# Lancement de la lecture des fichiers # Lecture des classes et des niveaux... OK Lecture des groupes (options)... OK Lecture des élèves... ERREUR attribute [JointureGroupeUser.groupe = reference()] must not be None
Après analyse de Joel Cuissinat, le problème est causé par l'absence de déclaration de certains groupes dans le fichier Structures.xml
Il propose cela :
Un contournement rapide serait d'ajouter les 3 lignes suivante après la ligne 194 du fichier /usr/lib/python2.7/dist-packages/scribe/parsing/sconet.py (attention à l'indentation !) :
groupe = store.findFirst(Groupe, Groupe.nom==unicode(nom_groupe)) if groupe is None: log.infolog("Groupe inconnu : %s" % nom_groupe) continue
Merci d'avance
Associated revisions
A group can be missing in Structure.xml
- scribe/parsing/sconet.py (parse_sco_eleves): produce a log and pass
if the group is not found in the structure.
Ref: #22094
History
#1 Updated by Joël Cuissinat about 5 years ago
- Description updated (diff)
- Estimated time set to 3.00 h
- Parent task set to #21866
#2 Updated by Joël Cuissinat about 5 years ago
- Remaining (hours) set to 2.0
#3 Updated by Scrum Master about 5 years ago
- Assigned To set to Daniel Dehennin
#4 Updated by Scrum Master about 5 years ago
- Project changed from Scribe to Distribution EOLE
- Status changed from Nouveau to En cours
#5 Updated by Daniel Dehennin about 5 years ago
- Description updated (diff)
#6 Updated by Daniel Dehennin about 5 years ago
- % Done changed from 0 to 100
- Remaining (hours) changed from 2.0 to 0.5
- Corrigé dans le paquet 2.6.2-11 ;
- Non rétroporté.
#7 Updated by Daniel Dehennin about 5 years ago
- Project changed from Distribution EOLE to Scribe
#8 Updated by Daniel Dehennin about 5 years ago
- Project changed from Scribe to Distribution EOLE
- Status changed from En cours to Résolu
#9 Updated by Benjamin Bohard about 5 years ago
- Remaining (hours) changed from 0.5 to 0.0
#10 Updated by Benjamin Bohard about 5 years ago
- Remaining (hours) changed from 0.0 to 0.5
#11 Updated by Joël Cuissinat about 5 years ago
- Remaining (hours) changed from 0.5 to 0.0
#12 Updated by Joël Cuissinat about 5 years ago
- Status changed from Résolu to Fermé
Rétro-portage 2.5.1 à 2.6.1.