Public bug reported:

$ sudo apt install python3-pip-whl=24.0+dfsg-1ubuntu1.3
 ⋮
Setting up python3-pip-whl (24.0+dfsg-1ubuntu1.3) ...
$ rm -rf .venv
$ python3 -m venv .venv --prompt="$(basename $(readlink -f .))"
$ source .venv/bin/activate
$ pip install -U pip
Requirement already satisfied: pip in ./.venv/lib/python3.12/site-packages 
(24.0)
Collecting pip
  Downloading pip-26.1.1-py3-none-any.whl.metadata (4.6 kB)
Downloading pip-26.1.1-py3-none-any.whl (1.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 8.3 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 24.0
    Uninstalling pip-24.0:
      Successfully uninstalled pip-24.0
Successfully installed pip-26.1.1
$ deactivate
$ sudo apt install python3-pip-whl
 ⋮
Setting up python3-pip-whl (24.0+dfsg-1ubuntu1.3+esm1) ...
$ rm -rf .venv
$ python3 -m venv .venv --prompt="$(basename $(readlink -f .))"
$ source .venv/bin/activate
$ pip install -U pip
Requirement already satisfied: pip in ./.venv/lib/python3.12/site-packages 
(24.0)
ERROR: Exception:
Traceback (most recent call last):
 ⋮
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 
40853 (char 40852)


If I manually inject a print(page.content) in .venv/lib/python3.12/site-
packages/pip/_internal/index/collector.py just before the crash, the
JSON being loaded is exactly 40_960 bytes (fresh from PyPI it's 146_458
bytes).


$ lsb_release -rd
No LSB modules are available.
Description:    Ubuntu 24.04.4 LTS
Release:        24.04


(Note that `ubuntu-bug python3-pip-whl` refuses to run because it thinks this 
is not an Ubuntu package, and `ubuntu-bug python-pip` refuses to run because it 
thinks the package is not installed.)

** Affects: python-pip (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2154599

Title:
  pip install -U pip does not run

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/2154599/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to