9.22.2011

IPython dependencies

IPython has some nifty features, but since IPython is still in development, they are awfully hard to get running, at least on OS X. Compounding this is the dependency on Qt for the cool new features to work. Qt isn't the most seamless package to get installed and running. I'm not complaining at all. I just want to list all the steps that I went through to get the Qt console working.

  1. Try starting the IPython qtconsole:
    python qtconsole
    and learn that I'm missing all kinds of dependencies.
  2. Try to install pyqt using pip:
    pip install pyqt
    and learn that the egg for pyqt is broken.
  3. Try to build pyqt using the files that pip installed
    python configure.py
    and learn that pyqt depends on sip.
  4. Try to install sip using pip(!):
    pip install sip
    and learn that the sip egg is broken in the same way as pyqt
  5. Install sip using the files that pip downloaded:
    python configure.py
    make
    make install

    This actually works.
  6. Try to build pyqt again:
    python configure.py
    and learn that I need the Qt SDK. This one is my fault.
  7. Install Qt from the Nokia website
  8. Repeat step 6, find that for some reason qmake was not installed.
  9. Uninstall Qt
  10. Uninstall sip
  11. Install Homebrew
  12. Try to install pyqt:
    brew install pyqt
    which successfully installs Qt, but fails because it can't link to the right version of Python, which I have somehow accumulated 4 different installations of
  13. Install python through homebrew:
    brew install python
    This fails sip has hard coded the location of the old, broken framework.
  14. Uninstall sip.
    brew remove sip
  15. Try to install pyqt:
    brew install pyqt
    This still fails. No idea why.

No comments:

Post a Comment