3liz / QuickOSM

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

Impossible de charger l'extension QuickOSM - méthode classFactory() #65

Closed Guts closed 8 years ago

Guts commented 8 years ago

Je me suis servi de QuickOSM le matin même sans problème mais j'ai l'impression que d'avoir sauvegardé une requête a fait planter l'application au démarrage.

Environnement : QGIS 2.8.3 LTR - Windows 7

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-ltr/./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 56, in __init__
    ListIniFilesGeoAlgorithm(),
  File "C:/Users/user/.qgis2/python/plugins\QuickOSM\ProcessingQuickOSM\Tools\ListIniFilesGeoAlgorithm.py", line 40, in __init__
    GeoAlgorithm.__init__(self)
  File "C:/Users/user/.qgis2/python/plugins\processing\core\GeoAlgorithm.py", line 88, in __init__
    self.defineCharacteristics()
  File "C:/Users/user/.qgis2/python/plugins\QuickOSM\ProcessingQuickOSM\Tools\ListIniFilesGeoAlgorithm.py", line 53, in defineCharacteristics
    self.__queries[cat + " : " + query.getName()] = query
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

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

Version de QGIS :
2.8.3-Wien Wien, 313a6bc

Chemin vers Python : ['C:/Users/user/.qgis2/python/plugins\\processing', 'C:\\Users\\user\\.qgis2\\python\\plugins\\GeoCoding\\libs', 'C:/OSGEO4~1/apps/qgis-ltr/./python', u'C:/Users/user/.qgis2/python', u'C:/Users/user/.qgis2/python/plugins', 'C:/OSGEO4~1/apps/qgis-ltr/./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-ltr\\python\\plugins\\fTools\\tools']

quickosm_python_corrupted

Guts commented 8 years ago

J'ai voulu faire une désinstallation mais je ne peux plus réinstaller l'extension :

unsupported operand type(s) for +: `NoneType`and `str`
Gustry commented 8 years ago

Dans ton dossier .qgis2/QuickOSM/queries, tu dois trouver ta requête en question (un fichier INI et un fichier XML). Ouvre le INI et supprime le caractère qui bug ;-) Ou sinon, méthode radicale, supprime le dossier QuickOSM dans ton dossier .qgis2 si tu veux supprimer toutes les requêtes.

Gustry commented 8 years ago

I'm closing this issue as I don't have any feedback.