Bug report #10678

python error when trying to execute Distribution map generator

Added by baditaflorin - over 10 years ago. Updated over 10 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:-
Affected QGIS version:2.2.0 Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:19076

Description

An error has occured while executing Python code:

Traceback (most recent call last):
  File "C:/Users/florin/.qgis2/python/plugins\\DistroMap\\distromap.py", line 99, in confirm
    self.process()
  File "C:/Users/florin/.qgis2/python/plugins\\DistroMap\\distromap.py", line 289, in process
    self.selectByAttribute(taxon)
  File "C:/Users/florin/.qgis2/python/plugins\\DistroMap\\distromap.py", line 173, in selectByAttribute
    if unicode(str(feature.attributes()[int(selectindex)])) == unicode(str(value)):
UnicodeEncodeError: 'ascii' codec can't encode character u'\\xe2' in position 9: ordinal not in range(128)

Python version:
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]

QGIS version:
2.3.0-Master Master, d62a498

Python path: ['C:/Users/florin/.qgis2/python/plugins\\\\processing', 'C:\\\\Users\\\\florin\\\\.qgis2\\\\python\\\\plugins\\\\GeoCoding', 'F:/QGISWE~1/apps/qgis-dev/./python', u'C:/Users/florin/.qgis2/python', u'C:/Users/florin/.qgis2/python/plugins', 'F:/QGISWE~1/apps/qgis-dev/./python/plugins', 'F:\\\\QGISWE~1\\\\bin\\\\python27.zip', 'F:\\\\QGISWE~1\\\\apps\\\\Python27\\\\DLLs', 'F:\\\\QGISWE~1\\\\apps\\\\Python27\\\\lib', 'F:\\\\QGISWE~1\\\\apps\\\\Python27\\\\lib\\\\plat-win', 'F:\\\\QGISWE~1\\\\apps\\\\Python27\\\\lib\\\\lib-tk', 'F:\\\\QGISWE~1\\\\bin', 'F:\\\\QGISWE~1\\\\apps\\\\Python27', 'F:\\\\QGISWE~1\\\\apps\\\\Python27\\\\lib\\\\site-packages', 'F:\\\\QGISWE~1\\\\apps\\\\Python27\\\\lib\\\\site-packages\\\\PIL', 'F:\\\\QGISWE~1\\\\apps\\\\Python27\\\\lib\\\\site-packages\\\\jinja2-2.7.2-py2.7.egg', 'F:\\\\QGISWE~1\\\\apps\\\\Python27\\\\lib\\\\site-packages\\\\markupsafe-0.23-py2.7-win-amd64.egg', 'F:\\\\QGISWE~1\\\\apps\\\\Python27\\\\lib\\\\site-packages\\\\pytz-2012j-py2.7.egg', 'F:\\\\QGISWE~1\\\\apps\\\\Python27\\\\lib\\\\site-packages\\\\win32', 'F:\\\\QGISWE~1\\\\apps\\\\Python27\\\\lib\\\\site-packages\\\\win32\\\\lib', 'F:\\\\QGISWE~1\\\\apps\\\\Python27\\\\lib\\\\site-packages\\\\Pythonwin', 'F:\\\\QGISWE~1\\\\apps\\\\Python27\\\\lib\\\\site-packages\\\\Shapely-1.2.18-py2.7-win-amd64.egg', 'F:\\\\QGISWE~1\\\\apps\\\\Python27\\\\lib\\\\site-packages\\\\six-1.3.0-py2.7.egg', 'F:\\\\QGISWE~1\\\\apps\\\\Python27\\\\lib\\\\site-packages\\\\wx-2.8-msw-unicode', 'F:\\\\QGISWE~1\\\\apps\\\\Python27\\\\lib\\\\site-packages\\\\xlrd-0.9.2-py2.7.egg', 'F:\\\\QGISWE~1\\\\apps\\\\Python27\\\\lib\\\\site-packages\\\\xlwt-0.7.5-py2.7.egg', 'C:/Users/florin/.qgis2/python/plugins\\\\DataDrivenInputMask', 'C:\\\\Users\\\\florin\\\\.qgis2\\\\python\\\\plugins\\\\mmqgis/forms', 'F:\\\\QGISWE~1\\\\apps\\\\qgis-dev\\\\python\\\\plugins\\\\fTools\\\\tools', 'C:\\\\Users\\\\florin\\\\.qgis2\\\\python\\\\plugins\\\\mmqgis/forms']

History

#1 Updated by Giovanni Manghi over 10 years ago

  • Resolution set to invalid
  • Status changed from Open to Closed

it is a 3rd party plugin

you must use its own tracker

https://github.com/rudivs/DistroMap/issues

Also available in: Atom PDF