[xml/sgml-pkgs] Bug#991146: python3-libxml2: ambiguous package name 'python3-libxml2' with more than one installed instance

Thorsten Glaser tg at debian.org
Thu Jul 15 17:36:10 BST 2021


reassign 991146 dh-python
thanks

Thorsten Glaser dixit:

>Setting up python3-libxml2:amd64 (2.9.10+dfsg-6.7) ...
>dpkg-query: error: --listfiles needs a valid package name but 'python3-libxml2' is not: ambiguous package name 'python3-libxml2' with more than one installed instance
>
>Use --help for help about querying packages.
>Traceback (most recent call last):
>  File "/usr/bin/py3compile", line 319, in <module>
>    main()
>  File "/usr/bin/py3compile", line 298, in main
>    compile(files, versions,
>  File "/usr/bin/py3compile", line 183, in compile
>    for fn, versions_to_compile in filter_files(files, e_patterns, versions):
>  File "/usr/bin/py3compile", line 128, in filter_files
>    for fpath in files:
>  File "/usr/share/python3/debpython/files.py", line 71, in filter_public
>    for fn in files:
>  File "/usr/share/python3/debpython/files.py", line 53, in from_package
>    raise Exception("cannot get content of %s" % package_name)
>Exception: cannot get content of python3-libxml2
>dpkg: error processing package python3-libxml2:amd64 (--configure):
> installed python3-libxml2:amd64 package post-installation script subprocess returned error exit status 1

This affects python3-pil, python3-cairo, … as well. Going from…

-----BEGIN cutting here may damage your screen surface-----
root at tglase:~ # cat /var/lib/dpkg/info/python3-cairo\:amd64.postinst
#!/bin/sh
set -e

# Automatically added by dh_python3
if which py3compile >/dev/null 2>&1; then
        py3compile -p python3-cairo
fi
if which pypy3compile >/dev/null 2>&1; then
        pypy3compile -p python3-cairo  || true
fi

# End automatically added section
-----END cutting here may damage your screen surface-----

… this is a bug in dh_python3 because changing to…

        py3compile -p python3-cairo:amd64

… makes this succeed.

bye,
//mirabilos
-- 
Gestern Nacht ist mein IRC-Netzwerk explodiert. Ich hatte nicht damit
gerechnet, darum bin ich blutverschmiert… wer konnte ahnen, daß SIE so
reagier’n… gestern Nacht ist mein IRC-Netzwerk explodiert~~~
	(as of 2021-06-15 The MirOS Project temporarily reconvenes on OFTC)



More information about the debian-xml-sgml-pkgs mailing list