Project

General

Profile

Evolution #9588

Imports d'imports dans les scripts python

Added by Joël Cuissinat over 5 years ago.

Status:
Nouveau
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
2.00 h
Distribution:
EOLE 2.4

Description

Si on a la mauvaise idée de supprimer l'import inutilisé de print_green dans pyeole.ihm alors...

reconfigure - cannot import name print_green
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/creole/reconfigure.py", line 871, in main
    COMPAT_NAME.upper())
  File "/usr/lib/python2.7/dist-packages/creole/fonctionseole.py", line 202, in zephir
    from zephir.lib_zephir import log as zlog
  File "/usr/lib/python2.7/dist-packages/zephir/lib_zephir.py", line 27, in <module>
    from pyeole.ihm import print_orange, print_red, print_green
ImportError: cannot import name print_green

On me signale également l'utilisation abusive de creole.utils, la situation étant sauvée grâce à la ligne :

from pyeole.ansiprint import *

Associated revisions

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

update python imports

Ref: #24323
Ref: #9588

Also available in: Atom PDF