<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi guys,<br>
    I wrote the same problem on the qgis user list, but I think here is
    better.<br>
    I work with Ubuntu 12.04 and with the nightly repo. I updated my
    system but running QGis I get this error:<br>
    <br>
    <meta name="qrichtext" content="1">
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment--><small>Impossibile
        caricare PyQGIS.<br>
        Il supporto Python verrà disabilitato.<br>
      </small></p>
    <small>Traceback (most recent call last):  <br>
      File "", line 1, in </small>
    <pre style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><small><font face="sans-serif">ImportError: No module named qgis.core
</font></small></pre>
    <small>
    </small>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><small>Versione
        Python:<br>
        2.7.3 (default, Aug  1 2012, 05:27:35) <br>
        [GCC 4.6.3]<br>
        <br>
        Versione di QGIS:<br>
        1.9.0-Master 'Master', exported<br>
        <br>
        Percorso Python:<br>
        ['/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']</small><!--EndFragment--></p>
    <meta http-equiv="Content-Type" content="text/html;
      charset=ISO-8859-1">
    <style type="text/css">
p, li { white-space: pre-wrap; }
</style><br>
    <br>
    And when updating I get<br>
    <br>
    <br>
    <small>Configurazione di python-qgis-common
      (1.9.0+git20130105+12d1a28~precise-ubuntugis1)...<br>
      Compiling
      /usr/share/qgis/python/plugins/GdalTools/tools/dialogSRS.py ...<br>
      SyntaxError: ('invalid syntax',
      ('/usr/share/qgis/python/plugins/GdalTools/tools/dialogSRS.py',
      50, 5, '  def proj4string(self):\n'))<br>
      <br>
      pycentral: pycentral pkginstall: error byte-compiling files (525)<br>
      pycentral pkginstall: error byte-compiling files (525)<br>
      dpkg: errore nell'elaborare python-qgis-common (--configure):<br>
       il sottoprocesso vecchio script di post-installation ha
      restituito lo stato di errore 1<br>
      dpkg: problemi con le dipendenze impediscono la configurazione di
      python-qgis:<br>
       python-qgis dipende da python-qgis-common (=
      1.9.0+git20130105+12d1a28~precise-ubuntugis1), ma:<br>
        Il pacchetto python-qgis-common non è ancora configurato.<br>
      dpkg: errore nell'elaborare python-qgis (--configure):<br>
       problemi con le dipendenze - lasciato non configurato<br>
      Segnalazione apport non scritta poiché il messaggio di errore
      indica la presenza di un fallimento precedente.<br>
       Si sono verificati degli errori nell'elaborazione:<br>
       python-qgis-common<br>
       python-qgis<br>
      E: Sub-process /usr/bin/dpkg returned an error code (1)</small><br>
    <br>
    <br>
    So I looked into the file
    <a class="moz-txt-link-freetext" href="https://github.com/qgis/Quantum-GIS/blob/master/python/plugins/GdalTools/tools/dialogSRS.py">https://github.com/qgis/Quantum-GIS/blob/master/python/plugins/GdalTools/tools/dialogSRS.py</a>
    and at line 48 I noticed that <br>
    <pre><span class="k">return</span> <span class="nb">str</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">selector</span><span class="o">.</span><span class="n">selectedAuthId</span><span class="p">())

<font face="sans-serif">has double brackets. Can be this the syntax problem?

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

Cheers

Matteo
</font></span></pre>
    <br>
    <br>
  </body>
</html>