Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDLL ('c_functions_lin.so') file not found error #61

Open
Charxil opened this issue Aug 14, 2022 · 0 comments
Open

CDLL ('c_functions_lin.so') file not found error #61

Charxil opened this issue Aug 14, 2022 · 0 comments

Comments

@Charxil
Copy link

Charxil commented Aug 14, 2022

Hello,
I am using linux aarch64 architecture. I create a virtual environment using miniconda3 in the linux. When I use CDLL(lib_path), I got the following error: The script is

from ctypes import c_double, c_int, CDLL
lib_path = "/home/su/project/P1/c_functions_lin.so"
a=CDLL(lib_path)

The error is

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/su/miniconda3/envs/myenv/lib/python3.7/ctypes/__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /home/su/project/P1/c_functions_lin.so: cannot open shared object file: No such file or directory

May I know how can I solve the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant