Opened 15 years ago

Closed 14 years ago

#1911 closed bug (fixed)

Postgis Manager errors when "loading from" or "dumping to" shapefiles

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

Description

See attached images. This is not reproducible under linux. Tested with qgis-dev (1.3) available trough he osgeo4w installer.

Attachments (2)

Screenshot-1.png (90.7 KB ) - added by lutra 15 years ago.
Screenshot-2.png (92.9 KB ) - added by lutra 15 years ago.

Download all attachments as: .zip

Change History (10)

by lutra, 15 years ago

Attachment: Screenshot-1.png added

by lutra, 15 years ago

Attachment: Screenshot-2.png added

comment:1 by borysiasty, 15 years ago

Owner: changed from borysiasty to wonder

comment:2 by lucacasagrande, 15 years ago

Using Ubuntu 9.04 and latest trunk:

  • Loading data to a postgis db is working fine for me.
  • Dumping to shapefile report this error:
Errore durante l'esecuzione di codice Python:

Traceback (most recent call last):
  File "/home/doktoreas/.qgis//python/plugins/postgis_manager/DlgDumpData.py", line 97, in onDump
    p = subprocess.Popen(args=args, stderr=subprocess.PIPE)
  File "/usr/lib/python2.6/subprocess.py", line 595, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1092, in _execute_child
    raise child_exception
TypeError: execv() arg 2 must contain only strings

Versione Python:
2.6.2 (release26-maint, Apr 19 2009, 02:15:38) 
[GCC 4.3.3]

Sentiero Python:['/usr/share/qgis/python', '/home/doktoreas/.qgis//python/plugins/symbology_ng', '/home/doktoreas/.qgis//python/plugins/symbology_ng', '/home/doktoreas/.qgis//python/plugins', '/usr/share/qgis/python/plugins', '/usr/local/lib/python2.6/dist-packages/geopy-0.93dev_r75-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/GDAL-1.6.1-py2.6-linux-x86_64.egg', '/usr/local/lib/python2.6/dist-packages/OWSLib-0.3.1-py2.6.egg', '/usr/local/share/qgis/python', '/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', '/var/lib/python-support/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/var/lib/python-support/python2.6/gtk-2.0', '/var/lib/python-support/python2.6/pyinotify', '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode', '/usr/local/lib/python2.6/dist-packages', '/usr/share/qgis/python/plugins/fTools/tools'

Thank you

Luca

comment:3 by lutra, 15 years ago

Platform: WindowsAll
Summary: (windows) Postgis Manager returns an error when loading from or dumping to shapefilePostgis Manager errors when "loading from" or "dumping to" shapefiles

comment:4 by pcav, 15 years ago

Confirmed on Debian unstable with r11720

comment:5 by lutra, 14 years ago

Platform: AllWindows

I was convinced that this error was this bug was already fixed, but it is still there on windows, while on linux I cannot replicate it.

Using the latest version of the plugin installed on the latest qgis-dev version installed via osgeo4w on a fresh winxp installation. The windows installation do include pgsql/postgis (so no missing command line tools).

comment:6 by lutra, 14 years ago

I'm seeing this bug also on linux (ubuntu 9.04) now. Using qgis 1.3/trunk and the latest plugin version.

in reply to:  6 comment:7 by lutra, 14 years ago

Replying to lutra:

I'm seeing this bug also on linux (ubuntu 9.04) now. Using qgis 1.3/trunk and the latest plugin version.

forget this lat comment about problems on linux, it was a box missing the necessary tools. Once installed all ok.

The issues are still true under windows, even after adding the necessary paths to the windows "path" environment variable.

comment:8 by wonder, 14 years ago

Resolution: fixed
Status: newclosed

Should be fixed in PostGIS Manager v0.5.6.

Win32 is so nasty platform...

Note: See TracTickets for help on using tickets.