Bug#941890: python-clang-7: missing dependency on libclang-7-dev
Helmut Grohne
helmut.grohne at intenta.de
Mon Oct 7 08:34:30 BST 2019
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.
Helmut
More information about the Pkg-llvm-team
mailing list