Package: python3-setuptools Version: 52.0.0-4 Severity: normal X-Debbugs-Cc: cqu...@arcor.de
Dear Maintainer, I am trying to install a python package (cerberus) using pip. However it fails with a PEP 517 error. In a clean Debian Bullseye container I did the following: # apt install python3-build python3-venv python3-pip # python3 -m venv --system-site-packages my_virtenv # . ./my_virtenv/bin/activate # pip install cerberus File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 103, in __getattr__ raise AttributeError(attr) .................... AttributeError: install_layout ---------------------------------------- ERROR: Failed building wheel for cerberus Failed to build cerberus ERROR: Could not build wheels for cerberus which use PEP 517 and cannot be installed directly It is worth noting that without the virtual environment the installation works. So maybe the bug is not in setuptools (which is where the trace comes from) but in python3-venv. -- System Information: Debian Release: 11.4 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable'), (100, 'bullseye-fasttrack'), (100, 'bullseye-backports-staging') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-16-amd64 (SMP w/4 CPU threads) Kernel taint flags: TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages python3-setuptools depends on: ii python3 3.9.2-3 ii python3-distutils 3.9.2-1 ii python3-pkg-resources 52.0.0-4 python3-setuptools recommends no packages. Versions of packages python3-setuptools suggests: pn python-setuptools-doc <none>