Skip to content
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

pip freeze crashes when PATH is incorrect #12567

Closed
1 task done
zsimic opened this issue Mar 11, 2024 · 1 comment · Fixed by #12627
Closed
1 task done

pip freeze crashes when PATH is incorrect #12567

zsimic opened this issue Mar 11, 2024 · 1 comment · Fixed by #12627
Labels
C: freeze 'pip freeze' related kind: crash For situations where pip crashes type: bug A confirmed bug or unintended behavior

Comments

@zsimic
Copy link

zsimic commented Mar 11, 2024

Description

pip freeze crashes if PATH environment variable references an existing file.

Expected behavior

pip freeze should work, even if PATH has an incorrect reference to a file.

pip version

24.0

Python version

3.11.8

OS

macos

How to Reproduce

Run:

PATH=$PATH:/bin/ls .venv/bin/pip freeze

Output

... stack trace
  File ".../subprocess.py", line 1863, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
NotADirectoryError: [Errno 20] Not a directory: 'hg'

Code of Conduct

@zsimic zsimic added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Mar 11, 2024
@uranusjr
Copy link
Member

Needs a lot more information in that stack trace you omitted.

@ichard26 ichard26 added C: freeze 'pip freeze' related kind: crash For situations where pip crashes and removed S: needs triage Issues/PRs that need to be triaged labels Apr 19, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: freeze 'pip freeze' related kind: crash For situations where pip crashes type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants