[Qgis-developer] Re: PostGis Manager 0.4.8 error

Martin Dobias wonder.sk at gmail.com
Tue Mar 24 11:11:44 EDT 2009


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)

Hi Maciej,

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

Martin


More information about the Qgis-developer mailing list