2011-11-23

TortoiseHg & openSUSE 12.1

TortoiseHg is an excellent GUI for working with code from a Mercurial [aka Hg] repository.  You can just download the source and run "./thg". The previous version of TortoiseHg used PyGTK and pretty much just-worked.  Recently they switched to using Qt4.  Only once you install Qt4 support for Python the GUI still doesn't run - it fails with an error:
ImportError: No module named Qsci
What is "Qsci"?  "Qsci" is short hand for Qscintilla which is a Qt port of the Scintilla editing component.  This is provided to Python as the PyQt4.Qsci module.  This module is installed separately from the main Qt4 module in a package called "python-qscintilla" [notice a pattern where this feature of Qt4 is referred to by at least three names?].  Once you've run down this quirky daisy-chain of names it is just:
zypper in python-qscintilla
and now thg runs.

0 comments:

Post a Comment