[Qgis-developer] python error after updating

matteo matteo.ghetta at gmail.com
Tue Jan 8 08:11:56 PST 2013


Hi guys,
I wrote the same problem on the qgis user list, but I think here is better.
I work with Ubuntu 12.04 and with the nightly repo. I updated my system 
but running QGis I get this error:

Impossibile caricare PyQGIS.
Il supporto Python verrà disabilitato.

Traceback (most recent call last):
File "", line 1, in

ImportError: No module named qgis.core

Versione Python:
2.7.3 (default, Aug  1 2012, 05:27:35)
[GCC 4.6.3]

Versione di QGIS:
1.9.0-Master 'Master', exported

Percorso Python:
['/usr/share/qgis/python', '/home/matteo/.qgis//python', 
'/home/matteo/.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/ubuntuone-client', 
'/usr/lib/python2.7/dist-packages/ubuntuone-control-panel', 
'/usr/lib/python2.7/dist-packages/ubuntuone-couch', 
'/usr/lib/python2.7/dist-packages/ubuntuone-installer', 
'/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol', 
'/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']



And when updating I get


Configurazione di python-qgis-common 
(1.9.0+git20130105+12d1a28~precise-ubuntugis1)...
Compiling /usr/share/qgis/python/plugins/GdalTools/tools/dialogSRS.py ...
SyntaxError: ('invalid syntax', 
('/usr/share/qgis/python/plugins/GdalTools/tools/dialogSRS.py', 50, 5, 
'  def proj4string(self):\n'))

pycentral: pycentral pkginstall: error byte-compiling files (525)
pycentral pkginstall: error byte-compiling files (525)
dpkg: errore nell'elaborare python-qgis-common (--configure):
  il sottoprocesso vecchio script di post-installation ha restituito lo 
stato di errore 1
dpkg: problemi con le dipendenze impediscono la configurazione di 
python-qgis:
  python-qgis dipende da python-qgis-common (= 
1.9.0+git20130105+12d1a28~precise-ubuntugis1), ma:
   Il pacchetto python-qgis-common non è ancora configurato.
dpkg: errore nell'elaborare python-qgis (--configure):
  problemi con le dipendenze - lasciato non configurato
Segnalazione apport non scritta poiché il messaggio di errore indica la 
presenza di un fallimento precedente.
  Si sono verificati degli errori nell'elaborazione:
  python-qgis-common
  python-qgis
E: Sub-process /usr/bin/dpkg returned an error code (1)


So I looked into the file 
https://github.com/qgis/Quantum-GIS/blob/master/python/plugins/GdalTools/tools/dialogSRS.py 
and at line 48 I noticed that

return  str(self.selector.selectedAuthId())

has double brackets. Can be this the syntax problem?

I hope so because I need to use some plugins of QGIS...

Cheers

Matteo



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130108/74850227/attachment-0001.html>


More information about the Qgis-developer mailing list