Hi guys,
I was also dealing with this problem a while back (i.e., receiving errors that the PyQt4 module was not found), and also with the error with using fink to install the Python libraries (i.e., using the sudo fink install pyqt4-py2 command).
First, Fink appears to get confused when using multiple simultaneous build jobs. It seems to work fine if you only allow for 1 build job. To do this, type in
sudo fink configure
and when it asks you for Maximum number of simultaneous build jobs, enter 1. Then go back and enter the fink command again to install the Python libraries (Here, Python 2.7):
sudo fink install python27-shlibs pyqt4-py27
This will take a while (for my Macbook Pro running OS 10.6, about 5-6 hours), but it runs without any errors.
Now you need to set links to the new libraries, which should work fine now that PyQt4 has been successfully installed. Just follow the steps Rick outlined above:
sudo ln -s /sw/bin/python2.7 /sw/bin/python
Again, I am running Python 2.7; make sure that you are using the correct version of Python that is installed on your machine!
Lastly, set the PYTHONPATH variable to include the new Qt4 packages. Using a T-shell, this should be something like:
echo 'setenv PYTHONPATH /sw/lib/qt4-x11/lib/python2.7/site-packages/' >> ~/.cshrc
Then do 'rehash' or 'source ~/.cshrc' to update this, and then you should be able to run uber_subject.py.
Final note: In the above example, the path may either be /sw/lib/qt4-x11/lib/python2.7/site-packages, or /sw/lib/qt4-mac/lib/python2.7/site-packages, depending on your machine. Also, it may be python2.7 or python2.6, depending on what you installed. I didn't catch this until I actually read through the documentation of uber_subject.py -help_install (which I should have done a lot earlier!). In any case, take a look in both ls /sw/lib/qt4-mac/ AND ls /sw/lib/qt4-x11 to see which one contains the python libraries.
Hope this helps!
-Andrew