[Qgis-user] After fresh compilation under Ubuntu Hardy error "Couldn't load PyQGIS"

Alex Mandel tech_dev at wildintellect.com
Fri Aug 8 12:22:05 PDT 2008


Nikos Alexandris wrote:
> Dear list(s), I face this "strange" error message. I say strange because
> the module "qgis.core" exists and QGIS runs properly, yet without python
> support. I follow always the same configuration/compilation/installation
> procedure. Any ideas?
> 
> Error message(s) below.
> Thank you for your time, Nikos
> 
> .
> 
> 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.5.2 (r252:60911, May  7 2008, 15:41:31) 
> [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
> 
> Python path:
> ['/python', '/home/nik/.qgis//python/plugins', '/python/plugins',
> '/usr/lib/python2.5/site-packages/GDAL-1.5.2-py2.5-linux-x86_64.egg',
> '/usr/lib/python25.zip', '/usr/lib/python2.5',
> '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk',
> '/usr/lib/python2.5/lib-dynload',
> '/usr/local/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages/Numeric',
> '/usr/lib/python2.5/site-packages/PIL',
> '/usr/lib/python2.5/site-packages/gst-0.10',
> '/var/lib/python-support/python2.5',
> '/usr/lib/python2.5/site-packages/gtk-2.0',
> '/var/lib/python-support/python2.5/gtk-2.0',
> '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode']
> 

I know there where some changes recently and the python support is
optional now. I'm not sure how to do it when compiling from source but try a
sudo apt-get install python-qgis

Alex




More information about the Qgis-user mailing list