I am wondering why I got the following error when running 1dplot.
[duongs-mbp:~] dhuynh% 1dplot outcount.r01.1D
++ 1dplot: AFNI version=AFNI_17.0.18 (Mar 29 2017) [64-bit]
++ Authored by: RWC et al.
Warning: Widget must be a VendorShell.
Error: attempt to add non-widget child “dsm” to parent “1dplot” which supports only widgets
If this is on a relative recent Mac OS specifically, the problem may be the one solved by this step from the Mac install instructions:
XQuartz has altered the library format, so adjust DYLD_LIBRARY_PATH by doing either:
echo 'setenv DYLD_LIBRARY_PATH /opt/X11/lib/flat_namespace' >> ~/.cshrc
echo 'export DYLD_LIBRARY_PATH=/opt/X11/lib/flat_namespace' >> ~/.bashrc
Dear all, I have the same problem… I’ve already export DYLD_LIBRARY_PATH=/opt/X11/lib/flat_namespace in my .bashrc but I still have the same error (Warning: Widget must be a VendorShell.
Error: attempt to add non-widget child “dsm” to parent “1dplot” which supports only widgets) with afni preprocessing…
Anyone could help me?
Have you also added this to your .cshrc file too?
I recently installed afni and I am running into the same issue. I have added these commands to both my .bashrc and .cshrc files. However, being a UNIX novice, I am not sure if terminal is running these files at startup since the tab auto completion (e.g. 3dinfo - ) only beeps even though
are also included in this file.
I’m still stuck with tab autocompletion, but for novices after following this advice, in terminal:
add the line: “source ~/.bashrc”
this seemed to help my 1dplot error
The tab autocompletion of AFNI programs is a different beast. Run:
and when it is done running (shouldn’t take very long), check the terminal-- there may likely be a message for you to copy+paste something into your current shell’s ~/.*rc file. If not, just open a new terminal, and put an AFNI command followed by a space and a hyphen ‘-’, and then hit tab (probably a few times, since you will have several options to complete). Does that work?
Re. the beeping-- are you on a Mac? To turn that annoyance off, go to the Terminal’s menu bar, select Terminal → Preferences → Profiles → Advanced, and then deselect “Audible bell” and “Visual bell” items.
On Ubuntu, at least, I don’t think there are bells by default.
Note that the “set file …” and other “set …” commands are only for your ~/.cshrc file, not for ~/.bashrc (as noted in the instructions here: https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/background_install/install_instructs/steps_mac.html#niceify-terminal-optional-but-goood). The syntax is wrong for ~/.bashrc-- that might even cause an error when reading the ~/.bashrc file, so you should remove those from it.
To find out what shell you are using in a terminal, you can type: