Created attachment 603328 [details] emerge --info `dev-python/setuptools-44.0.0` fails to be installed when `dev-python` is missing (see traceback below). Installing `pbr` manually beforehands fixes the problem, so it should probably be a dependency for `setuptools`. ```# emerge -av setuptools dev-python/setuptools-44.0.0::gentoo [41.0.1::gentoo] USE="-test" PYTHON_TARGETS="python2_7 python3_6 python3_7 python3_8%* -pypy3 (-pypy%) (-python3_5%)" 0 KiB ``` ... ``` >>> Install dev-python/setuptools-44.0.0 into /var/tmp/portage/dev-python/setuptools-44.0.0/image * python2_7: running distutils-r1_run_phase python_install python2.7 setup.py install --root=/var/tmp/portage/dev-python/setuptools-44.0.0/image/_python2.7 running install running build running build_py running install_lib ... running install_egg_info running egg_info writing requirements to setuptools.egg-info/requires.txt writing setuptools.egg-info/PKG-INFO writing top-level names to setuptools.egg-info/top_level.txt writing dependency_links to setuptools.egg-info/dependency_links.txt writing entry points to setuptools.egg-info/entry_points.txt Traceback (most recent call last): File "setup.py", line 155, in <module> dist = setuptools.setup(**setup_params) File "/var/tmp/portage/dev-python/setuptools-44.0.0/work/setuptools-44.0.0-python2_7/setuptools/__init__.py", line 145, in setup return distutils.core.setup(**attrs) File "/usr/lib64/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/var/tmp/portage/dev-python/setuptools-44.0.0/work/setuptools-44.0.0-python2_7/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/usr/lib64/python2.7/distutils/command/install.py", line 575, in run self.run_command(cmd_name) File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/var/tmp/portage/dev-python/setuptools-44.0.0/work/setuptools-44.0.0-python2_7/setuptools/command/install_egg_info.py", line 34, in run self.run_command('egg_info') File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/var/tmp/portage/dev-python/setuptools-44.0.0/work/setuptools-44.0.0-python2_7/setuptools/command/egg_info.py", line 288, in run writer = ep.resolve() File "/var/tmp/portage/dev-python/setuptools-44.0.0/work/setuptools-44.0.0-python2_7/pkg_resources/__init__.py", line 2449, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ImportError: No module named pbr.pbr_json * ERROR: dev-python/setuptools-44.0.0::gentoo failed (install phase): * (no error message) * * Call stack: * ebuild.sh, line 125: Called src_install * environment, line 2895: Called distutils-r1_src_install * environment, line 1013: Called _distutils-r1_run_foreach_impl 'python_install' * environment, line 434: Called python_foreach_impl 'distutils-r1_run_phase' 'python_install' * environment, line 2434: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_install' * environment, line 1819: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_install' * environment, line 1817: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_install' * environment, line 699: Called distutils-r1_run_phase 'python_install' * environment, line 983: Called python_install * environment, line 2589: Called distutils-r1_python_install * environment, line 895: Called esetup.py 'install' '--root=/var/tmp/portage/dev-python/setuptools-44.0.0/image/_python2.7' * environment, line 1363: Called die * The specific snippet of code: * "${@}" || die "${die_args[@]}"; * * If you need support, post the output of `emerge --info '=dev-python/setuptools-44.0.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/setuptools-44.0.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-python/setuptools-44.0.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/setuptools-44.0.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/setuptools-44.0.0/work/setuptools-44.0.0-python2_7' * S: '/var/tmp/portage/dev-python/setuptools-44.0.0/work/setuptools-44.0.0' >>> Failed to emerge dev-python/setuptools-44.0.0, Log file: >>> '/var/tmp/portage/dev-python/setuptools-44.0.0/temp/build.log' * Messages for package dev-python/setuptools-44.0.0: * ERROR: dev-python/setuptools-44.0.0::gentoo failed (install phase): * (no error message) * * Call stack: * ebuild.sh, line 125: Called src_install * environment, line 2895: Called distutils-r1_src_install * environment, line 1013: Called _distutils-r1_run_foreach_impl 'python_install' * environment, line 434: Called python_foreach_impl 'distutils-r1_run_phase' 'python_install' * environment, line 2434: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_install' * environment, line 1819: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_install' * environment, line 1817: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_install' * environment, line 699: Called distutils-r1_run_phase 'python_install' * environment, line 983: Called python_install * environment, line 2589: Called distutils-r1_python_install * environment, line 895: Called esetup.py 'install' '--root=/var/tmp/portage/dev-python/setuptools-44.0.0/image/_python2.7' * environment, line 1363: Called die * The specific snippet of code: * "${@}" || die "${die_args[@]}"; * * If you need support, post the output of `emerge --info '=dev-python/setuptools-44.0.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/setuptools-44.0.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-python/setuptools-44.0.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/setuptools-44.0.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/setuptools-44.0.0/work/setuptools-44.0.0-python2_7' * S: '/var/tmp/portage/dev-python/setuptools-44.0.0/work/setuptools-44.0.0' ```
Nope, that's not setuptools. You probably have something installed that injects some magic (plugin?) that makes it try to use pbr for something. I'm afraid I can't help you much -- try grepping site-packages for pbr_json to locate the culprit.
Right. So I grepped `site-packages`, and there was leftover `pbr-1.8.1.dist-info/` directory even though `pbr` was not installed. So removing this directory fixed the issue (for whatever reason). As such, this can be closed. Thanks for help.