[Qgis-developer] [Qgis-user] python error
Pedro Venâncio
pedrongvenancio at yahoo.com
Mon Dec 3 11:06:41 PST 2012
Hi,
Yesterday I reported that problem with /usr/share/qgis/python/plugins/sextante/admintools/httplib2/__init__.py in dev mailinglist:
http://osgeo-org.1560.n6.nabble.com/Couldn-t-load-plugin-ogrprocessing-after-upgrading-Sextante-from-github-td5020192.html
but the problem in starting QGIS is different and it just showed up today here, after upgrading to version 1.9.0+git20121201+80fa7aa~precise-ubuntugis1.
The error:
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.7.3 (default, Aug 1 2012, 05:27:35)
[GCC 4.6.3]
QGIS version:
1.9.0-Master 'Master', exported
Python path:
['/usr/share/qgis/python', '/home/pedro/.qgis//python', '/home/pedro/.qgis//python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']
Will be a problem with some dependency?
Thanks,
Pedro
________________________________
From: Matteo Ghetta
Ok I solved the problem..
During the updating thw first line of the file __init__.py (stored in /usr/share/qgis/python/plugins/sextante/admintools/httplib2) "from __future__ import generators" moved to the 26th line of the same file. I really don't understand why, but after moving it back to the right place, it seems that python (and the plugins) works correctly.
Cheers
_______________________________________________
Qgis-user mailing list
Qgis-user at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user
More information about the Qgis-developer
mailing list