Bug report #3025

OSM Plugin: error adding a layer

Added by aperi2007 - over 14 years ago. Updated about 14 years ago.

Status:Closed
Priority:Low
Assignee:Martin Dobias
Category:Python plugins
Affected QGIS version: Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:13085

Description

Adding a layer OSM using the osm plugin and the "Load OSM from file" on a canvas empty and with CRS set to EPSG:3003.

It generate this error:

----------------------
Errore durante l'esecuzione di codice Python:
Traceback (most recent call last):
File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\\osm\\OsmPlugin.py", line 199, in loadOsmFromFile
self.dlgLoad=OsmLoadDlg(self)
File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\\osm\\OsmLoadDlg.py", line 57, in init
item.setFlags( Qt.ItemIsSelectable | Qt.ItemIsUserCheckable | Qt.ItemIsEnabled)
AttributeError: 'module' object has no attribute 'ItemIsSelectable'

Versione Python:
2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)]

Versione di QGIS:
1.6.0-Trunk Trunk, 14244

Percorso Python: ['C:/OSGeo4W/apps/qgis-dev/./python', 'C:/Users/peri/.qgis/python', 'C:/Users/peri/.qgis/python/plugins', 'C:/OSGeo4W/apps/qgis-dev/./python/plugins', 'C:\\\\OSGeo4W\\\\apps\\\\gdal-17\\\\pymod', 'C:\\\\OSGeo4W\\\\apps\\\\qgis-dev\\\\python', 'C:\\\\Windows\\\\system32\\\\python25.zip', 'C:\\\\OSGeo4W\\\\apps\\\\Python25\\\\DLLs', 'C:\\\\OSGeo4W\\\\apps\\\\Python25\\\\lib', 'C:\\\\OSGeo4W\\\\apps\\\\Python25\\\\lib\\\\plat-win', 'C:\\\\OSGeo4W\\\\apps\\\\Python25\\\\lib\\\\lib-tk', 'C:\\\\OSGeo4W\\\\apps\\\\qgis-dev\\\\bin', 'C:\\\\OSGeo4W\\\\apps\\\\Python25', 'C:\\\\OSGeo4W\\\\apps\\\\Python25\\\\lib\\\\site-packages', 'C:\\\\OSGeo4W\\\\apps\\\\Python25\\\\lib\\\\site-packages\\\\win32', 'C:\\\\OSGeo4W\\\\apps\\\\Python25\\\\lib\\\\site-packages\\\\win32\\\\lib', 'C:\\\\OSGeo4W\\\\apps\\\\Python25\\\\lib\\\\site-packages\\\\Pythonwin', 'C:\\\\OSGeo4W\\\\apps\\\\Python25\\\\lib\\\\site-packages\\\\wx-2.8-msw-unicode', '~/.qgis/python', 'C:\\\\OSGeo4W\\\\apps\\\\qgis-dev\\\\python\\\\plugins\\\\fTools\\\\tools']

History

#1 Updated by Giovanni Manghi about 14 years ago

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

Hi,

I had the same problem/message (see #3076) but I've just recompiled and now it all works fine. Reopen if necessary.

Also available in: Atom PDF