Projet

Général

Profil

Tâche #30683

Scénario #29969: Faire fonctionner gen_config en console sur EOLE 2.8

L'export de configuration ne fonctionne pas en 2.8

Ajouté par Joël Cuissinat il y a plus de 3 ans. Mis à jour il y a plus de 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
21/09/2020
Echéance:
% réalisé:

100%

Restant à faire (heures):
0.0

Description

Il s'agit plutôt d'une scorie liée à la migration python car le bug est reproductible avec n'importe quel mode de lancement (console/ssh/web) ou navigateur (firefox/chromium).

Si on utilise la fonctionnalité : Fichier → Exporter la configuaration, on obtient une erreur :

Erreur - 500 - INTERNAL SERVER ERROR
type object '_io.StringIO' has no attribute 'StringIO'

Dans /var/log/eoleflask/eolegenconfig.log :

2020-09-21 17:16:55,123: eolegenconfig ERROR download_config - type object '_io.StringIO' has no attribute 'StringIO'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/eolegenconfig/webapi.py", line 356, in download_config
    strIO = StringIO.StringIO()
AttributeError: type object '_io.StringIO' has no attribute 'StringIO'
2020-09-21 17:20:01,492: eolegenconfig ERROR download_config - type object '_io.StringIO' has no attribute 'StringIO'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/eolegenconfig/webapi.py", line 356, in download_config
    strIO = StringIO.StringIO()
AttributeError: type object '_io.StringIO' has no attribute 'StringIO'

NB : l'action inverse (Fichier → Importer une configuration) est bien fonctionnelle.

Révisions associées

Révision 578ed889 (diff)
Ajouté par Emmanuel GARETTE il y a plus de 3 ans

remplacement de StringIO par BytesIO (ref #30683)

Historique

#1 Mis à jour par Joël Cuissinat il y a plus de 3 ans

  • Description mis à jour (diff)

#2 Mis à jour par Emmanuel GARETTE il y a plus de 3 ans

  • Statut changé de Nouveau à Résolu
  • Assigné à mis à Emmanuel GARETTE
  • % réalisé changé de 0 à 100

#3 Mis à jour par Joël Cuissinat il y a plus de 3 ans

  • Statut changé de Résolu à Fermé
  • Restant à faire (heures) mis à 0.0

Testé OK

Formats disponibles : Atom PDF