Bug#941890: python-clang-7: missing dependency on libclang-7-dev

Sylvestre Ledru sylvestre at debian.org
Mon Oct 7 08:49:32 BST 2019


Le 07/10/2019 à 09:34, Helmut Grohne a écrit :
> Package: python-clang-7
> Version: 1:7.0.1-8
> Severity: serious
> Justification: missing dependency
> 
> After installing python-clang-7, it is unusable as is:
> 
> | $ python
> | ...
> | >>> import clang.cindex
> | >>> clang.cindex.Index.create()
> | Traceback (most recent call last):
> |   File "<stdin>", line 1, in <module>
> |   File "/usr/lib/python2.7/dist-packages/clang/cindex.py", line 2672, in create
> |     return Index(conf.lib.clang_createIndex(excludeDecls, 0))
> |   File "/usr/lib/python2.7/dist-packages/clang/cindex.py", line 198, in __get__
> |     value = self.wrapped(instance)
> |   File "/usr/lib/python2.7/dist-packages/clang/cindex.py", line 4115, in lib
> |     lib = self.get_cindex_library()
> |   File "/usr/lib/python2.7/dist-packages/clang/cindex.py", line 4146, in get_cindex_library
> |     raise LibclangError(msg)
> | clang.cindex.LibclangError: libclang-7.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().
> | >>>
> 
> It fails to find libclang-7.so, which is shipped in libclang-7-dev.
> After installing that package, creating the index works.
Thanks.
I fixed it from -8 (as -7 will go away soon)

S



More information about the Pkg-llvm-team mailing list