[Qgis-developer] PostGis Manager 0.4.8 error

Maciej Sieczka msieczka at sieczka.org
Mon Mar 23 14:14:48 EDT 2009


Hi Martin,

There is an error at PostGis Manager 0.4.8 startup, QGIS trunk r10355, 
Postgres 8.3.6, Debian amd64:


WystÄ
piÅ‚ bÅ‚Ä
d podczas wykonywania kodu Pythona:

Traceback (most recent call last):
   File 
"/home/shoofi/.qgis//python/plugins/postgis_manager/ManagerWindow.py", 
line 126, in dbConnect
     self.refreshTable()
   File 
"/home/shoofi/.qgis//python/plugins/postgis_manager/ManagerWindow.py", 
line 204, in refreshTable
     self.tree.model().loadFromDb(self.db)
   File 
"/home/shoofi/.qgis//python/plugins/postgis_manager/DatabaseModel.py", 
line 158, in loadFromDb
     self.tree.constructTreeFromDb(self.db)
   File 
"/home/shoofi/.qgis//python/plugins/postgis_manager/DatabaseModel.py", 
line 76, in constructTreeFromDb
     DlgDbError.showError(e, None)
   File 
"/home/shoofi/.qgis//python/plugins/postgis_manager/DlgDbError.py", line 
24, in showError
     dlg = DlgDbError(e, parent)
   File 
"/home/shoofi/.qgis//python/plugins/postgis_manager/DlgDbError.py", line 
15, in __init__
     print type(e.message), type(e.query), e.message, e.query
UnicodeEncodeError: 'ascii' codec can't encode characters in position 
1-2: ordinal not in range(128)

Wersja Pythona:
2.5.4 (r254:67916, Feb 18 2009, 03:17:34)
[GCC 4.3.3]

Lokalizacja Pythona:['/usr/local/qgis/share/qgis/python', 
'/home/shoofi/.qgis//python/plugins/symbology_ng', 
'/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', 
'/usr/local/qgis/share/qgis/python/plugins/fTools/tools']

-- 
Maciej Sieczka
http://www.sieczka.org



More information about the Qgis-developer mailing list