I installed the libraries like described in the
https://www.phidgets.com/docs/OS_-_Linu ... ic_install section on Ubuntu 14.04.5 LTS (trusty), 64-bit. But I have the exact same issue when running the
DigitalOutput.py example:
Code: Select all
kromer@rc-019:~/Downloads$ python DigitalOutput.py
Traceback (most recent call last):
File "DigitalOutput.py", line 9, in <module>
ch = DigitalOutput()
File "/usr/local/lib/python2.7/dist-packages/Phidget22/Devices/DigitalOutput.py", line 28, in __init__
__func = PhidgetSupport.getDll().PhidgetDigitalOutput_create
File "/usr/local/lib/python2.7/dist-packages/Phidget22/PhidgetSupport.py", line 17, in getDll
PhidgetSupport.__dll = cdll.LoadLibrary("libphidget22.so.0.0.0")
File "/usr/lib/python2.7/ctypes/__init__.py", line 443, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libphidget22.so.0.0.0: cannot open shared object file: No such file or directory
Exception OSError: OSError('libphidget22.so.0.0.0: cannot open shared object file: No such file or directory',) in <bound method DigitalOutput.__del__ of <Phidget22.Devices.DigitalOutput.DigitalOutput instance at 0x7f2ddb6d6950>> ignored
When running the C example everything seems to work fine:
Code: Select all
kromer@rc-019:~/Downloads/DigitalOutput_Example/Standard$ ./example
INFO [_phidget22usb][2017-07-28T09:35:14]:Initializing libusb
INFO [_phidget22usb][2017-07-28T09:35:14]:New Phidget found in PhidgetUSBBuildList: 1/18
INFO [_phidget22usb][2017-07-28T09:35:14]:Using Control Endpoint for Host->Device communication.
INFO [phidget22][2017-07-28T09:35:14 usb.c+391 PhidgetUSBReadThreadFunction()]: PhidgetInterfaceKit 0/0/8(1017) (439227): ReadThread starting
channel 0 on device 439227 hub port 0 attached
Setting State to 1 for 5 seconds...
Setting State to 0 for 5 seconds...
INFO [_phidget22usb][2017-07-28T09:35:24]:
channel 0 on device 439227 detached
INFO [phidget22][2017-07-28T09:35:24 usb.c+458 PhidgetUSBReadThreadFunction()]: PhidgetInterfaceKit 0/0/8(1017) (439227): ReadThread exiting normally (Phidget detached)
INFO [_phidget22usb][2017-07-28T09:35:24]:Deinitializing libusb
In my case only the
libphidget22java.so is located in
/usr/lib:
Code: Select all
kromer@rc-019:~/Downloads/DigitalOutput_Example/Standard$ ll /usr/lib/ | grep libphidget
-rw-r--r-- 1 root root 5204086 Jul 27 17:52 libphidget22java.a
-rwxr-xr-x 1 root root 1010 Jul 27 17:52 libphidget22java.la*
lrwxrwxrwx 1 root root 25 Jul 27 17:52 libphidget22java.so -> libphidget22java.so.0.0.0*
lrwxrwxrwx 1 root root 25 Jul 27 17:52 libphidget22java.so.0 -> libphidget22java.so.0.0.0*
-rwxr-xr-x 1 root root 2999134 Jul 27 17:52 libphidget22java.so.0.0.0*
libphidgete22.so.0.0 and
libphidget22extra.so.0.0 are located in
/usr/local/lib:
Code: Select all
kromer@rc-019:~/Downloads/DigitalOutput_Example/Standard$ ll /usr/local/lib/ | grep libphidget
-rw-r--r-- 1 root root 15366786 Jul 27 18:38 libphidget22.a
-rw-r--r-- 1 root root 278982 Jul 27 17:48 libphidget22extra.a
-rwxr-xr-x 1 root root 1052 Jul 27 17:48 libphidget22extra.la*
lrwxrwxrwx 1 root root 26 Jul 27 17:48 libphidget22extra.so -> libphidget22extra.so.0.0.0*
lrwxrwxrwx 1 root root 26 Jul 27 17:48 libphidget22extra.so.0 -> libphidget22extra.so.0.0.0*
-rwxr-xr-x 1 root root 155540 Jul 27 17:48 libphidget22extra.so.0.0.0*
-rwxr-xr-x 1 root root 1005 Jul 27 18:38 libphidget22.la*
lrwxrwxrwx 1 root root 21 Jul 27 18:38 libphidget22.so -> libphidget22.so.0.0.0*
lrwxrwxrwx 1 root root 21 Jul 27 18:38 libphidget22.so.0 -> libphidget22.so.0.0.0*
-rwxr-xr-x 1 root root 6193131 Jul 27 18:38 libphidget22.so.0.0.0*
Where the corresponding *.so files for phidget22networkserver and phidget22admin reside I do not know yet...