[Qgis-developer] [Qgis-user] python error

Jakob Lanstorp jlanstorp at gmail.com
Tue Dec 4 00:18:07 PST 2012


Just updated 1.9.master on Ubuntu and got the same error starting QGIS:

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

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

Running in a terminal: 'sudo apt-get upgrade' I get:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up python-qgis-common (1.9.0+git20121201+80fa7aa~precise-ubuntugis1)
...
Compiling
/usr/share/qgis/python/plugins/sextante/admintools/httplib2/__init__.py ...
SyntaxError: ('from __future__ imports must occur at the beginning of the
file',
('/usr/share/qgis/python/plugins/sextante/admintools/httplib2/__init__.py',
26, None, 'from __future__ import generators\n'))

pycentral: pycentral pkginstall: error byte-compiling files (496)
pycentral pkginstall: error byte-compiling files (496)
dpkg: error processing python-qgis-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python-qgis:
 python-qgis depends on python-qgis-common (=
1.9.0+git20121201+80fa7aa~precise-ubuntugis1); however:
  Package python-qgis-common is not configured yet.

dpkg: error processing python-qgis (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup
error from a previous failure.
                          Errors were encountered while processing:
 python-qgis-common
 python-qgis
E: Sub-process /usr/bin/dpkg returned an error code (1)

/Jakob




--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Re-Qgis-user-python-error-tp5020446p5020498.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.


More information about the Qgis-developer mailing list