pypa/pip

ERROR: Fatal Internal error [id=1]

oldgithubman opened this issue · 4 comments

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

Could you share the output of pip config debug?

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

same issue with me

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