Dear Senior Engineers,
I bumped into a problem. I can’t execute uber_subject.py. The error message is “failed to import PyQt4.QtGui”. My AFNI is run on Linux. I use “conda” to install python and its packages. After I tried to search for and read the history problems about his, I modified PYTHONPATH and DYLD_FALLBACK_LIBRARY_PATH, but still can’t find PyQt. Please help me out. The following are the messages I got when I was trying to enter different commands.
When I type “which python”, I got:
/home/brain/anaconda2/bin/python
When I type “conda list pyqt”, I got:
# packages in environment at /home/brain/anaconda2:
#
pyqt 5.6.0 py27_3 conda-forge
When I type “printf ‘import sip\nprint sip\n’ | python”, I got:
<module ‘sip’ from ‘/home/brain/anaconda2/lib/python2.7/site-packages/sip.so’>
When I type “printf ‘import PyQt5\nprint PyQt5\n’ | python”, I got
<module ‘PyQt5’ from /home/brain/anaconda2/lib/python2.7/sitepackages/PyQt5/init.pyc’>
The following is my installing information about AFNI:
-------------------------------- general ---------------------------------
architecture: 64bit ELF
system: Linux
release: 3.16.0-4-amd64
version: #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24)
distribution: debian 8.0
number of CPUs: 2
apparent login shell: bash
shell RC file: .bashrc (exists)
--------------------- AFNI and related program tests ---------------------
which afni : /usr/bin/afni
afni version : Precompiled binary Debian-x86_64-1-gnu: Aug 28 2016
:
AFNI_version.txt : AFNI_17.1.06, linux_openmp_64, May 21 2017
which python : /home/brain/anaconda2/bin/python
python version : 2.7.13
which R : /usr/bin/R
R version : R version 3.1.1 (2014-07-10) – “Sock it to Me”
which tcsh : /usr/bin/tcsh
instances of various programs found in PATH:
afni : 2
/usr/lib/afni/bin/afni_wrapper
/home/brain/abin/afni
R : 1 (/usr/bin/R)
python : 2
/home/brain/anaconda2/bin/python2.7
/usr/bin/python2.7
python2 : 2
/home/brain/anaconda2/bin/python2.7
/usr/bin/python2.7
python3 : 1 (/usr/bin/python3.4)
testing ability to start various programs…
afni : success
suma : success
3dSkullStrip : success
uber_subject.py : success
3dAllineate : success
3dRSFC : success
SurfMesh : success
checking for R packages…
rPkgsInstall -pkgs ALL -check : FAILURE
oo Warning:
These packages are not installed on the computer: afex!
These packages are not installed on the computer: phia!
checking for $HOME files…
.afnirc : found
.sumarc : found
.afni/help/all_progs.COMP : found
------------------------------ python libs -------------------------------
** python module not found: PyQt4
-------------------------------- env vars --------------------------------
PATH = /home/brain/anaconda2/bin:/usr/share/fsl/5.0/bin:/usr/lib/fsl/5.0:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/brain/abin
PYTHONPATH =/home/brain/anaconda2/lib/python2.7/sitepackages
R_LIBS = /home/brain/R
LD_LIBRARY_PATH = /usr/lib/fsl/5.0
DYLD_LIBRARY_PATH =
DYLD_FALLBACK_LIBRARY_PATH = /home/brain/abin
------------------------------ data checks -------------------------------
data dir : missing AFNI_data6
data dir : missing AFNI_demos
data dir : missing suma_demo
data dir : missing afni_handouts
atlas : found TT_N27+tlrc under /usr/share/afni/atlases
------------------------------ OS specific -------------------------------
which apt-get : /usr/bin/apt-get
apt-get version : apt 1.0.9.8 for amd64 compiled on Apr 13 2015 12:50:11