AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
October 06, 2020 05:03PM
Hello!

I'm having trouble launching AFNI from terminal (running on macOS Catalina 10.15.6). When I try to launch AFNI by typing "afni -niml &" it will launch the initial AFNI display (initial window with license info and julian date, etc.), but it presents warnings (shown below) and does not launch the full gui. I've tried rebooting my computer and relaunching X11 as well as terminal and the same issue persists. Any ideas for how to troubleshoot?
$ afni -niml &
[1] 3425
$ Precompiled binary macos_10.12_local: Sep 27 2020 (Version AFNI_20.2.19 'Aulus Vitellius')


** Version check disabled: AFNI_VERSION_CHECK forbids
Thanks go to LR Frank for useful feedback

Initializing: X11[The X.Org Foundation v 11804000].
++++++++ IMAGE SAVE SETUP WARNINGS ++++++++
++ Can't find program ffmpeg for Save to MPEG-1
++ To disable these warnings, set environment
++  variable AFNI_IMSAVE_WARNINGS to 'NO'.
+++++++++++++++++++++++++++++++++++++++++++
. Widgets...... Input files:
** Searching subdirectories of './' for data+./abin/
 session #  1  = ./abin/ ==> 54 datasets
 dataset count = 54
 Time series   = 0 files read++ AFNI is detached from terminal.
find: .//Library/Application Support/CallHistoryTransactions: Operation not permitted
find: .//Library/Application Support/com.apple.sharedfilelist: Operation not permitted
find: .//Library/Application Support/com.apple.TCC: Operation not permitted
find: .//Library/Application Support/FileProvider: Operation not permitted
find: .//Library/Application Support/CallHistoryDB: Operation not permitted
find: .//Library/Autosave Information: Operation not permitted
find: .//Library/IdentityServices: Operation not permitted
find: .//Library/Messages: Operation not permitted
find: .//Library/HomeKit: Operation not permitted
find: .//Library/Sharing: Operation not permitted
find: .//Library/Mail: Operation not permitted
find: .//Library/Safari: Operation not permitted
find: .//Library/Suggestions: Operation not permitted
find: .//Library/Containers/com.apple.VoiceMemos: Operation not permitted
find: .//Library/Containers/com.apple.archiveutility: Operation not permitted
find: .//Library/Containers/com.apple.Home: Operation not permitted
find: .//Library/Containers/com.apple.Safari: Operation not permitted
find: .//Library/Containers/com.apple.iChat: Operation not permitted
find: .//Library/Containers/com.apple.CloudDocs.MobileDocumentsFileProvider: Operation not permitted
find: .//Library/Containers/com.apple.mail: Operation not permitted
find: .//Library/Containers/com.apple.news: Operation not permitted
find: .//Library/Containers/com.apple.stocks: Operation not permitted
find: .//Library/PersonalizationPortrait: Operation not permitted
find: .//Library/Metadata/CoreSpotlight: Operation not permitted
find: .//Library/Metadata/com.apple.IntelligentSuggestions: Operation not permitted
find: .//Library/Reminders: Operation not permitted
find: .//Library/Cookies: Operation not permitted
find: .//Library/Caches/CloudKit: Operation not permitted
find: .//Library/Caches/com.apple.ap.adprivacyd: Operation not permitted
find: .//.Trash: Operation not permitted

Here's the output from "afni_system_check.py -check_all" in case that provides more context:
-------------------------------- general ---------------------------------
architecture:         64bit 
system:               Darwin
release:              19.6.0
version:              Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64
distribution:         10.15.7
number of CPUs:       16
apparent login shell: bash
shell RC file:        .bashrc (exists)

--------------------- AFNI and related program tests ---------------------
which afni           : /Users/liuj10/abin/afni
afni version         : Precompiled binary macos_10.12_local: Sep 27 2020 
                     : AFNI_20.2.19 'Aulus Vitellius'
AFNI_version.txt     : AFNI_20.2.19, macos_10.12_local, Sep 27 2020
which python         : /Users/liuj10/opt/anaconda2/bin/python
python version       : 2.7.16
which R              : /Users/liuj10/opt/anaconda2/bin/R
R version            : R version 3.6.1 (2019-07-05) -- "Action of the Toes"
which tcsh           : /bin/tcsh

instances of various programs found in PATH:
    afni    : 1   (/Users/liuj10/abin/afni)
    R       : 2 
      /Users/liuj10/opt/anaconda2/bin/R
      /Library/Frameworks/R.framework/Versions/3.6/Resources/bin/R
    python  : 2 
      /Users/liuj10/opt/anaconda2/bin/python2.7
      /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
    python2 : 2 
      /Users/liuj10/opt/anaconda2/bin/python2.7
      /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
    python3 : 1   (/usr/bin/python3)


testing ability to start various programs...
    afni                 : success
    suma                 : success
    3dSkullStrip         : success
    uber_subject.py      : success
    3dAllineate          : success
    3dRSFC               : success
    SurfMesh             : success
    3dClustSim           : success
    3dMVM                : FAILURE
        Error in dyn.load(ll) : 
          unable to load shared object '/Users/liuj10/abin/R_io.so':
          dlopen(/Users/liuj10/abin/R_io.so, 6): Library not loaded: /sw/Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libR.dylib
          Referenced from: /Users/liuj10/abin/R_io.so
          Reason: image not found
        Calls: source ... withVisible -> eval -> eval -> set_R_io -> dyn.load
        Execution halted

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

R RHOME : /Users/liuj10/opt/anaconda2/lib/R

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

------------------------------ python libs -------------------------------
** failed to load module PyQt4
-- PyQt4 is no longer needed for an AFNI bootcamp

++ module loaded: matplotlib.pyplot
   module file : /Users/liuj10/opt/anaconda2/lib/python2.7/site-packages/matplotlib/pyplot.pyc

-------------------------------- env vars --------------------------------
PATH = /usr/local/ANTs/bin/:/Users/liuj10/opt/anaconda2/bin:/Users/liuj10/opt/anaconda2/condabin:/usr/local/fsl/bin:/usr/local/DTIPrepTools-0.1.1-Linux/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/MATLAB_R2019a.app/bin:/opt/X11/bin:/Users/liuj10/abin:/Users/liuj10/abin

PYTHONPATH = 
R_LIBS = 
LD_LIBRARY_PATH = 
DYLD_LIBRARY_PATH (sub-shell) = :/opt/X11/lib/flat_namespace
DYLD_FALLBACK_LIBRARY_PATH (sub-shell) = 

------------------------------ 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/liuj10/abin

------------------------------ OS specific -------------------------------
XQuartz version      : 2.7.11

which brew           : /usr/local/bin/brew
brew version         : Homebrew 2.5.2

-- for PyQt4 under brew, consider running:
   brew install cartr/qt4/pyqt
++ found valid link /usr/local/lib/libglib-2.0.dylib
   to ../Cellar/glib/2.64.3/lib/libglib-2.0.dylib
++ found 1 dylib files under '/opt/X11/lib/flat_namespace'
   -- found 'libXt' dylib files:
      /opt/X11/lib/flat_namespace/libXt.6.dylib
-- recent OS X, cheating to check DYLD_LIBRARY_PATH in cur shell 'bash'...
++ found evar DYLD_LIBRARY_PATH = :/opt/X11/lib/flat_namespace
-- recent OS X, cheating to check DYLD_LIBRARY_PATH in shell 'tcsh'...
++ found evar DYLD_LIBRARY_PATH = /opt/X11/lib/flat_namespace

=========================  summary, please fix:  =========================
*  just be aware: login shell 'bash', but our code examples use 'tcsh'
*  AFNI programs show FAILURE
*  insufficient data for AFNI bootcamp
*  consider installing gcc under homebrew

On a separate note, I'm also having trouble with R when using 3dMVM (keeps saying R: Command not found), but I think that's a different issue from the gui not launching. Any help with either issue would be most appreciated!

Thank you,
Janelle
Subject Author Posted

Error launching afni

janelleliu October 06, 2020 05:03PM

Re: Error launching afni

rick reynolds October 07, 2020 02:12PM

Re: Error launching afni

discoraj October 07, 2020 02:26PM