Hi experts,
I am new to AFNI, and today I installed the latest version of AFNI on my MacBook Pro with Sonoma 14.1.2. All install process seems successful. However, when I run uber_suject.py, it failed with error messages "failed to import PyQt4.QtGui".
**** failed to import PyQt4.QtGui ****
PyQt4 must be installed to run the uber_subject.py GUI
--> see the output of: uber_subject.py -help_install
Then I tried uber_subject.py -help_install, and I install PyQt4 with " brew install pyqt". It seems successful as well. But it does not work. And I tried to modified PATH file to add "/sw/bin " or " setenv PYTHONPATH /usr/local/lib/python2.7/site-packages". Anyway, it does not work.
Here is my PATH file:
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/roger/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/roger/miniconda3/etc/profile.d/conda.sh" ]; then
. "/Users/roger/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/roger/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup<<< conda initialize <<<
# I add the path here:
setenv PYTHONPATH /usr/local/lib/python2.7/site-packages
export PATH=${PATH}:/sw/binexport PATH=${PATH}:/opt/homebrew/opt/python/libexec/bin
export PATH=${PATH}:/opt/homebrew/opt/python/libexec/bin# -------------------------------------------------------
# for AFNI: auto-inserted by init_user_dotfiles.py# add AFNI abin to PATH
export PATH=${PATH}:/Users/Roger/abin# set up tab completion for AFNI programs
if [ -f $HOME/.afni/help/all_progs.COMP.zsh ]
then
autoload -U +X bashcompinit && bashcompinit
autoload -U +X compinit && compinit -I
&& source $HOME/.afni/help/all_progs.COMP.zsh
fi
# -------------------------------------------------------export R_LIBS=/Users/roger/sw/R-4.3.1
Here is my afni_system_check.py -check_all output:
-------------------------------- general ---------------------------------
architecture: 64bit
cpu type: arm
system: Darwin
release: 23.1.0
version: Darwin Kernel Version 23.1.0: Mon Oct 9 21:27:24 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000
distribution: 14.1.2
number of CPUs: 10
apparent login shell: zsh
shell RC file: .zshrc (exists)--------------------- AFNI and related program tests ---------------------
which afni : /Users/roger/abin/afni
afni version : Precompiled binary macos_13_ARM_clang: Dec 7 2023
: AFNI_23.3.10 'Septimius Severus'
AFNI_version.txt : AFNI_23.3.10, macos_13_ARM_clang, Dec 07 2023, build
which python : /Users/roger/miniconda3/envs/AFNI/bin/python
python version : 3.11.5
which R : /usr/local/bin/R
R version : R version 4.3.1 (aarch64-apple-darwin20)instances of various programs found in PATH:
afni : 1 (/Users/roger/abin/afni)
R : 1 (/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/bin/R)
python : 2
/Users/roger/miniconda3/envs/AFNI/bin/python3.11
/opt/homebrew/Cellar/python@3.11/3.11.6_1/Frameworks/Python.framework/Versions/3.11/bin/python3.11
python2 : 0
python3 : 3
/Users/roger/miniconda3/envs/AFNI/bin/python3.11
/opt/homebrew/Cellar/python@3.11/3.11.6_1/Frameworks/Python.framework/Versions/3.11/bin/python3.11
/usr/bin/python3** have python3 but not python2
testing ability to start various programs...
afni : success
suma : success
3dSkullStrip : success
3dAllineate : success
3dRSFC : success
SurfMesh : success
3dClustSim : success
uber_subject.py : success
3dMVM : success------------------------ dependent program tests -------------------------
checking for dependent programs...which tcsh : /bin/tcsh
which Xvfb : /opt/X11/bin/Xvfbchecking for R packages...
rPkgsInstall -pkgs ALL -check : successR RHOME : /Library/Frameworks/R.framework/Resources
------------------------------ python libs -------------------------------
++ module loaded: matplotlib.pyplot
module file : /Users/roger/miniconda3/envs/AFNI/lib/python3.11/site-packages/matplotlib/pyplot.py
matplotlib version : 3.8.0++ module loaded: flask
module file : /Users/roger/miniconda3/envs/AFNI/lib/python3.11/site-packages/flask/init.py
flask version : 2.2.2++ module loaded: flask_cors
module file : /Users/roger/miniconda3/envs/AFNI/lib/python3.11/site-packages/flask_cors/init.py
flask_cors version : 4.0.0-------------------------------- env vars --------------------------------
PATH = /Users/roger/miniconda3/envs/AFNI/bin:/Users/roger/miniconda3/condabin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/sw/bin:/opt/homebrew/opt/python/libexec/bin:/opt/homebrew/opt/python/libexec/bin:/Users/roger/abin:/sw/bin:/opt/homebrew/opt/python/libexec/bin:/opt/homebrew/opt/python/libexec/bin:/Users/Roger/abinPYTHONPATH =
R_LIBS = /Users/roger/sw/R-4.3.1LD_LIBRARY_PATH =
DYLD_LIBRARY_PATH (sub-shell) =
DYLD_FALLBACK_LIBRARY_PATH (sub-shell) =----------------------------- eval dot files -----------------------------
----------- AFNI $HOME files -----------
.afnirc : found .sumarc : found .afni/help/all_progs.COMP : found
--------- shell startup files ----------
-- good: .cshrc seems to contain 'source .tcshrc'
-- considered operations: path, apsearch-- note: followers should not need edits, so edit flags should be 0
(have 1 follower(s), which can be ignored)no modifications needed across 3 dot files
------------------------------ 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 /Users/Roger/abin------------------------------ OS specific -------------------------------
XQuartz version : 2.8.5which brew : /opt/homebrew/bin/brew
brew version : Homebrew 4.1.24-- consider installing gcc under homebrew
-- consider installing glib under homebrew========================= summary, please fix: =========================
- just be aware: login shell 'zsh', but our code examples use 'tcsh'
- insufficient data for AFNI bootcamp
(see "Prepare for Bootcamp" on install pages)
Could you please give me some solutions for this problem? Thanks a lot!
Best,
Roger