[ERROR]: Task failed: Module failed: stdout: Processing /tmp/ansible.4smzxd23.test/pip_module
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: ansible-test-pip-chdir
Building wheel for ansible-test-pip-chdir (setup.py): started
Building wheel for ansible-test-pip-chdir (setup.py): finished with status 'error'
Running setup.py clean for ansible-test-pip-chdir
Failed to build ansible-test-pip-chdir
Installing collected packages: ansible-test-pip-chdir
:stderr: ERROR: Command errored out with exit status 1:
command: /usr/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/ansible.4smzxd23.test/pip_module/setup.py'"'"'; __file__='"'"'/tmp/ansible.4smzxd23.test/pip_module/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-yfzrmvfg
cwd: /tmp/ansible.4smzxd23.test/pip_module/
Complete output (41 lines):
/usr/local/lib/python3.9/site-packages/wheel/bdist_wheel.py:4: FutureWarning: The 'wheel' package is no longer the canonical location of the 'bdist_wheel' command, and will be removed in a future release. Please update to setuptools v70.1 or later which contains an integrated version of this command.
warn(
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 21, in <module>
from setuptools.command.bdist_wheel import bdist_wheel
ModuleNotFoundError: No module named 'setuptools.command.bdist_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/wheel/_bdist_wheel.py", line 40, in <module>
__import__("setuptools.logging")
ModuleNotFoundError: No module named 'setuptools.logging'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/ansible.4smzxd23.test/pip_module/setup.py", line 7, in <module>
setup(
File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib64/python3.9/distutils/core.py", line 134, in setup
ok = dist.parse_command_line()
File "/usr/lib64/python3.9/distutils/dist.py", line 483, in parse_command_line
args = self._parse_command_opts(parser, args)
File "/usr/lib/python3.9/site-packages/setuptools/dist.py", line 951, in _parse_command_opts
nargs = _Distribution._parse_command_opts(self, parser, args)
File "/usr/lib64/python3.9/distutils/dist.py", line 539, in _parse_command_opts
cmd_class = self.get_command_class(command)
File "/usr/lib/python3.9/site-packages/setuptools/dist.py", line 790, in get_command_class
;31m self.cmdclass[command] = cmdclass = ep.load()
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2450, in load
return self.resolve()
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2456, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 26, in <module>
from ._bdist_wheel import bdist_wheel as bdist_wheel
File "/usr/local/lib/python3.9/site-packages/wheel/_bdist_wheel.py", line 43, in <module>
from . import _setuptools_logging
ImportError: cannot import name '_setuptools_logging' from 'wheel' (/usr/local/lib/python3.9/site-packages/wheel/__init__.py)
----------------------------------------
ERROR: Failed building wheel for ansible-test-pip-chdir
ERROR: Exception:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/pip/_internal/req/req_install.py", line 827, in install
success = install_legacy(
File "/usr/lib/python3.9/site-packages/pip/_internal/operations/install/legacy.py", line 114, in install
raise LegacyInstallFailure from e
pip._internal.operations.install.legacy.LegacyInstallFailure
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 164, in exc_logging_wrapper
status = run_func(*args)
File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
return func(self, options, args)
File "/usr/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 404, in run
installed = install_given_reqs(
File "/usr/lib/python3.9/site-packages/pip/_internal/req/__init__.py", line 73, in install_given_reqs
requirement.install(
File "/usr/lib/python3.9/site-packages/pip/_internal/req/req_install.py", line 845, in install
raise exc.__cause__
File "/usr/lib/python3.9/site-packages/pip/_internal/operations/install/legacy.py", line 84, in install
install_args = make_setuptools_install_args(
File "/usr/lib/python3.9/site-packages/pip/_internal/utils/setuptools_build.py", line 137, in make_setuptools_install_args
assert not (use_user_site and root)
AssertionError
I'm yet to figure out specifics of the repro. I'll add more context as I learn it.
Here's the trace:
(https://dev.azure.com/ansible/ansible/_build/results?buildId=169396&view=logs&j=8485562d-17b5-57e5-5147-a1d610660c89&t=378224a2-8b31-5b15-d1c1-b20ee426fb5b&l=15912)
Is this #662 again?
I'm yet to figure out specifics of the repro. I'll add more context as I learn it.