History of AFNI updates  

|
March 03, 2012 05:56PM
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

Subject Author Posted

New Program: uber_subject.py

rick reynolds May 16, 2011 06:31PM

Re: New Program: uber_subject.py

Judd May 16, 2011 06:50PM

Re: New Program: uber_subject.py

rick reynolds May 16, 2011 09:10PM

Re: New Program: uber_subject.py

Peter Molfese May 17, 2011 09:44AM

Re: New Program: uber_subject.py

rick reynolds May 17, 2011 10:02AM

Re: New Program: uber_subject.py

rick reynolds May 18, 2011 07:04PM

Re: New Program: uber_subject.py

Peter May 20, 2011 06:26PM

Re: New Program: uber_subject.py

Peter Molfese May 23, 2011 04:43PM

Re: New Program: uber_subject.py

rick reynolds May 24, 2011 08:58AM

Re: New Program: uber_subject.py

Peter Molfese May 24, 2011 10:42AM

Re: New Program: uber_subject.py

rick reynolds May 24, 2011 01:22PM

Re: New Program: uber_subject.py

Peter Molfese May 24, 2011 03:32PM

Re: New Program: uber_subject.py

Peter Molfese May 25, 2011 01:55PM

Re: New Program: uber_subject.py

rick reynolds May 25, 2011 03:12PM

Re: New Program: uber_subject.py

Peter Molfese June 01, 2011 02:37PM

Re: New Program: uber_subject.py

rick reynolds June 01, 2011 03:21PM

Re: New Program: uber_subject.py

Andrew July 09, 2011 07:19PM

Re: New Program: uber_subject.py

rick reynolds July 10, 2011 09:59AM

Re: New Program: uber_subject.py

Andrew Jahn March 03, 2012 05:56PM

Re: New Program: uber_subject.py

Andrew Jahn March 03, 2012 05:58PM

Re: New Program: uber_subject.py

David O'Connor March 06, 2012 12:06AM

Re: New Program: uber_subject.py

rick reynolds March 06, 2012 08:54AM

Re: New Program: uber_subject.py

David O'Connor March 06, 2012 06:02PM

Re: New Program: uber_subject.py

rick reynolds March 06, 2012 08:33PM

Re: New Program: uber_subject.py

Andrew July 11, 2011 12:43AM

Re: New Program: uber_subject.py

rick reynolds July 11, 2011 08:31AM

Re: New Program: uber_subject.py

Andrew July 11, 2011 11:03AM

Re: New Program: uber_subject.py

rick reynolds July 11, 2011 12:02PM

Re: New Program: uber_subject.py

Andrew Jahn July 11, 2011 12:08PM

Re: New Program: uber_subject.py

rick reynolds July 11, 2011 12:23PM

Re: New Program: uber_subject.py

Peter Molfese July 11, 2011 02:48PM

Re: New Program: uber_subject.py

David O'Connor March 01, 2012 07:46PM

Re: New Program: uber_subject.py

rick reynolds March 01, 2012 09:20PM

Re: New Program: uber_subject.py

David O'Connor March 01, 2012 09:45PM

Re: New Program: uber_subject.py

rick reynolds March 01, 2012 09:56PM

Re: New Program: uber_subject.py

David O'Connor March 01, 2012 10:04PM

Re: New Program: uber_subject.py

rick reynolds March 01, 2012 10:28PM

Re: New Program: uber_subject.py

David O'Connor March 01, 2012 11:05PM

Re: New Program: uber_subject.py

rick reynolds March 02, 2012 09:00AM

Re: New Program: uber_subject.py

droyoung May 11, 2012 04:05PM

Re: New Program: uber_subject.py

rick reynolds May 16, 2012 09:29AM