Evolution #7359
Problème d' unicode lors d'une tentative de changement de type dans un redefine
Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Target version:
Distribution:
EOLE 2.4
Description
Par ignorance j'ai essayé de redéfinir le type d'une variable dans un dico et j'ai eu ce message :
creoled - Loading tiramisu configuration creoled - Unable to load creole configuration: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/creole/server.py", line 157, in reload_config disable_mandatory=True, owner='creoled') File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 230, in creole_loader loader.read_dir(dirs, namespace) File "/usr/lib/python2.7/dist-packages/creole/var_loader.py", line 887, in read_dir self._populate(parse, namespace, level) File "/usr/lib/python2.7/dist-packages/creole/var_loader.py", line 920, in _populate raise ConfigError("Unable to populate {0}: {1}".format(keys, err.message)) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 3: ordinal not in range(128) ENGINE Listening for SIGHUP. ENGINE Listening for SIGTERM. ENGINE Listening for SIGUSR1. ENGINE Bus STARTING ENGINE PID 3355 written to '/tmp/creoled.pid'. ENGINE Start InotifyMonitor thread ENGINE Started monitor thread '_TimeoutMonitor'. ENGINE Serving on 127.0.0.1:8000 ENGINE Bus STARTED Processus arrêté
Après avoir ajouté un 'u"..."' ligne 920 du fichier /usr/lib/python2.7/dist-packages/creole/var_loader.py
j'ai le message suivant (plus parlant, ou pas d'ailleur)
root@eolebase:~/eole-one-singlenode# creoled --debug creoled - Loading tiramisu configuration creoled - Unable to load creole configuration: Unable to populate families: Redéfinition de l'attribut type interdit pour la variable vnet_network_addr Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/creole/server.py", line 157, in reload_config disable_mandatory=True, owner='creoled') File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 230, in creole_loader loader.read_dir(dirs, namespace) File "/usr/lib/python2.7/dist-packages/creole/var_loader.py", line 887, in read_dir self._populate(parse, namespace, level) File "/usr/lib/python2.7/dist-packages/creole/var_loader.py", line 920, in _populate raise ConfigError(u"Unable to populate {0}: {1}".format(keys, err.message)) ConfigError: Unable to populate families: Red\xe9finition de l'attribut type interdit pour la variable vnet_network_addr ENGINE Listening for SIGHUP. ENGINE Listening for SIGTERM. ENGINE Listening for SIGUSR1. ENGINE Bus STARTING ENGINE Start InotifyMonitor thread ENGINE Started monitor thread '_TimeoutMonitor'. ENGINE PID 3798 written to '/tmp/creoled.pid'. ENGINE Serving on 127.0.0.1:8000 ENGINE Bus STARTED
Related issues
History
#1 Updated by Joël Cuissinat over 9 years ago
- Due date set to 04/04/2014
- Status changed from Nouveau to Fermé
- Assigned To set to Joël Cuissinat
- Target version set to Eole 2.4-RC3
- % Done changed from 0 to 100
Résolu par 6314fc3c7b8 cf. demande liée