Skip to content

pip config set causes error when PIP_CONFIG_FILE="/dev/null" #11880

Open
@Toldry

Description

@Toldry

Description

Run:

export PIP_CONFIG_FILE="/dev/null"
pip config set global.foo bar

Causes error:

ERROR: Fatal Internal error [id=2]. Please report as a bug.

Expected behavior

Should give a more meaningful error message such as "Cannot set configuration variables when PIP_CONFIG_FILE="/dev/null".

pip version

23.0.1

Python version

3.9.2

OS

MacOS

How to Reproduce

export PIP_CONFIG_FILE="/dev/null"
pip config set global.foo bar

Output

ERROR: Fatal Internal error [id=2]. Please report as a bug.

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions