Any tips on how to get the Python console working on Q-GIS (Quantum GIS)? (Its not working from the software's menu.)


  • Python 2.6.5
  • QGIS1.7 OS
  • Linux: Ubuntu 10.04.2 LTS lucid

Error message from python running in the Terminal window:

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
    [GCC 4.4.3] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from qgis.core import *
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    RuntimeError: the sip module implements API v7.0 to v7.1 but the qgis.core module requires API v6.0

This answer from stackoverflow worked for me:


  1. $apt-get remove qgis
  2. $apt-get update
  3. $apt-get upgrade pyqt* python-qt4
  4. $apt-get install qgis

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.