Anomalie #47
ferméPython error when try to save
100%
Description
Hi,
I'm trying to use the qspher pugin.
After add some text ,
I try to save in qsphere format,
and have this python error.
I'm using a Windows 7 in Italian language.
I pay attention to avoid to insert characters over 127 ascii code.
The unique particular character I use was the ' char.
Could the error due to the italian windows OS ?
-----
An error has occured while executing Python code:
Traceback (most recent call last):
File "C:/Users/andrea/.qgis2/python/plugins\qsphere\ui_catalogue.py",
line 572, in saveDataQSP
SaveQSP(self, fileName)
File "C:/Users/andrea/.qgis2/python/plugins\qsphere\ui_catalogue.py",
line 1613, in SaveQSP
else : zLine+= str(zWidget.text()) if z==0 else "|"+str(zWidget.text())
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc8' in
position 1: ordinal not in range(128)
Python version:
2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]
QGIS version:
2.4.0-Chugiak Chugiak, 8fdd08a
Python path: ['C:/MY-PRO~1/osgeo4w/apps/qgis/./python/plugins\\processing',
'C:/MY-PRO~1/osgeo4w/apps/qgis/./python',
u'C:/Users/andrea/.qgis2/python',
u'C:/Users/andrea/.qgis2/python/plugins',
'C:/MY-PRO~1/osgeo4w/apps/qgis/./python/plugins',
'C:\\MY-PRO~1\\osgeo4w\\bin\\python27.zip',
'C:\\MY-PRO~1\\osgeo4w\\apps\\Python27\\DLLs',
'C:\\MY-PRO~1\\osgeo4w\\apps\\Python27\\lib',
'C:\\MY-PRO~1\\osgeo4w\\apps\\Python27\\lib\\plat-win',
'C:\\MY-PRO~1\\osgeo4w\\apps\\Python27\\lib\\lib-tk',
'C:\\MY-PRO~1\\osgeo4w\\bin', 'C:\\MY-PRO~1\\osgeo4w\\apps\\Python27',
'C:\\MY-PRO~1\\osgeo4w\\apps\\Python27\\lib\\site-packages',
'C:\\MY-PRO~1\\osgeo4w\\apps\\Python27\\lib\\site-packages\\PIL',
'C:\\MY-PRO~1\\osgeo4w\\apps\\Python27\\lib\\site-packages\\jinja2-2.7.2-py2.7.egg',
'C:\\MY-PRO~1\\osgeo4w\\apps\\Python27\\lib\\site-packages\\markupsafe-0.23-py2.7-win32.egg',
'C:\\MY-PRO~1\\osgeo4w\\apps\\Python27\\lib\\site-packages\\python_dateutil-2.2-py2.7.egg',
'C:\\MY-PRO~1\\osgeo4w\\apps\\Python27\\lib\\site-packages\\pytz-2014.2-py2.7.egg',
'C:\\MY-PRO~1\\osgeo4w\\apps\\Python27\\lib\\site-packages\\win32',
'C:\\MY-PRO~1\\osgeo4w\\apps\\Python27\\lib\\site-packages\\win32\\lib',
'C:\\MY-PRO~1\\osgeo4w\\apps\\Python27\\lib\\site-packages\\Pythonwin',
'C:\\MY-PRO~1\\osgeo4w\\apps\\Python27\\lib\\site-packages\\six-1.6.1-py2.7.egg',
'C:\\MY-PRO~1\\osgeo4w\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode',
'C:\\Users\\andrea\\.qgis2\\python\\plugins\\MetaSearch\\ext-libs',
'.', 'C:\\MY-PRO~1\\osgeo4w\\apps\\qgis\\python\\plugins\\fTools\\tools',
'C:/Users/andrea/Dropbox/progetti/geologia/vestizioni']
Mis à jour par Christophe MASSE il y a environ 10 ans
- Echéance mis à 17/10/2014
- Statut changé de Nouveau à Résolu
- Assigné à mis à Christophe MASSE
- Version cible mis à QSphere 2.6.0
- Début changé de 16/10/2014 à 17/10/2014
- % réalisé changé de 0 à 100
- Temps estimé mis à 0.50 h
Suppression des méthodes str() remplacées par la fonction "%s" %.