Opened 14 years ago

Last modified 13 years ago

#2790 new bug

Python error moving nodes with OSM plugin

Reported by: cdavilam Owned by: wonder
Priority: major: does not work as expected Milestone: Version 1.7.0
Component: Python plugins and bindings Version: Trunk
Keywords: OSM, move nodes Cc: cdavilam@…
Must Fix for Release: Yes Platform: All
Platform Version: testing Awaiting user input: no

Description (last modified by jef)

When using "Move feature" tool, after selecting a node, any mouse movement causes a Python error:

Traceback (most recent call last):
  File "/usr/local/qgis/share/qgis/python/plugins/osm/map_tools/OsmMoveMT.py", line 587, in canvasMoveEvent
    (deltaX,deltaY)=self.__getDeltaForPoint(event)    # snapping is done in this function
  File "/usr/local/qgis/share/qgis/python/plugins/osm/map_tools/OsmMoveMT.py", line 648, in __getDeltaForPoint
    (self.snapFeat,self.snapFeatType)=self.dbm.findFeature(snappedPoint)
TypeError: 'NoneType' object is not iterable

Python version:
2.6.5+ (release26-maint, May 30 2010, 13:56:50)
[GCC 4.4.4]


QGIS version:
1.5.0-Trunk Trunk, 13635M

Python path: ['/usr/local/qgis/share/qgis/python', '/home/carlos/.qgis/python', '/home/carlos/.qgis/python/plugins', '/usr/local/qgis/share/qgis/python/plugins', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-packages', u'/home/carlos/.qgis//python/plugins', '/usr/local/qgis/share/qgis/python/plugins/fTools/tools']

Change History (5)

comment:1 by borysiasty, 14 years ago

Must Fix for Release: YesNo
Owner: changed from borysiasty to wonder

comment:2 by borysiasty, 14 years ago

Must Fix for Release: NoYes

revert accidental change

comment:3 by springmeyer, 14 years ago

Platform: DebianAll

I've seen this on every platform I've tested on, linux, osx, and window XP/7, so changing the platform to ALL.

Seems critical to fix this before release, or make the plugin able to be updated somehow?

comment:4 by pcav, 14 years ago

Milestone: Version 1.5.0Version 1.6.0

comment:5 by jef, 13 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.