On Saturday 15th of July 2023 was released pip version 23.2 on pypi and it became the default.
When running ucc-gen, the new release of pip is automatically used and ucc-gen systematically fails to generate any package with:
Building wheels for collected packages: splunk-sdk
Building wheel for splunk-sdk (setup.py) ... done
Created wheel for splunk-sdk: filename=splunk_sdk-1.7.3-py3-none-any.whl size=125267 sha256=1968a464bc5315ec9a66e5a2aa84305d81207325a6e47c9f981623d23044098c
Stored in directory: /home/gmarchand/.cache/pip/wheels/85/7d/26/d4c4d6e96b70a9809ac667d226b9d2fe4cce761a9c435e03e3
Successfully built splunk-sdk
ERROR: Error while checking for conflicts. Please file an issue on pip's issue tracker: https://github.com/pypa/pip/issues/new
Traceback (most recent call last):
File "/home/gmarchand/.local/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 575, in _determine_conflicts
return check_install_conflicts(to_install)
File "/home/gmarchand/.local/lib/python3.10/site-packages/pip/_internal/operations/check.py", line 108, in check_install_conflicts
would_be_installed = _simulate_installation_of(to_install, package_set)
File "/home/gmarchand/.local/lib/python3.10/site-packages/pip/_internal/operations/check.py", line 131, in _simulate_installation_of
dist = abstract_dist.get_metadata_distribution()
File "/home/gmarchand/.local/lib/python3.10/site-packages/pip/_internal/distributions/wheel.py", line 23, in get_metadata_distribution
assert self.req.local_file_path, "Set as part of preparation during download"
AssertionError: Set as part of preparation during download
Installing collected packages: PySocks, charset-normalizer, idna, urllib3, certifi, requests, defusedxml, sortedcontainers, splunk-sdk, solnlib, splunktalib, splunktaucclib, pip
ERROR: Exception:
Traceback (most recent call last):
File "/home/gmarchand/.local/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
File "/home/gmarchand/.local/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 248, in wrapper
return func(self, options, args)
File "/home/gmarchand/.local/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 452, in run
installed = install_given_reqs(
File "/home/gmarchand/.local/lib/python3.10/site-packages/pip/_internal/req/__init__.py", line 72, in install_given_reqs
requirement.install(
File "/home/gmarchand/.local/lib/python3.10/site-packages/pip/_internal/req/req_install.py", line 805, in install
assert self.local_file_path
AssertionError
I have tried many various things, all unsuccessful for now, to prevent this pip version from being used by ucc-gen.
The same bevhiour can be observed on Mac & Linux, clearing pip cache, uninstall or other trick does help as ucc-gen systematically tries to acquire the latest version available on-line.
Super annoying and blocking issue, is there any way to force ucc-gen behaviour regarding the pip version it uses?(requirements.txt seems to be ignored in that case?)