Problem with typing numbers and keys on Mac version

Hello,
I have noticed on the mac version of AFNI I am unable to type numbers and also unable to use certain or all keyboard quick commands such as inputting number values for or using v for video mode. AFNI was also set up correctly so I am wondering what the solution to this will be.

Thanks,
Jared

Hi Jared,

My guess is that DYLD_LIBRARY_PATH is not set correctly.

  1. Do you have a num-lock key? If so try toggling it.

  2. If you run "suma’, does it display a surface or crash?

  • rick

I received this after typing suma:
No input specified, loading some toy surfaces…
Use ‘.’ and ‘,’ to cycle between them.
See suma -help for assistance.

Error: attempt to add non-widget child “dsm” to parent “[A] SUMA” which supports only widgets

jared

Hi Jared,

So you just need that variable set, probably for both
bash and tcsh. Would you please copy-and-paste the
following commands?

What is the output of the first one, ‘ls’?

ls -l ~/.cshrc ~/.bashrc ~/.bash_profile

touch ~/.cshrc
echo ‘setenv DYLD_LIBRARY_PATH /opt/X11/lib/flat_namespace’ >> ~/.cshrc
touch ~/.bashrc
echo ‘export DYLD_LIBRARY_PATH=/opt/X11/lib/flat_namespace’ >> ~/.bashrc

  • rick

ok the message I received from the first command was "l2195:~ atsuchiyagaito$ ls: /Users/atsuchiyagaito/.bash_profile: No such file or directory
-bash: ls:: command not found
l2195:~ atsuchiyagaito$ ls: /Users/atsuchiyagaito/.bashrc: No such file or directory
-bash: ls:: command not found
l2195:~ atsuchiyagaito$ ls: /Users/atsuchiyagaito/.cshrc: No such file or directory
-bash: ls:: command not found "

And after inputting the rest of the commands I am now able to use digits in the AFNI module, thank you very much.

Hi Rick,
I am in the process of installing afni and suma on a new mac (version 10.13.1). When I run just the suma command I get the following error:

Error: attempt to add non-widget child “dsm” to parent “[A] SUMA” which supports only widgets

Same error as Jared, and when I run the code you provided to him, I get the following output:

-rw-r–r-- 1 patrickrollo staff 59 May 8 10:57 /Users/patrickrollo/.bash_profile
-rw-r–r–@ 1 patrickrollo staff 149 May 8 11:37 /Users/patrickrollo/.bashrc
-rw-r–r-- 1 patrickrollo staff 252 May 8 11:36 /Users/patrickrollo/.cshrc

Running the additional lines of code you posted did not fix the error.

Thanks,
Patrick

Hi Patrick,

It seems likely that you are running bash and using the
Terminal program, in which case, since you have .bash_profile,
bash will use that.

So within .bash_profile you should either ‘.’ or ‘source’ ~/.bashrc,
or you should directly export DYLD_LIBRARY_PATH as was given
with the other commands.

Give that a try.

  • rick

Rick,
I should be using tcsh, I’ve attached the .tcshrc file below that I’ve used to set the terminal environment.

#! /bin/csh

set path = (/usr/bin /bin /usr/sbin /sbin /sw/bin /usr/local/bin /Applications/abin /Applications/MRICRON /Applications/MATLAB_R2014a.app/bin/)
setenv CODE_PATH /Volumes/Sector4/grad_code/cihan_code/

alias matlab /Applications/MATLAB_R2014a.app/bin/matlab
alias load_afni ${CODE_PATH}/useful_cmk/./load_pt_afni
alias load_local_afni ${CODE_PATH}/useful_cmk/./load_pt_afni_local
alias load_std_afni ${CODE_PATH}/useful_cmk/./load_std_pt_afni
alias load_std_local_afni /${CODE_PATH}/useful_cmk/./load_std_pt_afni_local
alias load_suma ${CODE_PATH}/useful_cmk/./load_pt_suma
alias load_local_suma ${CODE_PATH}/useful_cmk/./load_pt_suma_local
alias load_std_suma ${CODE_PATH}/useful_cmk/./load_std_pt_suma
alias load_std_local_suma ${CODE_PATH}/useful_cmk/./load_std_pt_suma_local
alias load_vatche ${CODE_PATH}/useful_cmk/./load_pt_afni_vatche
alias organize_elec ${CODE_PATH}/Afni_cmk/./Auto_Elec_Organize_Script.sh
alias praat /Applications/Praat.app/Contents/MacOS/Praat

alias localize_matt /Volumes/Sector4/grad_code/Matthew_code/./sEEG_Auto_Localize_And_Organize
alias edit_matt /Volumes/Sector4/grad_code/Matthew_code/./sEEG_edit
alias mont_matt /Volumes/Sector4/grad_code/Matthew_code/./Coords_mont_maker
alias CT_matt /Volumes/Sector4/grad_code/Matthew_code/./CT_Align
alias elec_viewer /Volumes/Sector4/grad_code/Matthew_code/./Elec_viewer

setenv AFNI_PLUGINPATH /Applications/abin/
setenv AFNI_GLOBAL_SESSION /Applications/CA_EZ_v1.5-July3107
setenv FREESURFER_HOME /Applications/freesurfer/
setenv SUBJECTS_DIR /Volumes/Sector2/surfaces/TandonLang/
setenv LM_LICENSE_FILE /Applications/MatLab_LicenseManager/MATLAB_R2014a.app/etc/license.dat
source $FREESURFER_HOME/SetUpFreeSurfer.csh

setenv FSLDIR /usr/local/fsl

setenv AFNI_DICOM_RESCALE YES
setenv DYLD_FALLBACK_LIBRARY_PATH /Applications/abin/
setenv AFNI_NIFTI_TYPE_WARN YES

Setting PATH for MacPython 2.6

The orginal version is saved in .cshrc.pysave

set path=(/Library/Frameworks/Python.framework/Versions/2.6/bin $path)

Setting PATH for Python 3.2

The orginal version is saved in .cshrc.pysave

set path=(/Library/Frameworks/Python.framework/Versions/3.2/bin $path)

MacPorts Installer addition on 2012-11-19_at_15:29:04: adding an appropriate PATH variable for use with MacPorts.

setenv PATH /opt/local/bin:/opt/local/sbin:$PATH

Setting PATH for Python 2.7

The orginal version is saved in .cshrc.pysave

set path=(/Library/Frameworks/Python.framework/Versions/2.7/bin $path)

setenv DYLD_LIBRARY_PATH “”
setenv DYLD_FALLBACK_LIBRARY_PATH /Applications/abin/

set path=(/Applications/Slicer.app/Contents/cli-modules/ $path)

Setting up environment to use Fink

source /sw/bin/init.csh
alias freeview /Applications/freesurfer/bin/Freeview.app/Contents/MacOS/Freeview

if ( -f $HOME/.afni/help/all_progs.COMP ) then
source $HOME/.afni/help/all_progs.COMP
endif

Hi Patrick,

In there, DYLD_LIBRARY_PATH is explicitly being set to “”.
It needs to point to /opt/X11/lib/flat_namespace. Even when
using tcsh, there might be cases where it will be needed in
bash.

  • rick

That got it working, thanks!