cannot open shared object file

Supporting 2.6 and up
Posts: 8
Joined: Fri Aug 11, 2017 10:46 am

Re: cannot open shared object file

Postby headcrash » Tue Aug 15, 2017 8:24 am

Regarding " cannot open shared object file" error:

I'm running 64 bit Ubuntu 16.04.3 on a 64 bit machine. I installed libphidget22, libphidget22extra, libphidget22java, phidget22networkserver and phidget22admin manually as per instructions. All installed ok and ran c examples ok.

But I got this when trying to run Python example:

Traceback (most recent call last):
File "", line 41, in <module>
try: manager = Manager()
File "/usr/local/lib/python2.7/dist-packages/Phidget22/Devices/", line 28, in __init__
__func = PhidgetSupport.getDll().PhidgetManager_create
File "/usr/local/lib/python2.7/dist-packages/Phidget22/", line 17, in getDll
PhidgetSupport.__dll = cdll.LoadLibrary("")
File "/usr/lib/python2.7/ctypes/", line 440, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python2.7/ctypes/", line 362, in __init__
self._handle = _dlopen(self._name, mode)
OSError: cannot open shared object file: No such file or directory
Exception OSError: OSError(' cannot open shared object file: No such file or directory',) in <bound method Manager.__del__ of <Phidget22.Devices.Manager.Manager instance at 0x7f6b1f411f80>> ignored

I checked and and were located in /usr/local/lib, but Python is looking in /usr/lib.

I took Patrick's first suggestion "./configure --prefix=/usr && make && sudo make install" and Python now works ok.

Thanks Patrick!

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 2 guests