I recently used the recent installer for OSX 10.6/7 to put PyEPL on one of our new testing machines. PyEPL executes normally except for its interaction (or lack thereof) with any ActiveWire boards attached to it (I've tried a couple). Running a PyEPL program (in this case, the testsync program from UPenn) yields the following error:
ActiveWire error: No ActiveWire boards connected. Trying others...
handle: None
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyepl/eeg.py:82: UserWarning: EPL Warning: Neither Scalp nor Pulse EEG syncing was initialized.
exceptions.eplWarn("Neither Scalp nor Pulse EEG syncing was initialized.")
I've looked through the PyEPL code down to where the error is generated in (pyepl/hardware/eeg/pulse/) awCard.py. Beyond there though, I lose track of what's happening since that file seems to have been generated through swig, with which I have no experience, so I'm not sure what's happening beneath the surface when I try to access the AW board, but here's the error I get when running Python interactively:
>>> this = _awCard.new_awCard()
ActiveWire error: No ActiveWire boards connected. Trying others...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: Uncaught exception from ActiveWire card interface!
See line beginning "ActiveWire error" above for details.
I'm not sure if it's an issue with the driver, or the _awCard.so object, or what.
Hi,
I am sorry to get back to you so late, but better to document it now.
AWCard is currently broken on Mac OS X. It relies as far as I can tell on a piece of demo code from Xcode that broke with 10.5 or 10.6. I have not been able to fix the AWCard code myself as I can't get my hand on the source easily + it's not really my strong suite.
I can however tell you how to disable AWCard in the code in order to run PyEPL without it. I might submit changes soon to take AWCard out and we'll see what the developers say.
Andrej