Project

General

Profile

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

Added by Joël Cuissinat about 3 years ago. Updated about 3 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
09/21/2020
Due date:
% Done:

100%

Remaining (hours):
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.

Associated revisions

Revision 578ed889 (diff)
Added by Emmanuel GARETTE about 3 years ago

remplacement de StringIO par BytesIO (ref #30683)

History

#1 Updated by Joël Cuissinat about 3 years ago

  • Description updated (diff)

#2 Updated by Emmanuel GARETTE about 3 years ago

  • Status changed from Nouveau to Résolu
  • Assigned To set to Emmanuel GARETTE
  • % Done changed from 0 to 100

#3 Updated by Joël Cuissinat about 3 years ago

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

Testé OK

Also available in: Atom PDF