GUI "No such file or directory" error, on Fedora
hi, I'm running Fedora 30. At the terminal I enter $ bash OpenBCI_GUI I get error: line 5 ... No such file or directory. What am I doing wrong? I thought there used to be a bug like this several months ago that was fixed.
Comments
Has the GUI worked for you in the past? Have you followed all the Linux specific tips on this page?
https://docs.openbci.com/docs/06Software/01-OpenBCISoftware/GUIDocs
Regards, William
Thanks William. I just tried those commands as written. Same results out, error line 5.
$ ./OpenBCI_GUI
&
$ sudo ./OpenBCI_GUI
cd to that directory then:
$ ./OpenBCI_GUI
./OpenBCI_GUI: line 5: /home/xxxxx/Software/OpenBCI: No such file or directory
(base) [xxxxx@localhost OpenBCI_GUI]$
Same with running it under sudo.
This is the shell script that is running that ./OpenBCI_GUI command:
So it looks like one of the pathnames in the classpath are not being found. I asked previously: "Has the GUI worked for you in the past?" You can find older versions here, this zip on the Downloads page looks be a beta. Try 4.1.6 or if that fails, even earlier.
https://github.com/OpenBCI/OpenBCI_GUI/releases
Mentioning Richard @retiutut.
Oh, I did get another version to run after I modified one of the lines. I don't remember now what I did. This was probably six months ago. How do I find my correct java paths? I thought I had installed it.
I tried: $ sudo dnf install java
Results:
Installed:
java-1.8.0-openjdk-1:1.8.0.232.b09-0.fc30.x86_64
java-1.8.0-openjdk-headless-1:1.8.0.232.b09-0.fc30.x86_64
tzdata-java-2019c-1.fc30.noarch
copy-jdk-configs-3.7-3.fc30.noarch
javapackages-filesystem-5.3.0-4.fc30.noarch
lksctp-tools-1.0.16-11.fc30.x86_64
lua-posix-33.3.1-13.fc30.x86_64
ttmkfdir-3.0.9-56.fc30.x86_64
xorg-x11-fonts-Type1-7.5-21.fc30.noarch
Can you just try downloading 4.1.6 and see if that works? The current zip in Downloads area is labeled as a beta, and that may be what explains this glitch. If you get something to work, please post here. Besides the 4.1.6, there are even older ones.
I'm not exactly sure where the missing file is in that long shell script. May or may not be in the classpath.
Is it possible you have an unusual $PATH or $CLASSPATH environment variable already set that is somehow conflicting with that which is setup by the zip folder hierarchy? The zip contains it's own java tree and libraries.
I just downloaded 4.16 & tried to run it. Same error.
Does that need to be run from home? I put all my software into it's own folder.
Yes wrong path variables are possible. I don't know how to set that. I don't see a java path in .bashrc.
$ echo $PATH
$ echo $CLASSPATH
etc.
The unzipped folder 'should' not care where it is unzipped to.
Ya that's what I thought.
(base) [jeffrey@localhost OpenBCI_GUI]$ echo $PATH
/usr/local/texlive/2019/bin/x86_64-linux:/home/jeffrey/Software/anaconda3/bin:/home/jeffrey/Software/anaconda3/condabin:/usr/local/texlive/2019/bin/x86_64-linux:/home/jeffrey/.local/bin:/home/jeffrey/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/var/lib/snapd/snap/bin
$ echo $CLASSPATH
bash: $: command not found
I'm not running on Linux at the moment. I'm hoping Richard, the GUI dev and guru, will hop in here at some point. He's probably offline for the day. I'm not clear what is triggering the "no such file" error. Could it be that the shell script cannot even start Java?
Try inserting "set -x" just after the first line of the shell script. So the first two lines of the script will look like:
This will cause each subsequent line of the script to print all it's expanded arguments. So should tell us if the $APPDIR and other pathnames are getting expanded correctly.
$ ./OpenBCI_GUI
++ readlink -f ./OpenBCI_GUI
+ APPDIR='/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/OpenBCI_GUI'
++ dirname '/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/OpenBCI_GUI'
+ APPDIR='/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI'
+ /home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/java/bin/java -Djna.nosys=true '-Djava.ext.dirs=/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/java/lib/ext' '-Djava.library.path=/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib' -cp '/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/LSLLink.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/OpenBCI_GUI.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/core.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/jogl-all.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/gluegen-rt.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/jogl-all-natives-linux-amd64.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/gluegen-rt-natives-linux-amd64.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/jl1.0.1.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/mp3spi1.9.5.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/jsminim.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/tritonus_aos.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/minim.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/tritonus_share.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/serial.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/jssc.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/net.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/grafica.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/GifAnimation.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/oscP5.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/udp.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/jna.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/jna-platform.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/LSLLink.jar:/home/jeffrey/Software/OpenBCI software/OpenBCIsoftware4.17/OpenBCI_GUI/lib/controlP5.jar' OpenBCI_GUI
./OpenBCI_GUI: line 6: /home/jeffrey/Software/OpenBCI: No such file or directory
(base) [jeffrey@localhost OpenBCI_GUI]$
On Linux and some other OSes, having a 'space' character in a pathname component, can lead to cryptic problems. Suggest you remove that.
Oh crap. Hang on. I didn't catch that.
Yay! Got it got it got it. Thankyou thankyou. Much appreciate the help.
Denny, great.
It's sometimes possible to 'insulate' shell scripts from the embedded space issue. But it's best practice (on Linux and Windows shell scripts) to just avoid using such pathnames. Mac's seem to deal with it better.
Ya I know, I just didn't notice that.
Do you have any idea what the bottom end of the amplifier is? Looks like they've got 1Hz in the software. I'm interested in looking at sub-1Hz freqs. Is there a white paper that describes the hardware that this might be in? Also wondering about the top end.
You did not say which board. Cyton IS "DC coupled", but Ganglion is not. Top end is dependent on the sampling rate. Nyquist recommends two samples per waveform, but that is subject to aliasing. Better metric is to sample at least 4 or 5 times what you want to capture.
https://openbci.com/forum/index.php?p=/discussion/201/large-millivolt-data-values-fbeeg-full-band-eeg
Cyton. What is DC coupled? I'm interested primarily in these very low freqs to 0.1Hz & 0.01Hz. I don't know if you're familiar with Tom Collura's amps but he says they are DC amps so can measure these extremely low freqs. Siegfried Othmer based his research on using Collura's amps, which as I understand it, essentially opened up a new chunk of understanding about EEG & brain function.
DC coupled as opposed to AC coupled, which loses frequencies below .1 Hz. Yes Brainmaster amps, Othmer Cygnet amps, Cyton, all are DC coupled.
https://www.google.com/search?as_q=infralow&as_sitesearch=openbci.com
oh yeah, excellent. that's what I'm looking for.
The internals of Cygnet are proprietary and not published. However there have been various articles and papers written on ILF / ISF training,
https://docs.wixstatic.com/ugd/cba323_fdd03c418d2348f59879f475b82439ee.pdf
[Fall 2013 issue of ISNR NeuroConnections; "What's happening below .5 hz?"]
https://www.isnr.org/neuroconnections
[all issues]
oh great thanks.