Open wangwuqi opened 7 years ago
i think its related to your libhidapi-libusb.so file.
it looks like you're missing a file related to utilizing the usb. also.... i'm not sure how things will work for you with virtualbox...
you may have to try to hunt down those libhidapi-libusb.so files or find out what library they're from... i suggest a google search of
OSError: libhidapi-libusb.so.0: cannot open shared object file: No such file or directory
you may also want to investigate how virtualbox is communicating in regards to the /hidapi/
i think i've had issues with the past using USB stuff in virtualbox, kind of complicates matters.... i remember, you also needed to install an "extended virtualbox" addon as well.
I install emokit on windows10, and run the Usage example code, and the reader just 'stopping, stopped and restart',
Reader stopping...
Reader stopped...
Restarting Reader
Initializing Reader Thread...
well, I find the similar issue 'Reader Thread Keeps Restarting #218'
I had the same issue, until i tried in ubuntu ( not in virtual box) and all hidapi and reader restarting problems were solved
On Tue, Jul 4, 2017 at 9:44 AM, wuqi notifications@github.com wrote:
well, I find the similar issue 'Reader Thread Keeps Restarting #218 https://github.com/openyou/emokit/issues/218'
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/openyou/emokit/issues/266#issuecomment-312794100, or mute the thread https://github.com/notifications/unsubscribe-auth/APFkn5W-R92aIyXeL0iE-nfgDnMjRza7ks5sKd9kgaJpZM4OMQwb .
I think I'll eventually have to setup linux so I can assist with updating the repository, it would be nice to get it working in virtualbox too.. because then it could be an easy switch back and forth from Windows.
At this time though, it doesn't make sense for me to commit my time and mental resources to setting up the OS, and tweaking the scripts settings to get it to work. Makes more sense to continue trying to decipher the workings of these devices, first figuring out how they work before spreading myself over two architectures.
I had the same problem. I fixed it by changing a line hidapi.py. It's dirty but it works. at line 157 you have the function find_library but it doesn't return the complete path only the name of the library. What I did was to had the rest of the path to the shared library at line 164:
__libpath = find_library('hidapi') or\
find_library('hidapi-libusb') or\
find_library('hidapi-hidraw')
print(__libpath)
if __libpath is None:
raise RuntimeError('Could not find the hidapi shared library.')
# Load the hidapi library.
__hidapi = CDLL(r"/usr/local/lib/{}".format(__libpath)) #this is 164 where I added the rest of the path
assert __hidapi is not None
hope it helps
Also. Epoc+ uses the hidapi product name of 'EEG Signals'
I don't know anything about this repo or your OS, but on Linux I had this error while trying to run Monero's GUI wallet. I fixed it in Ubuntu with:
sudo apt install libhidapi-libusb0
Other distros probably have a similar package.
I install the emokit and run the Usage example code, then it cant work