Quantcast
Viewing all articles
Browse latest Browse all 5995

importing .so file in python

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:

  1. There is indeed a file named libIpxCameraApiPy.so in /usr/local/lib/
  2. If I do cat /etc/ld.so.conf.d/libc.conf I get

# libc default configuration

/usr/local/lib

  1. I have also tried export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH and ldconfig.

  2. 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.


Viewing all articles
Browse latest Browse all 5995

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>