[Qgis-developer] Re: pgversion 0.9.4 and QGIS 1.7.4

Giuseppe Sucameli brush.tyler at gmail.com
Thu Mar 15 17:19:22 EDT 2012


Hi Andrés,

the plugin requires the QtSql module.
You have to install the python-qt4-sql package.

Regards.

2012/3/15 Andrés Maneiro <amaneiro at icarto.es>:
> The complete log:
>
>
>
> Couldn't load plugin 'pgversion' from ['/usr/share/qgis/python',
> '/home/amaneiro/.qgis/python', '/home/amaneiro/.qgis/python/plugins',
> '/usr/share/qgis/python/plugins',
> '/usr/local/lib/python2.6/dist-packages/OWSLib-0.3.2beta-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/ropemode-0.1_rc2-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/JSTools-0.2.2-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/pyramid-1.1a1-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/translationstring-0.3-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/venusian-0.9-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/zope.deprecation-3.4.1-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/zope.configuration-3.7.4-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/zope.component-3.10.0-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/repoze.lru-0.3-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/WebOb-1.0.7-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.5.0-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/Paste-1.7.5.1-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/Mako-0.4.1-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/Chameleon-2.0_rc11-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/zope.schema-3.8.0-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/zope.i18nmessageid-3.5.3-py2.6-linux-i686.egg',
> '/usr/local/lib/python2.6/dist-packages/zope.event-3.5.0_1-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/unittest2-0.5.1-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/ordereddict-1.1-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/gsconfig.py-1.0-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/Shapely-1.2.14-py2.6.egg',
> '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2',
> '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old',
> '/usr/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-packages',
> '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL',
> '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6',
> '/usr/lib/python2.6/dist-packages/gtk-2.0',
> '/usr/lib/pymodules/python2.6/gtk-2.0',
> '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode',
> '/usr/share/qgis/python/plugins/fTools/tools']
>
> Traceback (most recent call last):
>  File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 117, in
> loadPlugin
>    __import__(packageName)
>  File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 283, in _import
>    mod = _builtin_import(name, globals, locals, fromlist, level)
>  File "/home/amaneiro/.qgis/python/plugins/pgversion/__init__.py", line 20,
> in
>    from pgVersion import PgVersion
>  File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 283, in _import
>    mod = _builtin_import(name, globals, locals, fromlist, level)
>  File "/home/amaneiro/.qgis/python/plugins/pgversion/pgVersion.py", line 26,
> in
>    from dbTools import *
>  File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 283, in _import
>    mod = _builtin_import(name, globals, locals, fromlist, level)
>  File "/home/amaneiro/.qgis/python/plugins/pgversion/dbTools.py", line 22,
> in
>    from PyQt4.QtSql import *
>  File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 283, in _import
>    mod = _builtin_import(name, globals, locals, fromlist, level)
> ImportError: No module named QtSql
>
> Python version:
> 2.6.6 (r266:84292, Sep 15 2010, 16:02:57)
> [GCC 4.4.5]
>
>
> QGIS version:
> 1.7.4-Wroclaw Wroclaw, exported
>
> Python path: ['/usr/share/qgis/python', '/home/amaneiro/.qgis/python',
> '/home/amaneiro/.qgis/python/plugins', '/usr/share/qgis/python/plugins',
> '/usr/local/lib/python2.6/dist-packages/OWSLib-0.3.2beta-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/ropemode-0.1_rc2-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/JSTools-0.2.2-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/pyramid-1.1a1-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/translationstring-0.3-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/venusian-0.9-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/zope.deprecation-3.4.1-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/zope.configuration-3.7.4-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/zope.component-3.10.0-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/repoze.lru-0.3-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/WebOb-1.0.7-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/PasteDeploy-1.5.0-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/Paste-1.7.5.1-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/Mako-0.4.1-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/Chameleon-2.0_rc11-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/zope.schema-3.8.0-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/zope.i18nmessageid-3.5.3-py2.6-linux-i686.egg',
> '/usr/local/lib/python2.6/dist-packages/zope.event-3.5.0_1-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/unittest2-0.5.1-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/ordereddict-1.1-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/gsconfig.py-1.0-py2.6.egg',
> '/usr/local/lib/python2.6/dist-packages/Shapely-1.2.14-py2.6.egg',
> '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2',
> '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old',
> '/usr/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-packages',
> '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL',
> '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6',
> '/usr/lib/python2.6/dist-packages/gtk-2.0',
> '/usr/lib/pymodules/python2.6/gtk-2.0',
> '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode',
> '/usr/share/qgis/python/plugins/fTools/tools']
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer



-- 
Giuseppe Sucameli


More information about the Qgis-developer mailing list