https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-python/setuptools-60.9.2 fails tests. Discovered on: amd64 (internal ref: tinderbox_musl) NOTE: This machine uses MUSL libc
Created attachment 766716 [details] build.log build log and emerge --info
Error(s) that match a know pattern: E subprocess.CalledProcessError: Command '['/var/tmp/portage/dev-python/setuptools-60.9.2/work/setuptools-60.9.2-python3_8/install/usr/bin/python3.8', '-m', 'build', '--wheel', '--outdir', '/var/tmp/portage/dev-python/setuptools-60.9.2/temp/pytest-of-portage/pytest-0/wheel_build', '/var/tmp/portage/dev-python/setuptools-60.9.2/work/setuptools-60.9.2']' returned non-zero exit status 1. ModuleNotFoundError: No module named 'jaraco' SKIPPED [1] setuptools/tests/test_msvc.py:17: could not import 'distutils.msvc9compiler': No module named 'winreg'
I reproduced this on glibc amd64. But I don't know why it complains no module named 'jaraco' though I have dev-python/jaraco* installed # qlist -Iv jaraco dev-python/jaraco-context-4.1.1-r2 dev-python/jaraco-envs-2.3.0 dev-python/jaraco-functools-3.5.0-r2 dev-python/jaraco-path-3.3.1 dev-python/jaraco-text-3.7.0-r2 3 tests failed: ERROR setuptools/tests/test_virtualenv.py::test_pip_upgrade_from_source[pip<20.1] ERROR setuptools/tests/test_virtualenv.py::test_pip_upgrade_from_source[pip<21] ERROR setuptools/tests/test_virtualenv.py::test_pip_upgrade_from_source[pip<22] The actual error should be this: Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/pep517/wrappers.py", line 332, in _call_hook raise BackendUnavailable(data.get('traceback', '')) pep517.wrappers.BackendUnavailable: Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/pep517/in_process/_in_process.py", line 89, in _build_backend obj = import_module(mod_path) File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/var/tmp/portage/dev-python/setuptools-60.10.0/work/setuptools-60.10.0/setuptools/__init__.py", line 16, in < module> import setuptools.version File "/var/tmp/portage/dev-python/setuptools-60.10.0/work/setuptools-60.10.0/setuptools/version.py", line 1, in <mo dule> import pkg_resources File "/var/tmp/portage/dev-python/setuptools-60.10.0/work/setuptools-60.10.0/pkg_resources/__init__.py", line 74, i n <module> from jaraco.text import ( ModuleNotFoundError: No module named 'jaraco'
Yeah, * in dev-python is broken for mee tooo!! Apparent root cause is setuptools, Because * in dev-python is down lots of other stuff is down, including Chromium which essentially bricks the system. =| have no idea what a qlist is, copied from other comment: tortoise /var/tmp/portage # qlist -Iv jaraco dev-python/jaraco-context-4.3.0 dev-python/jaraco-functools-3.8.0 dev-python/jaraco-text-3.11.1 tortoise /var/tmp/portage # tortoise /var/tmp/portage # cat dev-python/setuptools-68.0.0/temp/build.log * Package: dev-python/setuptools-68.0.0:0 * Repository: gentoo * Maintainer: python@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_pypy3 python_targets_python3_10 python_targets_python3_11 * FEATURES: network-sandbox nostrip sandbox splitdebug userpriv usersandbox >>> Unpacking source... >>> Unpacking setuptools-68.0.0.tar.gz to /var/tmp/portage/dev-python/setuptools-68.0.0/work >>> Source unpacked in /var/tmp/portage/dev-python/setuptools-68.0.0/work >>> Preparing source in /var/tmp/portage/dev-python/setuptools-68.0.0/work/setuptools-68.0.0 ... * Applying setuptools-62.4.0-py-compile.patch ... [ ok ] * Build system packages: * dev-python/gpep517 : 13 * dev-python/installer : 0.7.0 >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/setuptools-68.0.0/work/setuptools-68.0.0 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/setuptools-68.0.0/work/setuptools-68.0.0 ... * pypy3: running distutils-r1_run_phase distutils-r1_python_compile * Building the wheel for setuptools-68.0.0 via setuptools.build_meta gpep517 build-wheel --backend setuptools.build_meta --output-fd 3 --wheel-dir /var/tmp/portage/dev-python/setuptools-68.0.0/work/setuptools-68.0.0-pypy3/wheel Traceback (most recent call last): File "/usr/lib/python-exec/pypy3/gpep517", line 4, in <module> sys.exit(main()) ^^^^^^ File "/usr/lib/pypy3.10/site-packages/gpep517/__main__.py", line 406, in main return func(args) ^^^^^^^^^^ File "/usr/lib/pypy3.10/site-packages/gpep517/__main__.py", line 202, in build_wheel print(build_wheel_impl(args, args.wheel_dir), file=out) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/pypy3.10/site-packages/gpep517/__main__.py", line 185, in build_wheel_impl backend = importlib.import_module(package) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/pypy3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 688, in _load_unlocked File "<builtin>/frozen importlib._bootstrap_external", line 897, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/var/tmp/portage/dev-python/setuptools-68.0.0/work/setuptools-68.0.0/./setuptools/__init__.py", line 17, in <module> from setuptools.dist import Distribution File "/var/tmp/portage/dev-python/setuptools-68.0.0/work/setuptools-68.0.0/./setuptools/dist.py", line 41, in <module> from . import _reqs File "/var/tmp/portage/dev-python/setuptools-68.0.0/work/setuptools-68.0.0/./setuptools/_reqs.py", line 3, in <module> import jaraco.text as text ModuleNotFoundError: No module named 'jaraco.text' * ERROR: dev-python/setuptools-68.0.0::gentoo failed (compile phase): * Wheel build failed * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 3468: Called distutils-r1_src_compile * environment, line 1613: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile' * environment, line 718: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 3162: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 2675: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 2673: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 1104: Called distutils-r1_run_phase 'distutils-r1_python_compile' * environment, line 1595: Called distutils-r1_python_compile * environment, line 1417: Called distutils_pep517_install '/var/tmp/portage/dev-python/setuptools-68.0.0/work/setuptools-68.0.0-pypy3/install' * environment, line 1946: Called die * The specific snippet of code: * local wheel=$("${cmd[@]}" 3>&1 1>&2 || die "Wheel build failed"); * * If you need support, post the output of `emerge --info '=dev-python/setuptools-68.0.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/setuptools-68.0.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-python/setuptools-68.0.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/setuptools-68.0.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/setuptools-68.0.0/work/setuptools-68.0.0' * S: '/var/tmp/portage/dev-python/setuptools-68.0.0/work/setuptools-68.0.0' tortoise /var/tmp/portage #
Alan, I don't think that's the same problem. Were you upgrading from pypy3.9 to pypy3.10 by any chance? My educated guess would be that you installed pypy3.10 but didn't rebuild the packages providing jaraco.*.
(In reply to Michał Górny from comment #5) > Alan, I don't think that's the same problem. Were you upgrading from > pypy3.9 to pypy3.10 by any chance? My educated guess would be that you > installed pypy3.10 but didn't rebuild the packages providing jaraco.*. I don't fully understand python, I have several versions installed as several seem to be required. I consider 3.12 to be unstable so I don't have that installed but do have several previous versions... Due to recent issues on my system starting to abate, I decided to emptytree world the thing to bulldoze away any inconsistiencies and ad-hoc fixes I had to implement. doing a test now: emerge --emptytree app-arch/brotli result 1: lz4 failed cmake: error while loading shared libraries: libbrotlidec.so.1: cannot open shared object file: No such file or directory Comment: HAHAHAHAHAHAHHAHAHAHAHHAHAAH result 2: dev-libs/double-conversion-3.2.1 failed, Same error; same comment.... result 3: app-crypt/gcr-3.41.1-r2 Failed because cmake didn't run, tortoise /var/tmp/portage # cmake --version cmake: error while loading shared libraries: libbrotlidec.so.1: cannot open shared object file: No such file or directory tortoise /var/tmp/portage # Comment: this is reaching Joker levels of humor... result 4: dev-libs/nss-pem-1.1.0 failed. same problem as 1 and 2, same comment... result 5: dev-libs/plasma-wayland-protocols-1.10.0 , What the hell is a brotlie anyway and why does everyone use it? I only tried to re-install it to fix my system... result 6: dev-perl/IO-Socket-SSL-2.83.0 * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/dev-perl/IO-Socket-SSL-2.83.0/image API-different OpenSSL versions compiled in (0x30000090) vs linked (0x30100010) at Makefile.PL line 68. Comment: NOOOOOOOOOOOOOOOOO!!!!!!!!!!!! result 7: dev-python/hatchling-1.18.0 ModuleNotFoundError: No module named 'pluggy' result 8: dev-python/setuptools-68.0.0 exactly same as reported previously... <<<<<<<<<<<<<<<<< ####### RESULT 9: app-arch/brotli-1.0.9-r5 cmake: error while loading shared libraries: libbrotlidec.so.1: cannot open shared object file: No such file or directory Comment: mother of God.... How the hell am I supposed to fix this???? ####### There were 246 other packages AFTER the one I had requested, will try to get as many of them updated as possible but this is a very cereal problem here. =\
You have *several* issues (like I mentioned before) and this bug isn't the right place. You appear to have lost Brotli but I have no idea what you did (did you unmerge it)? Also, please share the output of `lddtree /usr/bin/cmake`. Your Perl issue is a real bug which I've reported at https://github.com/noxxi/p5-io-socket-ssl/issues/137.