Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1492 closed bug (fixed)

error when starting PostGIS manager

Reported by: msieczka Owned by: nobody
Priority: critical: causes crash or data corruption Milestone:
Component: Python plugins and bindings Version: Trunk
Keywords: Cc:
Must Fix for Release: Yes Platform: Debian
Platform Version: Awaiting user input: no

Description

Bactktrace (lso note corrupted translation string in the first line):

WystÄ
pił błÄ
d podczas wykonywania kodu Pythona:

Traceback (most recent call last):
  File "/home/shoofi/.qgis//python/plugins/postgis_manager/ManagerWindow.py", line 112, in dbConnect
    self.db = postgis_utils.GeoDB(host=host, port=port, dbname=database, user=username, passwd=password)
  File "/home/shoofi/.qgis//python/plugins/postgis_manager/postgis_utils.py", line 106, in __init__
    raise DbError(e.message)
  File "/home/shoofi/.qgis//python/plugins/postgis_manager/postgis_utils.py", line 61, in __init__
    self.query = unicode(query, 'utf-8')
TypeError: coercing to Unicode: need string or buffer, NoneType found

Wersja Pythona:
2.5.2 (r252:60911, Jan  4 2009, 22:17:10) 
[GCC 4.3.2]

Lokalizacja Pythona:['/usr/local/qgis/share/qgis/python', '/home/shoofi/.qgis//python/plugins', '/usr/local/qgis/share/qgis/python/plugins', '/usr/lib/python2.5/site-packages/GDAL-1.6.0-py2.5-linux-x86_64.egg', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', '/usr/lib/python2.5/site-packages/PIL', '/usr/lib/python2.5/site-packages/gst-0.10', '/var/lib/python-support/python2.5', '/var/lib/python-support/python2.5/gtk-2.0', '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode', '/home/shoofi/.qgis/python/plugins/fTools/tools']

Trunk r91492.

Change History (2)

comment:1 by wonder, 15 years ago

Resolution: fixed
Status: newclosed

Should be fixed in version 0.4.6.

Btw. it's better to send bugreports from PostGIS manager directly to me than to file tickets in QGIS trac.

Martin

comment:2 by (none), 15 years ago

Milestone: Version 1.0.1

Milestone Version 1.0.1 deleted

Note: See TracTickets for help on using tickets.