Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with running mousecontrol.py #275

Open
wardiv opened this issue Sep 13, 2017 · 1 comment
Open

Issue with running mousecontrol.py #275

wardiv opened this issue Sep 13, 2017 · 1 comment

Comments

@wardiv
Copy link

wardiv commented Sep 13, 2017

Hi, I have been trying to run mouse control.py from https://github.com/nikhiljay/brainwaves/tree/master/emokit/python and I am getting following error.

`Traceback (most recent call last):
File "/Users/divz/anaconda/lib/python2.7/site-packages/gevent/greenlet.py", line 534, in run
result = self._run(*self.args, **self.kwargs)
File "/Users/divz/Documents/brainwaves-master/emokit/python/emokit/emotiv.py", line 425, in setup
self.setup_darwin()
File "/Users/divz/Documents/brainwaves-master/emokit/python/emokit/emotiv.py", line 552, in setup_darwin
data = hidraw.read(34)
File "hid.pyx", line 105, in hid.device.read (hid.c:2338)
ValueError: not open
<Greenlet at 0x102591e10: <bound method Emotiv.setup of <emokit.emotiv.Emotiv object at 0x10218d510>>> failed with ValueError

Traceback (most recent call last):
File "mouse_control.py", line 79, in
main()
File "mouse_control.py", line 50, in main
screen = Xlib()
File "mouse_control.py", line 16, in init
self.xlib = ctypes.cdll.LoadLibrary('libX11.dylib')
File "/Users/divz/anaconda/lib/python2.7/ctypes/init.py", line 440, in LoadLibrary
return self._dlltype(name)
File "/Users/divz/anaconda/lib/python2.7/ctypes/init.py", line 362, in init
self._handle = _dlopen(self._name, mode)
OSError: dlopen(libX11.dylib, 6): image not found`

Any help would be appreciated. Thanks in advance !

@warrenarea
Copy link

warrenarea commented Sep 15, 2017

I haven't done much experimenting with the Linux portion of emokit.

However, if I had to make an educated guess, I would say, the issue lays with
it not finding an appropriate library.

libX11.dylib

I would investigate why its not loading that library.
also... it looks like you're using something from another repository...
so it just might not be compatible with the Epoc as well... so it might not
be detecting the correct USB device as well... and the Epoc has a different
gyro configuration as well... so that other repository probably wouldn't work
if you're using the Epoc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants