Le 02/12/2016 à 09:52, Ph. Marek a écrit :
Package: python-clang-4.0
Version: 1:4.0~svn286225-1
Severity: normal

Trying the "Simple example" from
http://eli.thegreenplace.net/2011/07/03/parsing-c-in-python-with-clang,
I get the error message

       File "/usr/lib/python2.7/dist-packages/clang/cindex.py", line 2461, in 
create
         return Index(conf.lib.clang_createIndex(excludeDecls, 0))
       File "/usr/lib/python2.7/dist-packages/clang/cindex.py", line 169, in 
__get__
         value = self.wrapped(instance)
       File "/usr/lib/python2.7/dist-packages/clang/cindex.py", line 3876, in 
lib
         lib = self.get_cindex_library()
       File "/usr/lib/python2.7/dist-packages/clang/cindex.py", line 3907, in 
get_cindex_library
         raise LibclangError(msg)
     clang.cindex.LibclangError: libclang-4.0.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 guess that the python library could use a bit of fine-tuning here.

     $ LC_ALL=C apt-get install libclang1-4.0
     Reading package lists... Done
     Building dependency tree
     Reading state information... Done
     libclang1-4.0 is already the newest version (1:4.0~svn286225-1).
     0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.

liblclang-4.0so is provided by libclang-4.0-dev
you should install this package.
(I should probably mark it as a dependency of python-clang-X.Y)

S

Reply via email to