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

Pedro Venâncio pedrongvenancio at yahoo.com
Mon Dec 3 14:13:29 PST 2012


Hi,

I think the problem was with python-qgis-common


pedro at fujitsu:~$ sudo apt-get upgrade 
A ler as listas de pacotes... Pronto
A construir árvore de dependências       
A ler a informação de estado... Pronto
0 pacotes actualizados, 0 pacotes novos instalados, 0 a remover e 0 não actualizados.
2 pacotes não totalmente instalados ou removidos.
Após esta operação, serão utilizados 0 B adicionais de espaço em disco.
Deseja continuar [Y/n]? y
A instalar python-qgis-common (1.9.0+git20121201+80fa7aa~precise-ubuntugis1) ...
A processar 'triggers' para python-central ...
A instalar python-qgis (1.9.0+git20121201+80fa7aa~precise-ubuntugis1) ...
A processar 'triggers' para python-central ...
A processar 'triggers' para libc-bin ...
ldconfig deferred processing now taking place
pedro at fujitsu:~$


For some reason the update did not work well, but now everything is ok.


Best regards,
Pedro Venâncio





----- Original Message -----
From: Pedro Venâncio 

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