openyou / emokit

Open source driver for accessing raw data from the Emotiv EPOC EEG headset
http://www.openyou.org
Other
523 stars 236 forks source link

python port doesn't work in OS X #54

Closed fommil closed 10 years ago

fommil commented 11 years ago

Looks like the python code is expecting to see the Linux /sys/class/hidraw

python render.py 
No psyco.  Expect poor performance. Not really...
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gevent/greenlet.py", line 390, in run
    result = self._run(*self.args, **self.kwargs)
  File "/Users/samuel/Documents/Projects/emokit/python/emotiv.py", line 234, in setup
    self.setupPosix()
  File "/Users/samuel/Documents/Projects/emokit/python/emotiv.py", line 331, in setupPosix
    setup = self.getLinuxSetup()
  File "/Users/samuel/Documents/Projects/emokit/python/emotiv.py", line 250, in getLinuxSetup
    for filename in os.listdir("/sys/class/hidraw"):
OSError: [Errno 2] No such file or directory: '/sys/class/hidraw'
<Greenlet at 0x107b09eb0: <bound method Emotiv.setup of <emotiv.Emotiv object at 0x1078073d0>>> failed with OSError
kanzure commented 10 years ago

Btw, that note about cython-hidapi hasn't made it into any README yet.

ghost commented 10 years ago

Oops, I overlooked that file. Its ready to be pulled in.

olorin commented 10 years ago

Merged that.