error message when I try to include/exclude some routes
Closed this issue · 0 comments
If the field on which is based the calibration ("line route field") is a string I get the following error message:
"Errore durante l'esecuzione di codice Python:
Traceback (most recent call last):
File "C:\Users\Antonio/.qgis2/python/plugins\lrs\lrsdockwidget.py", line 431, in openGenerateSelectionDialog
self.genSelectionDialog.load( layer, fieldName, select )
File "C:\Users\Antonio/.qgis2/python/plugins\lrs\selectiondialog.py", line 66, in load
values = sorted( values, key=str.lower )
TypeError: descriptor 'lower' requires a 'str' object but received a 'unicode'
Versione Python:
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
Versione di QGIS:
2.0.1-Dufour Dufour, d94c044
Percorso Python: ['C:\Users\Antonio/.qgis2/python/plugins\processing', 'C:/PROGRA1/QGISDU1/apps/qgis/./python', 'C:\Users\Antonio/.qgis2/python', 'C:\Users\Antonio/.qgis2/python/plugins', 'C:/PROGRA1/QGISDU1/apps/qgis/./python/plugins', 'C:\PROGRA1\QGISDU1\bin\python27.zip', 'C:\PROGRA1\QGISDU1\apps\Python27\DLLs', 'C:\PROGRA1\QGISDU1\apps\Python27\lib', 'C:\PROGRA1\QGISDU1\apps\Python27\lib\plat-win', 'C:\PROGRA1\QGISDU1\apps\Python27\lib\lib-tk', 'C:\PROGRA1\QGISDU1\bin', 'C:\PROGRA1\QGISDU1\apps\Python27', 'C:\PROGRA1\QGISDU1\apps\Python27\lib\site-packages', 'C:\PROGRA1\QGISDU1\apps\Python27\lib\site-packages\PIL', 'C:\PROGRA1\QGISDU1\apps\Python27\lib\site-packages\win32', 'C:\PROGRA1\QGISDU1\apps\Python27\lib\site-packages\win32\lib', 'C:\PROGRA1\QGISDU1\apps\Python27\lib\site-packages\Pythonwin', 'C:\PROGRA1\QGISDU1\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg', 'C:\PROGRA1\QGISDU1\apps\Python27\lib\site-packages\six-1.3.0-py2.7.egg', 'C:\PROGRA1\QGISDU1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode', 'C:\Users\Antonio.qgis2\python\plugins\mmqgis/forms', 'C:\PROGRA1\QGISDU1\apps\qgis\python\plugins\fTools\tools', 'E:/Scambio_VM/Strade/Catasto_Strade/LRS/PROVE_OK']"
This doesn't happen if the chosen field is numeric (integer or real).