Projet

Général

Profil

Actions

Anomalie #49

fermé

Python error when start in Italian language

Ajouté par Andrea Peri il y a environ 10 ans. Mis à jour il y a environ 10 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
Début:
03/11/2014
Echéance:
04/11/2014
% réalisé:

100%

Temps estimé:
1.00 h
# ref:

Description

Hi,

Before all thx for you metadata plugin.

I update to the new 2.6.0 version of qsphere, and try to use it with the new qgis 2.6 on windows 7 64bit.

Starting with qgis language set in english is all ok.
When change qgis interface from en to italian and restart the qgis to apply the changes.
After to restart If I try to open the qspher,
I'm having this error:

afaik seem to be some not ascii char ?

this is the error reported me (sorry nut it is in italian due to the Italian interface)
-----

Errore durante l'esecuzione di codice Python:
(error meanwhile execute the python code)

Traceback (most recent call last):
File "C:/Users/andrea/.qgis2/python/plugins\qsphere\qsphere.py", line 102, in clickMetaData
self.listTypeRessources, self.listCountries, self.indexCountry, self.listCountriesCode, self.localeFullName)
File "C:/Users/andrea/.qgis2/python/plugins\qsphere\doUI.py", line 75, in init
self.setupUi(self)
File "C:/Users/andrea/.qgis2/python/plugins\qsphere\ui_catalogue.py", line 125, in setupUi
makeTABWidgets(self, zTab, i, SizeLabelW, SizeLabelH, self.SizeWW, self.SizeWH)
File "C:/Users/andrea/.qgis2/python/plugins\qsphere\ui_catalogue.py", line 1545, in makeTABWidgets
corPosY = makeWidget(self, tab, txtObj, nameObj, typeObj, tooltipObj, valObj, posX, posY, SizeWW, SizeWH, refSizeWH, UrlObj, isEnabled, isVertical)
File "C:/Users/andrea/.qgis2/python/plugins\qsphere\ui_catalogue.py", line 1563, in makeWidget
txtObj = ">> "+str(txtObj)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 6: ordinal not in range(128)

Versione Python:
2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]

Versione di QGIS:
2.6.0-Brighton Brighton, exported

Percorso Python: ['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']


Actions

Formats disponibles : Atom PDF