Opened 14 years ago

Last modified 13 years ago

#2158 new bug

OSM plugin: Python error on moving line

Reported by: Donkagen2 Owned by: wonder
Priority: major: does not work as expected Milestone: Version 1.7.0
Component: Python plugins and bindings Version: Trunk
Keywords: OSM Cc:
Must Fix for Release: No Platform: Windows
Platform Version: 1.4.0-59 Awaiting user input: no

Description

While trying to move a line feature, a Python error always occurs:

Traceback (most recent call last):

File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\osm\map_tools\OsmMoveMT.py", line 485, in canvasReleaseEvent

self.finishFeatureMoving(deltaX,deltaY)

File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\osm\map_tools\OsmMoveMT.py", line 730, in finishFeatureMoving

affected=self.dbm.moveLine(self.movFeat,deltaX,deltaY,self.snapFeat,self.snapFeatType,self.snapVertexIx)

File "c:/programme/osgeo4w/apps/qgis-dev/./python/plugins\osm\OsmDatabaseManager.py", line 1401, in moveLine File "c:/programme/osgeo4w/apps/qgis-dev/./python/plugins\osm\OsmDatabaseManager.py", line 1802, in changePointStatus File "c:/programme/osgeo4w/apps/qgis-dev/./python/plugins\osm\OsmDatabaseManager.py", line 2503, in commit

OperationalError: SQL logic error or missing database ...

The OSM data was in a different directory than the project. Moving the OSM files to the project directory stopped the error occuring.

The line move however never occurs.

Change History (6)

comment:1 by pcav, 14 years ago

Component: Build/InstallPython plugins and bindings
Owner: changed from nobody to borysiasty

comment:2 by borysiasty, 14 years ago

Owner: changed from borysiasty to wonder

comment:3 by pcav, 14 years ago

Milestone: Version 1.5.0Version 1.6.0

comment:4 by pcav, 14 years ago

Can anyone confirm this?

comment:5 by volter, 13 years ago

Milestone: Version 1.6.0Version 1.7.0

Maybe related to #1944, also see my comment.

comment:6 by Donkagen2, 13 years ago

Just tried it again with 1.6.0 (and trunk) and it generated this Python error with version 0.5 of the OpenStreetMap plugin.

An error has occured while executing Python code:

Traceback (most recent call last):

File "C:/OSGeo4W/apps/qgis/./python/plugins\osm\map_tools\OsmMoveMT.py", line 485, in canvasReleaseEvent

self.finishFeatureMoving(deltaX,deltaY)

File "C:/OSGeo4W/apps/qgis/./python/plugins\osm\map_tools\OsmMoveMT.py", line 730, in finishFeatureMoving

affected=self.dbm.moveLine(self.movFeat,deltaX,deltaY,self.snapFeat,self.snapFeatType,self.snapVertexIx)

File "C:/OSGeo4W/apps/qgis/./python/plugins\osm\OsmDatabaseManager.py", line 1401, in moveLine

self.changePointStatus(nodeId,"N","U")

File "C:/OSGeo4W/apps/qgis/./python/plugins\osm\OsmDatabaseManager.py", line 1802, in changePointStatus

self.commit()

File "C:/OSGeo4W/apps/qgis/./python/plugins\osm\OsmDatabaseManager.py", line 2503, in commit

self.getConnection().commit()

OperationalError: SQL logic error or missing database

Python version: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]

QGIS version: 1.6.0-Copiapo Copiapo, exported

Python path: ['C:/OSGeo4W/apps/qgis/./python', 'C:/Documents and Settings/Andrew/.qgis/python', 'C:/Documents and Settings/Andrew/.qgis/python/plugins', 'C:/OSGeo4W/apps/qgis/./python/plugins', 'C:
OSGeo4W
bin
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
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', 'C:
Documents and Settings
Andrew
.qgis
python
plugins
ziplayers
logic', 'C:
Documents and Settings
Andrew
.qgis
python
plugins
ziplayers
gui', 'C:
OSGeo4W
apps
qgis
python
plugins
fTools
tools', 'F:/GIS Data/Wiltshire Council/Dauntsey', 'C:
Documents and Settings
Andrew
.qgis
python
plugins
ziplayers
logic', 'C:
Documents and Settings
Andrew
.qgis
python
plugins
ziplayers
gui', 'C:
Documents and Settings
Andrew
.qgis
python
plugins
fTools
tools', 'C:
Documents and Settings
Andrew
.qgis
python
plugins
imgshowhide
logic', 'C:
Documents and Settings
Andrew
.qgis
python
plugins
imgshowhide
gui', 'C:
Documents and Settings
Andrew
.qgis
python
plugins
openlayersov
logic', 'C:
Documents and Settings
Andrew
.qgis
python
plugins
openlayersov
gui']

I was unable to move the line.

When trying to insert a point there was a similar error generated

Traceback (most recent call last):

File "C:/OSGeo4W/apps/qgis/./python/plugins\osm\map_tools\OsmCreatePointMT.py", line 216, in canvasReleaseEvent

(node,affected)=self.dbm.createPoint(newPoint,self.snapFeat,self.snapFeatType)

File "C:/OSGeo4W/apps/qgis/./python/plugins\osm\OsmDatabaseManager.py", line 454, in createPoint

self.commit()

File "C:/OSGeo4W/apps/qgis/./python/plugins\osm\OsmDatabaseManager.py", line 2503, in commit

self.getConnection().commit()

OperationalError: SQL logic error or missing database

Note: See TracTickets for help on using tickets.