sighingnow / libclang

(Unofficial) Release libclang (clang.cindex) on pypi.
https://pypi.org/project/libclang
Other
81 stars 21 forks source link

clang.cindex.LibclangError: libclang-14.so: cannot open shared object file #63

Open Ashutosh-Londhe opened 9 months ago

Ashutosh-Londhe commented 9 months ago

Hi

I have installed a python package for clang and libclang version 14.0.6 and tried using it for one of the project i am working on

but i am getting following error clang.cindex.LibclangError: libclang-14.so: cannot open shared object file: No such file or directory. To provide a path to libclang use Config.set_library_path() or Config.set_library_file().

I am not getting this error when using LLVM library and setting LIBCLANG_PATH variable pointing to linclang.so.14 file

any other setup i have to do if i want to use python libclang package instead of llvm library??

sighingnow commented 3 months ago

Hi @Ashutosh-Londhe,

May I know more about the detail of your platform? (e.g., os version, python version).

Ashutosh-Londhe commented 3 months ago

Hi @sighingnow I was trying on Debian 4.19.208-1 with Python3.9

another strange thing is, if you first install and then --force-install, it will fix the above mentioned problem.