[Qgis-user] Error loading FastSqlLayer

Etienne Tourigny etourigny.dev at gmail.com
Tue Sep 18 09:21:32 PDT 2012


The error message means you do not have psycopg2 installed, you need
to install python-psycopg2

On Tue, Sep 18, 2012 at 1:18 PM, Johan Nilsson <joni8135 at gmail.com> wrote:
> I have Ubuntu 10.04LTS andhave added ppa:
> http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu
>
> And get this error-message then Ii start QGIS:
>
>> Couldn't load plugin FastSqlLayer due an error when calling its initGui()
>> method
>>
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 173, in
>> startPlugin
>>     plugins[packageName].initGui()
>>   File "/home/johan/.qgis//python/plugins/FastSqlLayer/postgislayer.py",
>> line 60, in initGui
>>     actions = conn.getAvailableConnections()
>>   File "/home/johan/.qgis//python/plugins/FastSqlLayer/DbConnection.py",
>> line 48, in getAvailableConnections
>>     connection = self.getConnection( c )
>>   File "/home/johan/.qgis//python/plugins/FastSqlLayer/DbConnection.py",
>> line 32, in getConnection
>>     exec( "from connectors import %s as connector" % conntype)
>>   File "", line 1, in
>>   File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 309, in
>> _import
>>     mod = _builtin_import(name, globals, locals, fromlist, level)
>>   File
>> "/home/johan/.qgis//python/plugins/FastSqlLayer/connectors/postgis.py", line
>> 24, in
>>     import psycopg2
>>   File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 309, in
>> _import
>>     mod = _builtin_import(name, globals, locals, fromlist, level)
>> ImportError: No module named psycopg2
>>
>> Python version:
>> 2.6.5 (r265:79063, Apr 16 2010, 13:28:26)
>> [GCC 4.4.3]
>>
>>
>> QGIS version:
>> 1.8.0-Lisboa Lisboa, exported
>>
>> Python path: ['/home/johan/.qgis//python/plugins/sextante',
>> '/home/johan/.qgis/python/plugins/elevation', '/usr/share/qgis/python',
>> '/home/johan/.qgis//python', '/home/johan/.qgis//python/plugins',
>> '/usr/share/qgis/python/plugins', '/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/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/local/lib/python2.6/dist-packages',
>> '/home/johan/.qgis/python/plugins/qgis2kml',
>> '/home/johan/.qgis/python/plugins/qgis2kml', '~/.qgis/python',
>> '/usr/share/qgis/python', '.',
>> '/usr/share/qgis/python/plugins/fTools/tools', '.']
>
>
> /Cheers Johan Nilsson
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>



More information about the Qgis-user mailing list