Skip to content

PIP conflicts ERROR: Error while checking for conflicts when installing packages with PIP #12157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
varunTirupathi opened this issue Jul 17, 2023 · 3 comments
Closed
1 task done
Labels
resolution: duplicate Duplicate of an existing issue/PR

Comments

@varunTirupathi
Copy link

Description

Hi, I'm facing the below-mentioned conflicts error when I'm trying to install the python packages using PIP module.

WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see #5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
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/hadoop/.local/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 575, in _determine_conflicts
return check_install_conflicts(to_install)
File "/home/hadoop/.local/lib/python3.7/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/hadoop/.local/lib/python3.7/site-packages/pip/_internal/operations/check.py", line 131, in _simulate_installation_of
dist = abstract_dist.get_metadata_distribution()
File "/home/hadoop/.local/lib/python3.7/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
WARNING: The script chardetect is installed in '/home/hadoop/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
ERROR: Exception:
Traceback (most recent call last):
File "/home/hadoop/.local/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
File "/home/hadoop/.local/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 248, in wrapper
return func(self, options, args)
File "/home/hadoop/.local/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 460, in run
pycompile=options.compile,
File "/home/hadoop/.local/lib/python3.7/site-packages/pip/_internal/req/init.py", line 79, in install_given_reqs
pycompile=pycompile,
File "/home/hadoop/.local/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 805, in install
assert self.local_file_path
AssertionError
Command exiting with ret '2'

Expected behavior

All the packages are mentioned in the requirements.txt file should get installed

pip version

pip-23.2-py3-none-any.whl

Python version

3.8

OS

Linux/UNIX

How to Reproduce

  1. run the requirments.txt file containing some package names
  2. run pip3 install --user -r /home/requirements.txt --use-deprecated=legacy-resolver'

Output

No response

Code of Conduct

@varunTirupathi varunTirupathi added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Jul 17, 2023
@varunTirupathi varunTirupathi changed the title Facing ERROR: Error while checking for conflicts when installing packages with PIP PIP conflicts ERROR: Error while checking for conflicts when installing packages with PIP Jul 17, 2023
@pfmoore
Copy link
Member

pfmoore commented Jul 17, 2023

run pip3 install --user -r /home/requirements.txt --use-deprecated=legacy-resolver'

Can this be reproduced using the standard resolver?

@varunTirupathi
Copy link
Author

I have removed --use-deprecated=legacy-resolver' and ran the PIP it worked

@pradyunsg
Copy link
Member

Consolidating info #12156

@pradyunsg pradyunsg added resolution: duplicate Duplicate of an existing issue/PR and removed type: bug A confirmed bug or unintended behavior S: needs triage Issues/PRs that need to be triaged labels Jul 17, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: duplicate Duplicate of an existing issue/PR
Projects
None yet
Development

No branches or pull requests

3 participants