[Qgis-user] some errors with Python connected to launching DB Manager and PostGIS Manager

Bartek Wol gacek333 at gmail.com
Tue Aug 14 06:14:46 PDT 2012


Hi

using qgis 1.8.0 windows 7 64 bit got some weird errors all of a
sudden with DB Manager and PostGIS Manager
my error messages are:

for DB Manager (not runing after error message):

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

Traceback (most recent call last):
  File "C:/PROGRA~2/Quantum GIS
Lisboa/apps/qgis/./python/plugins\db_manager\db_manager_plugin.py",
line 66, in run
    from db_manager import DBManager
  File "C:/PROGRA~2/Quantum GIS
Lisboa/apps/qgis/./python\qgis\utils.py", line 309, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\PROGRA~2\Quantum GIS
Lisboa\apps\qgis\python\plugins\db_manager\db_manager.py", line 28, in
    from .info_viewer import InfoViewer
  File "C:/PROGRA~2/Quantum GIS
Lisboa/apps/qgis/./python\qgis\utils.py", line 309, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\PROGRA~2\Quantum GIS
Lisboa\apps\qgis\python\plugins\db_manager\info_viewer.py", line 26,
in
    from .db_plugins.plugin import BaseError, DbError, DBPlugin, Schema, Table
  File "C:/PROGRA~2/Quantum GIS
Lisboa/apps/qgis/./python\qgis\utils.py", line 309, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\PROGRA~2\Quantum GIS
Lisboa\apps\qgis\python\plugins\db_manager\db_plugins\__init__.py",
line 69, in
    initDbPluginList()
  File "C:\PROGRA~2\Quantum GIS
Lisboa\apps\qgis\python\plugins\db_manager\db_plugins\__init__.py",
line 45, in initDbPluginList
    DBPLUGIN_ERRORS.append( u"%s: %s" % (name, e.message) )
UnicodeDecodeError: 'ascii' codec can't decode byte 0xbf in position
23: ordinal not in range(128)

Wersja Pythona:
2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]


Wersja QGIS:
1.8.0-Lisboa Lisboa, 6416f38

and for PostGIS Manager (will launch and run after the message):

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

Traceback (most recent call last):
  File "C:/Users/Verruu/.qgis//python/plugins\postgis_manager\ManagerWindow.py",
line 113, in dbConnectInit
    self.dbConnect(selected)
  File "C:/Users/Verruu/.qgis//python/plugins\postgis_manager\ManagerWindow.py",
line 171, in dbConnect
    self.dbInfo()
  File "C:/Users/Verruu/.qgis//python/plugins\postgis_manager\ManagerWindow.py",
line 238, in dbInfo
    self.updateView()
  File "C:/Users/Verruu/.qgis//python/plugins\postgis_manager\ManagerWindow.py",
line 285, in updateView
    self.tabChanged( self.tabs.currentIndex() )
  File "C:/Users/Verruu/.qgis//python/plugins\postgis_manager\ManagerWindow.py",
line 212, in tabChanged
    self.txtMetadata.showDbInfo()
  File "C:/Users/Verruu/.qgis//python/plugins\postgis_manager\MetadataBrowser.py",
line 35, in showDbInfo
    html += '
Use stats:
%s' % gis_info[5]
IndexError: tuple index out of range

Wersja Pythona:
2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]


Wersja QGIS:
1.8.0-Lisboa Lisboa, 6416f38


Please help how to make it run correctly and smoothly


Bartosz



More information about the Qgis-user mailing list