Bug report #2790

Python error moving nodes with OSM plugin

Added by cdavilam - almost 14 years ago. Updated about 11 years ago.

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

Description

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']

History

#1 Updated by Borys Jurgiel almost 14 years ago

revert accidental change

#2 Updated by springmeyer - almost 14 years ago

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?

#3 Updated by Giovanni Manghi over 12 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

#4 Updated by Mike Evans about 12 years ago

  • Crashes QGIS or corrupts data set to No
  • Affected QGIS version set to master

Seems worse with 1.7.4, at least I can do some editing with 1.7.1. Both from Fedora rpms.

#5 Updated by Paolo Cavallini about 12 years ago

  • Target version changed from Version 1.7.4 to Version 1.8.0

#6 Updated by Paolo Cavallini over 11 years ago

  • Target version changed from Version 1.8.0 to Version 2.0.0

#7 Updated by Martin Dobias about 11 years ago

  • Pull Request or Patch supplied set to No
  • Resolution set to fixed
  • Status changed from Open to Closed

The new OpenStreetMap support coming in 2.0 does not allow editing and uploading of OSM data. The current plugin with editing support has been removed.

Also available in: Atom PDF