OK Jonathan, to follow up your suggestions.
From the terminal I am running python 2.7.2 (from /usr/bin/python)
From there I can reach the labjack, e.g.
import u3; d=u3.U3(); d.getFIOState(4)
In the coder view 1.81.03 (sys.executable = /Applications/PsychoPy2.app/Contents/MacOS/python):
if I try
import u3
I get ImportError: No module named u3
If I try either
from psychopy.hardware import labjacks
or
from labjack import u3
Then I get another error related to a driver, appended below. I had to compile the libusb myself. I don't know how it works for one python and not the other?
Rob
Traceback (most recent call last):
File "/Volumes/OLD/Users/pss143/Dropbox/Rob/Active/faces/tms/untitled.py", line 4, in <module>
from labjack import u3
File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/labjack/__init__.py", line 1, in <module>
import u3, u6, u12, ue9, skymote, Modbus
File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/labjack/u12.py", line 378, in <module>
raise U12Exception("Could not load the Exodriver driver. Ethernet connectivity only.\n\nCheck that the Exodriver is installed, and the permissions are set correctly.\nThe error message was: %s" % e)
labjack.u12.U12Exception: Could not load the Exodriver driver. Ethernet connectivity only.
Check that the Exodriver is installed, and the permissions are set correctly.
The error message was: dlopen(liblabjackusb.dylib, 6): Library not loaded: /usr/local/lib/libusb-1.0.0.dylib
Referenced from: /usr/local/lib/liblabjackusb.dylib
Reason: no suitable image found. Did find:
/usr/local/lib/libusb-1.0.0.dylib: mach-o, but wrong architecture
/usr/local/lib/libusb-1.0.0.dylib: mach-o, but wrong architecture