Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
share|improve this question

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
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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