Quantcast
Channel: [EN] OpenPLi Third-Party Development
Viewing all articles
Browse latest Browse all 1690

using .so file with python: error,cannot open shared object file

$
0
0

I am not familiar with c language,i use software called nuitka https://github.com/kayhayen/Nuitka to convert python module to c file with extension .so

i succeeded to import function from .so file in by using Ubuntu python but when tried to import the the same function from .so file in my et7500 box with python 2.7 gave me this error

root@et7x00:~# python /tmp/testobject.py
Traceback (most recent call last):
  File "/tmp/testobject.py", line 1, in <module>
    from printtext import print_text
ImportError: /var/volatile/tmp/printtext.so: cannot open shared object file: No
such file or directory
root@et7x00:~#

i put the .so and the test module in tmp path

attached the .so file and the python module to test the .so file

Attached Files


Viewing all articles
Browse latest Browse all 1690

Trending Articles



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