-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
kind: crashFor situations where pip crashesFor situations where pip crashestype: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior
Description
Description
Running pip or any subcommand errors with a strange NotImplementedError
Expected behavior
No response
pip version
24.3.1
Python version
3.14.0a2+
OS
Ubuntu 22.04
How to Reproduce
sudo add-apt-repository ppa:deadsnakes/nightly
- Install
python3.14-nogil
andpython3.14-venv
python3.14t -m venv --upgrade --upgrade-deps --system-site-packages venv
Output
@clin1234 ➜ /workspaces $ sudo add-apt-repository ppa:deadsnakes/nightly
Repository: 'deb https://ppa.launchpadcontent.net/deadsnakes/nightly/ubuntu/ jammy main'
Description:
https://github.com/deadsnakes/nightly
for released packages, use the main ppa: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa
## available packages
packages are only built for the amd64 architecture for the following:
- python3.12 (focal, jammy)
- python3.13 (focal, jammy, noble)
- python3.14 (jammy, noble)
More info: https://launchpad.net/~deadsnakes/+archive/ubuntu/nightly
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Found existing deb entry in /etc/apt/sources.list.d/deadsnakes-ubuntu-nightly-jammy.list
Adding deb entry to /etc/apt/sources.list.d/deadsnakes-ubuntu-nightly-jammy.list
Found existing deb-src entry in /etc/apt/sources.list.d/deadsnakes-ubuntu-nightly-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/deadsnakes-ubuntu-nightly-jammy.list
Adding key to /etc/apt/trusted.gpg.d/deadsnakes-ubuntu-nightly.gpg with fingerprint F23C5A6CF475977595C89F51BA6932366A755776
Hit:1 https://packages.microsoft.com/repos/microsoft-ubuntu-focal-prod focal InRelease
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
Hit:4 https://dl.yarnpkg.com/debian stable InRelease
Hit:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:6 https://repo.anaconda.com/pkgs/misc/debrepo/conda stable InRelease
Get:7 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
Hit:9 https://ppa.launchpadcontent.net/deadsnakes/nightly/ubuntu jammy InRelease
Hit:10 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease
Hit:8 https://packagecloud.io/github/git-lfs/ubuntu focal InRelease
Fetched 257 kB in 1s (273 kB/s)
Reading package lists... Done
@clin1234 ➜ /workspaces $ sudo apt reinstall python3.14-{nogil,venv}
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 1 not upgraded.
Need to get 4070 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://ppa.launchpadcontent.net/deadsnakes/nightly/ubuntu jammy/main amd64 python3.14-nogil amd64 3.14.0~a2-153-g8c3fd1f245-1+jammy1 [2293 kB]
Get:2 https://ppa.launchpadcontent.net/deadsnakes/nightly/ubuntu jammy/main amd64 python3.14-venv amd64 3.14.0~a2-153-g8c3fd1f245-1+jammy1 [1776 kB]
Fetched 4070 kB in 6s (638 kB/s)
(Reading database ... 78933 files and directories currently installed.)
Preparing to unpack .../python3.14-nogil_3.14.0~a2-153-g8c3fd1f245-1+jammy1_amd64.deb ...
Unpacking python3.14-nogil (3.14.0~a2-153-g8c3fd1f245-1+jammy1) over (3.14.0~a2-153-g8c3fd1f245-1+jammy1) ...
Preparing to unpack .../python3.14-venv_3.14.0~a2-153-g8c3fd1f245-1+jammy1_amd64.deb ...
Unpacking python3.14-venv (3.14.0~a2-153-g8c3fd1f245-1+jammy1) over (3.14.0~a2-153-g8c3fd1f245-1+jammy1) ...
Setting up python3.14-venv (3.14.0~a2-153-g8c3fd1f245-1+jammy1) ...
Setting up python3.14-nogil (3.14.0~a2-153-g8c3fd1f245-1+jammy1) ...
Processing triggers for man-db (2.10.2-1) ...
@clin1234 ➜ /workspaces $ python3.14t -m venv --upgrade --upgrade-deps --system-site-packages venv
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/workspaces/venv/lib/python3.14t/site-packages/pip/__main__.py", line 22, in <module>
from pip._internal.cli.main import main as _main
File "/workspaces/venv/lib/python3.14t/site-packages/pip/_internal/cli/main.py", line 11, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/workspaces/venv/lib/python3.14t/site-packages/pip/_internal/cli/autocompletion.py", line 10, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/workspaces/venv/lib/python3.14t/site-packages/pip/_internal/cli/main_parser.py", line 9, in <module>
from pip._internal.build_env import get_runnable_pip
File "/workspaces/venv/lib/python3.14t/site-packages/pip/_internal/build_env.py", line 18, in <module>
from pip._internal.cli.spinners import open_spinner
File "/workspaces/venv/lib/python3.14t/site-packages/pip/_internal/cli/spinners.py", line 9, in <module>
from pip._internal.utils.logging import get_indentation
File "/workspaces/venv/lib/python3.14t/site-packages/pip/_internal/utils/logging.py", line 13, in <module>
from pip._vendor.rich.console import (
...<6 lines>...
)
File "/workspaces/venv/lib/python3.14t/site-packages/pip/_vendor/rich/console.py", line 47, in <module>
from . import errors, themes
File "/workspaces/venv/lib/python3.14t/site-packages/pip/_vendor/rich/themes.py", line 1, in <module>
from .default_styles import DEFAULT_STYLES
File "/workspaces/venv/lib/python3.14t/site-packages/pip/_vendor/rich/default_styles.py", line 3, in <module>
from .style import Style
File "/workspaces/venv/lib/python3.14t/site-packages/pip/_vendor/rich/style.py", line 8, in <module>
from .color import Color, ColorParseError, ColorSystem, blend_rgb
File "/workspaces/venv/lib/python3.14t/site-packages/pip/_vendor/rich/color.py", line 8, in <module>
from ._palettes import EIGHT_BIT_PALETTE, STANDARD_PALETTE, WINDOWS_PALETTE
File "/workspaces/venv/lib/python3.14t/site-packages/pip/_vendor/rich/_palettes.py", line 1, in <module>
from .palette import Palette
File "/workspaces/venv/lib/python3.14t/site-packages/pip/_vendor/rich/palette.py", line 5, in <module>
from .color_triplet import ColorTriplet
File "/workspaces/venv/lib/python3.14t/site-packages/pip/_vendor/rich/color_triplet.py", line 4, in <module>
class ColorTriplet(NamedTuple):
...<33 lines>...
return red / 255.0, green / 255.0, blue / 255.0
File "/usr/lib/python3.14/typing.py", line 2971, in __new__
types = annotationlib.call_annotate_function(original_annotate, annotationlib.Format.FORWARDREF)
File "/usr/lib/python3.14/annotationlib.py", line 613, in call_annotate_function
result = func(Format.VALUE_WITH_FAKE_GLOBALS)
File "/workspaces/venv/lib/python3.14t/site-packages/pip/_vendor/rich/color_triplet.py", line 4, in __annotate__
class ColorTriplet(NamedTuple):
NotImplementedError
Error: Command '['/workspaces/venv/bin/python3.14t', '-m', 'pip', 'install', '--upgrade', 'pip']' returned non-zero exit status 1.
@clin1234 ➜ /workspaces $ apt info -a python3.14-nogil
Package: python3.14-nogil
Version: 3.14.0~a2-153-g8c3fd1f245-1+jammy1
Priority: optional
Section: debug
Source: python3.14
Maintainer: Matthias Klose <doko@debian.org>
Installed-Size: 7348 kB
Depends: python3.14 (= 3.14.0~a2-153-g8c3fd1f245-1+jammy1), libpython3.14-nogil (= 3.14.0~a2-153-g8c3fd1f245-1+jammy1), libc6 (>= 2.35), libexpat1 (>= 2.1~beta3), zlib1g (>= 1:1.2.0)
Recommends: gdb
Suggests: python3.14-gdbm-nogil, python3.14-tk-nogil
Download-Size: 2293 kB
APT-Manual-Installed: yes
APT-Sources: https://ppa.launchpadcontent.net/deadsnakes/nightly/ubuntu jammy/main amd64 Packages
Description: No-GIL Build of the Python Interpreter (version 3.14)
Code of Conduct
- I agree to follow the PSF Code of Conduct.
Metadata
Metadata
Assignees
Labels
kind: crashFor situations where pip crashesFor situations where pip crashestype: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior