Bug#948409: python3-clang-9: Python3 files installed to /usr/lib/python2.7
Mike Gabriel
sunweaver at debian.org
Wed Jan 8 10:53:05 GMT 2020
Package: python3-clang-9
Severity: grave
Version: 1:9.0.1-4
Hi,
I just tried fixing various autopkgtests in cmake-extras. One test
involves python3-clang(-9) as currently found in Debian experimental.
Importing from python3-clang-9 fails with this message:
```
[...]
"demolib-include-check" start time: Jan 08 10:45 UTC
Output:
----------------------------------------------------------
Traceback (most recent call last):
File "/usr/share/cmake/IncludeChecker/include_checker.py", line 23,
in <module>
from clang.cindex import Index
ModuleNotFoundError: No module named 'clang'
```
This is very very likely caused by a very defect file tree in
python-clang-9 1:9.0.1-4:
```
[mike at minobo Temporary]$ dpkg -l python3-clang-9
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===============-============-============-=================================
ii python3-clang-9 1:9.0.1-4 amd64 Clang Python Bindings
```
```
[mike at minobo Temporary]$ dpkg -L python3-clang-9
/.
/usr
/usr/lib
/usr/lib/python2.7
^^^^^^^^^ OUCH!
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/clang
/usr/lib/python2.7/dist-packages/clang/__init__.py
/usr/lib/python2.7/dist-packages/clang/cindex.py
/usr/lib/python2.7/dist-packages/clang/enumerations.py
/usr/share
/usr/share/doc
/usr/share/doc/python3-clang-9
/usr/share/doc/python3-clang-9/NEWS.Debian.gz
/usr/share/doc/python3-clang-9/changelog.Debian.gz
/usr/share/doc/python3-clang-9/copyright
```
Greets,
Mike
--
mike gabriel aka sunweaver (Debian Developer)
mobile: +49 (1520) 1976 148
landline: +49 (4351) 486 14 27
GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22 0782 9AF4 6B30 2577 1B31
mail: sunweaver at debian.org, http://sunweavers.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: Digitale PGP-Signatur
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20200108/3f7c941c/attachment.sig>
More information about the Pkg-llvm-team
mailing list