AstroPy work 10/03/07


Installation of PyQt 4.3

I just did a complete reinstallation of PyQt 4.3 for OS X. Total time: << 1 hr. Problems: none. Here's what I did:

Get:

  1. Qt 4.3:

    http://trolltech.com/developer/downloads/qt/mac

    Download from 'qt-mac-opensource-4.3.2.dmg' at bottom of page.

    Also available from:
    http://trolltech.com/developer/downloads/qt/windows
    http://trolltech.com/developer/downloads/qt/x11

  2. PyQt 4.3:

    http://www.riverbankcomputing.co.uk/pyqt/download.php

    Download from 'PyQt-mac-gpl-4.3.1.tar.gz'.

    Also for windows, linux.

  3. SIP 4.7:

    http://www.riverbankcomputing.co.uk/sip/download.php

    Download from 'sip-4.7.1.tar.gz'.

    Also for windows.

Install:

  1. Qt:

    Just double-click the .mpkg. Worked fine.

    Windows & Linux: I have no idea (may be binary, may be source).

  2. SIP:

    Run 'python configure.py'.

    Run 'make'.

    Run 'make install' as root.

    Complete terminal output

  3. PyQt:

    Run 'python configure.py'.

    Run 'make'.

    Run 'make install' as root.

    Complete terminal output

Everything should end up in your Python 2.5 'site-packages' directory, which, on the Mac, is at '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages'.

Test:

Double-click on 'PyQt-mac-gpl-4.3.1/examples/tools/qtdemo/qtdemo.py':

Run AstroPy 'plots.py':

Problems?

Before killing yourself, try wxPython. This is another good graphics system for Python. Binaries are available for OS X, Windows, and Fedora Core 6/7:

http://www.wxpython.org/download.php#binaries

See also:

http://www.wxpython.org/screenshots.php
http://www.skycoyote.com/sky/Python/043007/: Window/graphics systems (about 1/3 down page)


İSky Coyote 2007