Opened 14 years ago

Closed 14 years ago

#3076 closed bug (fixed)

OSM plugin: python error clicking on "load OSM from file"

Reported by: lutra Owned by: wonder
Priority: major: does not work as expected Milestone: Version 1.6.0
Component: Python plugins and bindings Version:
Keywords: Cc:
Must Fix for Release: Yes Platform: Debian
Platform Version: Awaiting user input: no

Description

This happens on trunk under Ubuntu 10.04. Under trunk/osgeo4w does not seems to happen:

Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/osm/OsmPlugin.py", line 199, in loadOsmFromFile
    self.dlgLoad=OsmLoadDlg(self)
  File "/usr/share/qgis/python/plugins/osm/OsmLoadDlg.py", line 57, in __init__
    item.setFlags( Qt.ItemIsSelectable | Qt.ItemIsUserCheckable | Qt.ItemIsEnabled)
AttributeError: 'module' object has no attribute 'ItemIsSelectable'

Change History (5)

comment:1 by lutra, 14 years ago

Owner: changed from wrichter to wonder

comment:2 by borysiasty, 14 years ago

It's caused by the line 19: from PyQt4 import *

from PyQt4.QtCore import * Qt

<class 'PyQt4.QtCore.Qt'>

from PyQt4 import * Qt

<module 'PyQt4.Qt' from '/usr/lib/pymodules/python2.6/PyQt4/Qt.so'>

Is this import used anywhere at all?

comment:3 by lutra, 14 years ago

the same message shows when clicking on "download" in the "download osm data" dialog.

comment:4 by lutra, 14 years ago

works fine under trunk/osgeo4w

comment:5 by lutra, 14 years ago

Resolution: fixed
Status: newclosed

Just recompiled from source and this error seems to be gone.

Note: See TracTickets for help on using tickets.