AFNI installation problems: ** have PyQt4, but cannot load QtCore, QtGui

Hi–this is my first time using AFNI. I followed the instructions for OSX (10.9.5). It seems the problems have to do with a partial installation of PyQT4 but attempting to install it again results in “no packages to install”. There was also a failure to start SurfMesh.
I am pasting the full evaluation report below. Any help would be greatly appreciated!
-------------------------------- general ---------------------------------
architecture: 64bit
system: Darwin
release: 13.4.0
version: Darwin Kernel Version 13.4.0: Mon Jan 11 18:17:34 PST 2016; root:xnu-2422.115.15~1/RELEASE_X86_64
distribution: 10.9.5 i386
number of CPUs: 8
apparent login shell: tcsh
shell RC file: .cshrc (exists)

--------------------- AFNI and related program tests ---------------------
which afni : /Users/Llorensm/abin/afni
afni version : Precompiled binary macosx_10.7_local: Jul 10 2017
: AFNI_17.2.02
AFNI_version.txt : AFNI_17.2.02, macosx_10.7_local, Jul 10 2017
which python : /Library/Frameworks/Python.framework/Versions/2.7/bin/python
python version : 2.7.0
which R : /usr/bin/R
R version : R version 3.3.3 (2017-03-06) – “Another Canoe”
which tcsh : /bin/tcsh

instances of various programs found in PATH:
afni : 1 (/Users/Llorensm/abin/afni)
R : 1 (/Library/Frameworks/R.framework/Versions/3.3/Resources/bin/R)
python : 3
python2 : 1 (/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7)
python3 : 1 (/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5)

testing ability to start various programs…
afni : success
suma : success
3dSkullStrip : success : success
3dAllineate : success
3dRSFC : success
SurfMesh : FAILURE
/bin/sh: SurfMesh: command not found

checking for R packages…
rPkgsInstall -pkgs ALL -check : success

checking for $HOME files…
.afnirc : found
.sumarc : found
.afni/help/all_progs.COMP : found

------------------------------ python libs -------------------------------
++ module ‘PyQt4’ found at /sw/lib/qt4-mac/lib/python2.7/site-packages/PyQt4
++ module loaded: PyQt4

** have PyQt4, but cannot load QtCore, QtGui; error is:

Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named sip

python binaries under /sw/bin:
/sw/bin/python (sym link to /sw/bin/python2.7)

-------------------------------- env vars --------------------------------
PATH = /Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/sw/bin:/sw/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/usr/texbin:/Users/Llorensm/abin:/Users/Llorensm/abin

PYTHONPATH = /sw/lib/qt4-mac/lib/python2.7/site-packages

DYLD_LIBRARY_PATH = /opt/X11/lib/flat_namespace


------------------------------ data checks -------------------------------
data dir : found AFNI_data6 under $HOME
top history: … [rickr]: updated FT_white.nii w/out 16 (brain stem)
data dir : found AFNI_demos under $HOME
top history: … [pault]: remove rank from FATCAT_DEMO, FAT_MVM_DEMO
data dir : found suma_demo under $HOME
top history: …/SUMA_data/Build_tmp on Wed Aug 20 10:04:23 EDT 2014
data dir : found afni_handouts under $HOME
atlas : found TT_N27+tlrc under /Users/Llorensm/abin

------------------------------ OS specific -------------------------------
which fink : /sw/bin/fink
fink version : Package manager version: 0.41.1
which brew : /usr/local/bin/brew
brew version : Homebrew 0.9.9 (git revision aa74; last commit 2016-05-26)

++ found ‘brew’ at /usr/local/bin/brew
++ found PyQt4 under /usr/local/lib/python2.7/site-packages
++ found 1 dylib files under ‘/opt/X11/lib/flat_namespace’
– found ‘libXt’ dylib files:
++ yay, env var DYLD_LIBRARY_PATH contains /opt/X11/lib/flat_namespace
++ found without flat_namespace: /opt/X11/lib/libXt.7.dylib
link libXt.dylib points to /opt/X11/lib/libXt.6.dylib (good!)

========================= summary, please fix: =========================

  • AFNI programs show FAILURE
  • check for partial install of PyQt4
  • consider adding /usr/local/lib/python2.7/site-packages to PYTHONPATH


It might be worth asking whether you need PyQt4. That is
needed to run the uber*.py programs, but not otherwise.

To use it, consider running python out of /sw instead of
/usr/bin, so put /sw/bin first in your PATH. That should
work (edit your .cshrc file and open a new terminal to try).

SurfMesh you almost certainly do not need. Missing that
is my fault, but it is a low priority to fix…

Let me know if the python bit is not clear.

  • rick

I looked into this and you are right, I don’t need it right now! Thanks, everything seems to be working just fine.