3liz / QuickOSM

QGIS plugin to fetch OSM data with the Overpass API
GNU General Public License v2.0
181 stars 54 forks source link

Update plugin with QGIS 2.8.1 is failing #51

Closed Guts closed 9 years ago

Guts commented 9 years ago

Trying to update the plugin with the extension manager, I got this error message:

Impossible de charger l'extension QuickOSM provoque une erreur lors de l'appel de sa méthode classFactory()

Traceback (most recent call last):
  File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 219, in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "C:/Users/$user/.qgis2/python/plugins\QuickOSM\__init__.py", line 36, in classFactory
    return QuickOSM(iface)
  File "C:/Users/$user/.qgis2/python/plugins\QuickOSM\quick_osm.py", line 67, in __init__
    self.provider = QuickOSMAlgorithmProvider()
  File "C:/Users/$user/.qgis2/python/plugins\QuickOSM\ProcessingQuickOSM\QuickOSMAlgorithmProvider.py", line 57, in __init__
    QueryFactoryGeoAlgorithm(),
  File "C:/Users/$user/.qgis2/python/plugins\QuickOSM\ProcessingQuickOSM\Tools\QueryFactoryGeoAlgorithm.py", line 44, in __init__
    GeoAlgorithm.__init__(self)
  File "C:/Users/$user/.qgis2/python/plugins\processing\core\GeoAlgorithm.py", line 91, in __init__
    self.defineCharacteristics()
  File "C:/Users/$user/.qgis2/python/plugins\QuickOSM\ProcessingQuickOSM\Tools\QueryFactoryGeoAlgorithm.py", line 52, in defineCharacteristics
    self.addParameter(ParameterBoolean(self.FIELD_EXTENT, 'Use an extent, not compatible with nominatim', default=False))
NameError: global name 'ParameterBoolean' is not defined

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

Version de QGIS :
2.8.1-Wien Wien, exported

Chemin vers Python : ['C:/Users/$user/.qgis2/python/plugins\\processing', 'C:/OSGEO4~1/apps/qgis/./python', u'C:/Users/$user/.qgis2/python', u'C:/Users/$user/.qgis2/python/plugins', 'C:/OSGEO4~1/apps/qgis/./python/plugins', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\matplotlib-1.3.1-py2.7-win-amd64.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\nose-1.3.3-py2.7.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\tornado-4.0.1-py2.7-win-amd64.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\backports.ssl_match_hostname-3.4.0.2-py2.7.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\certifi-14.05.14-py2.7.egg', 'c:\\osgeo4~1\\apps\\python27\\lib\\site-packages\\python_dateutil-2.1-py2.7.egg', 'c:\\osgeo4~1\\apps\\python27\\lib\\site-packages\\six-1.3.0-py2.7.egg', 'C:\\OSGEO4~1\\bin\\python27.zip', 'C:\\OSGEO4~1\\apps\\Python27\\DLLs', 'C:\\OSGEO4~1\\apps\\Python27\\lib', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\plat-win', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\lib-tk', 'C:\\OSGEO4~1\\bin', 'C:\\OSGEO4~1\\apps\\Python27', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\PIL', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\jinja2-2.7.2-py2.7.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\markupsafe-0.23-py2.7-win-amd64.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\pytz-2012j-py2.7.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\win32', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\Pythonwin', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\Shapely-1.2.18-py2.7-win-amd64.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\xlrd-0.9.2-py2.7.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\xlwt-0.7.5-py2.7.egg', u'C:/Users/$user/.qgis2//python', 'C:\\Users\\$user\\.qgis2\\python\\plugins\\mmqgis/forms', '.', 'C:\\OSGEO4~1\\apps\\qgis\\python\\plugins\\fTools\\tools', 'C:\\Users\\$user\\.qgis2\\python\\plugins\\cadastre/forms']
Gustry commented 9 years ago

Thanks for the report. Could you tell me which version of processing do you use ? (in the extension manager)