python LoadLibrary error No such file or directory

71 Views Asked by At

my code:

import ctypes
import os

path = '/home/sprite/code/lib/linux/libhcnetsdk.so'

if os.path.exists(path):
    lib = ctypes.cdll.LoadLibrary(path)

Error:

OSError: /home/sprite/code/lib/linux/libhcnetsdk.so: cannot open shared object file: No such file or directory

how can i fix this?

0

There are 0 best solutions below