[Qgis-developer] Re: PostGis Manager 0.4.8 error

Maciej Sieczka msieczka at sieczka.org
Sat Mar 28 17:09:38 EDT 2009


Martin Dobias pisze:
> On Mon, Mar 23, 2009 at 7:14 PM, Maciej Sieczka
> <msieczka at sieczka.org> wrote:

>> 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)

> as a temporary fix, remove line 15 from DlgDbError.py file. It looks 
> like postgis manager is going to display an error message, but fails 
> before showing it :)

Hi

Thanks for the fix. I fetched the newest 0.4.9 version. Another error:

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

Traceback (most recent call last):
File
"/home/shoofi/.qgis//python/plugins/postgis_manager/ManagerWindow.py",
line 133, in dbConnect
self.dbInfo()
File
"/home/shoofi/.qgis//python/plugins/postgis_manager/ManagerWindow.py",
line 162, in dbInfo
info = self.db.get_info()
File
"/home/shoofi/.qgis//python/plugins/postgis_manager/postgis_utils.py",
line 124, in get_info
self._exec_sql(c, "SELECT version()")
File
"/home/shoofi/.qgis//python/plugins/postgis_manager/postgis_utils.py",
line 578, in _exec_sql
raise DbError(e.message, e.cursor.query)
DbError:

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

Maciek

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



More information about the Qgis-developer mailing list