pypa / pip

The Python package installer
https://pip.pypa.io/
MIT License
9.52k stars 3.03k forks source link

ERROR: Fatal Internal error [id=1] #12706

Open oldgithubman opened 5 months ago

oldgithubman commented 5 months ago

Description

$ pip config unset global.no-cache-dir
ERROR: Fatal Internal error [id=1]. Please report as a bug.

Expected behavior

Fix ERROR: pip cache commands can not function since cache is disabled.

pip version

24.0

Python version

3.10

OS

Linux Mint 21.3 Cinnamon

How to Reproduce

$ pip config unset global.no-cache-dir

Output

$ pip config unset global.no-cache-dir
ERROR: Fatal Internal error [id=1]. Please report as a bug.

Code of Conduct

ichard26 commented 5 months ago

Could you share the output of pip config debug?

oldgithubman commented 5 months ago

Could you share the output of pip config debug?

env_var:
env:
global:
  /etc/xdg/pip/pip.conf, exists: False
  /etc/pip.conf, exists: True
    global.no-cache-dir: false
site:
  /usr/pip.conf, exists: False
user:
  /home/j/.pip/pip.conf, exists: True
    global.no-cache-dir: false
    global.index-url: https://pypi.org/simple
    global.extra-index-url: 
    https://pypi.ngc.nvidia.com
    global.trusted-host: 
    pypi.ngc.nvidia.com
    global.download-cache: ~/.cache/pip
  /home/j/.config/pip/pip.conf, exists: True
    global.no-cache-dir: false
    global.index-url: https://pypi.org/simple
    global.extra-index-url: 
    https://pypi.ngc.nvidia.com
    global.trusted-host: 
    pypi.ngc.nvidia.com
    global.download-cache: ~/.cache/pip
lanyeeee commented 5 months ago

same issue with me

lanyeeee commented 5 months ago

pip config list

global.extra-index-url='\nhttps://pypi.ngc.nvidia.com'
global.index-url='https://pypi.org/simple'
global.no-cache-dir='true'
global.trusted-host='\npypi.ngc.nvidia.com'

pip config unset global.no-cache-dir

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

pip config debug

env_var:
env:
global:
  C:\ProgramData\pip\pip.ini, exists: True
    global.no-cache-dir: true
    global.index-url: https://pypi.org/simple
    global.extra-index-url:
    https://pypi.ngc.nvidia.com
    global.trusted-host:
    pypi.ngc.nvidia.com
site:
  D:\ProgramData\anaconda3\pip.ini, exists: False
user:
  C:\Users\xxx\pip\pip.ini, exists: True
    global.no-cache-dir: true
    global.index-url: https://pypi.org/simple
    global.extra-index-url:
    https://pypi.ngc.nvidia.com
    global.trusted-host:
    pypi.ngc.nvidia.com
  C:\Users\xxx\AppData\Roaming\pip\pip.ini, exists: True
    global.no-cache-dir: true
    global.index-url: https://pypi.org/simple
    global.extra-index-url:
    https://pypi.ngc.nvidia.com
    global.trusted-host:
    pypi.ngc.nvidia.com