Bug#846563: clang.cindex.LibclangError: libclang-4.0.so: No such file or directory.

Ph. Marek philipp.marek at linbit.com
Fri Dec 2 08:52:02 UTC 2016


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.



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-clang-4.0 depends on:
ii  python  2.7.11-2

python-clang-4.0 recommends no packages.

python-clang-4.0 suggests no packages.

-- no debconf information



More information about the Pkg-llvm-team mailing list