"env: python: No such file or directory" message after rebooting

Hello,

I am trying to install AFNI using my terminal. All steps from A-D work fine, however after pasting the script from step E, I receive an error message saying that "env: python: No such file or directory".

Here is a complete log of the output after pasting in step E into my terminal:

lawn-10-91-95-129:~ bianca.dullabh$ tcsh OS_notes.macos_12_intel_b_user.tcsh
setenv: Too many arguments.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:01:56 --:--:--     0^C

lawn-10-91-95-129:~ bianca.dullabh$ tcsh OS_notes.macos_12_intel_b_user.tcsh
setenv: Too many arguments.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3521  100  3521    0     0  33425      0 --:--:-- --:--:-- --:--:-- 33533
set os = `uname -s`
uname -s
if ( 0 ) then
if ( Darwin != Darwin ) then
set cpu = `uname -m`
uname -m
if ( 0 ) then
set rver = `R --version | head -n 1 | cut -d ' ' -f 3`
R --version
cut -d   -f 3
head -n 1
if ( 0 ) then
echo OS    : Darwin
OS    : Darwin
echo CPU   : x86_64
CPU   : x86_64
echo R ver : 4.3.1
R ver : 4.3.1
echo 

defaults write org.macosforge.xquartz.X11 wm_ffm -bool true
defaults write org.x.X11 wm_ffm -bool true
defaults write com.apple.Terminal FocusFollowsMouse -string YES
curl -O https://afni.nimh.nih.gov/pub/dist/bin/misc/@update.afni.binaries
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 53097  100 53097    0     0   301k      0 --:--:-- --:--:-- --:--:--  301k
tcsh @update.afni.binaries -no_recur -package anyos_text_atlas -bindir /Users/bianca.dullabh/abin
setenv: Too many arguments.
-- running @update.afni.binaries version 3.24, December 7, 2023
-- no current AFNI package found in path...
-- any downloads will be from https://afni.nimh.nih.gov via curl -O -f

-- attempting to install package anyos_text_atlas under
   install dir: /Users/bianca.dullabh/abin...
-- have install dir
++ working in new temp dir, .tmp.install
-- skipping update of @update.afni.binaries
++ downloading test file: curl -O -f anyos_text_atlas/AFNI_version.txt ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    42  100    42    0     0    373      0 --:--:-- --:--:-- --:--:--   375
++ no update needed
/Users/bianca.dullabh/abin/init_user_dotfiles.py -shell_list bash zsh tcsh -do_updates path apsearch -dir_bin /Users/bianca.dullabh/abin
env: python: No such file or directory

Please advise how to complete the installation process for AFNI. I also already have the latest version of Python installed in my laptop (3.12.1).

Thanks,
Bianca

Hi Bianca,

It seems likely that there is a typo in your .cshrc (or .tcshrc) file, since that "setenv: Too many arguments" error is showing up each time a tcsh script is run. And that typo will probably terminate the .cshrc file processing, so you may miss things like adding python to the path.

Do you see any error in your .cshrc file?

  • rick

Hi Rick,

how can I check for any errors in my .cshrc file? I am not sure what file that is or how to access it, nor did I write or edit anything in it.

Bianca

Hi Bianca,

You can view it with an editor or just "cat" it to the screen:

cat ~/.cshrc

If you would rather not post it for any reason, please feel free to send me a direct message with its contents (click on my icon and select Message).

  • rick

Hi Rick,

Here's what comes up when I put in that code:

Biancas-MacBook-Pro:~ bianca.dullabh$ cat ~/.cshrc

# -------------------------------------------------------
# for AFNI: auto-inserted by init_user_dotfiles.py

# add AFNI abin to PATH
setenv PATH ${PATH}:/Users/bianca.dullabh/abin

# set up tab completion for AFNI programs
# (only do this in an interactive shell)
if ( $?prompt ) then
   if ( "$prompt" != "" ) then
      if ( -f $HOME/.afni/help/all_progs.COMP ) then
         source $HOME/.afni/help/all_progs.COMP
      endif
   endif
endif
# -------------------------------------------------------

Bianca

Hi Bianca,

That looks good. It is possible that you also have a .tcshrc file, which gets priority. Otherwise, I will send you a message about how to send me all of the likely files in question.

cat ~/.tcshrc
  • rick

Hi Rick,

Here's what comes up when I put that in:

Biancas-MacBook-Pro:~ bianca.dullabh$ cat ~/.tcshrc

# -------------------------------------------------------
# for AFNI: auto-inserted by init_user_dotfiles.py

# import the environment from .cshrc
source /Users/bianca.dullabh/.cshrc
# -------------------------------------------------------

Bianca

Hi Bianca,

Since those files look okay, it might be more efficient to have a little zoom chat. I will send you a private message of that seems like a good way to go.

  • rick