this has been asked a million times but, after having tried all I found, I am still getting an ImportError. So, I am doing this:
import syssys.path.append("/usr/local/lib")import libIpxCameraApiPy # I've tried libIpxCameraApiPy.so as well
And I get:
ImportError: /usr/local/lib/libIpxCameraApiPy.so: cannot open shared object file: No such file or directory
I should mention that:
- There is indeed a file named libIpxCameraApiPy.so in /usr/local/lib/
- If I do
cat /etc/ld.so.conf.d/libc.conf
I get
# libc default configuration
/usr/local/lib
I have also tried
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
andldconfig
.I have actually been able to make this work on different pc before, just by pasting this file into "/usr/local/lib" as I did this time, and nothing else was needed.
Any help to get this import working will be appreciated.