[Qgis-user] Python support will be disabled error after importing an external plugin

Laura Poggio laura.poggio at gmail.com
Wed May 5 06:02:08 PDT 2010


Dear all,
I tried to compile the development version of QGIS with some extra plugins,
namely the OTB plugin<http://wiki.orfeo-toolbox.org/index.php/Quantum_GIS_plugins>.

I am using a 64bit fedora machine. The compilation of QGIS was fine without
any problems. Below the options I used:

- cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/myuser/bin/qgis/qgis_trunk
-DGRASS_PREFIX:PATH=/usr/local/grass-6.5.svn/
                              -DGDAL_LIBRARY:STRING=/usr/lib64/libgdal.so ..
- make -j
- make install

QGIS was running fine, with many plugins, such as GRASS one. The OTB plugin
was not appearing.
According to the instructions for the installation in the OTB website I
called QGIS after adding the export of OTB libraries:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/bin/otb/built/bin:$; qgis

and I get the following error message. Afterwards QGIS is working and OTB
plugin is visible and working, but python is not enabled.

------------------------------------

Couldn't load PyQGIS.
Python support will be disabled.

Traceback (most recent call last):
  File "", line 1, in
ImportError: No module named qgis.core

Python version:
2.6 (r26:66714, Nov  3 2009, 17:33:18)
[GCC 4.4.1 20090725 (Red Hat 4.4.1-2)]

QGIS version:
1.5.0-Trunk 'Trunk', 13417M

Python path:
['/python', '/home/lp6220/.qgis/python',
'/home/lp6220/.qgis/python/plugins', '/python/plugins',
'/usr/lib/python2.6/site-packages/pupynere-1.0.13-py2.6.egg',
'/usr/lib64/python26.zip', '/usr/lib64/python2.6',
'/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk',
'/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload',
'/usr/lib64/python2.6/site-packages',
'/usr/lib64/python2.6/site-packages/Numeric',
'/usr/lib64/python2.6/site-packages/PIL',
'/usr/lib64/python2.6/site-packages/gtk-2.0',
'/usr/lib64/python2.6/site-packages/wx-2.8-gtk2-unicode',
'/usr/lib/python2.6/site-packages']
------------------------------------

I tried to add some of the paths listed in the message to LD_LIBRARY_PATH
without any success for the moment.
Thank you very much in advance for any suggestions.

Laura
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20100505/e3e627a7/attachment.html>


More information about the Qgis-user mailing list