Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955029 - dev-python/pip: Missing dependency on tomli
Summary: dev-python/pip: Missing dependency on tomli
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-28 15:32 UTC by NHO
Modified: 2025-04-28 16:55 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info, compressed (emerge.info.zst,3.65 KB, application/zstd)
2025-04-28 15:33 UTC, NHO
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NHO 2025-04-28 15:32:43 UTC
> python3.13 -m pip install --user --upgrade pip
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/lib/python3.13/site-packages/pip/__main__.py", line 24, in <module>
    sys.exit(_main())
             ~~~~~^^
  File "/usr/lib/python3.13/site-packages/pip/_internal/cli/main.py", line 77, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
  File "/usr/lib/python3.13/site-packages/pip/_internal/commands/__init__.py", line 119, in create_command
    module = importlib.import_module(module_path)
  File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/lib/python3.13/site-packages/pip/_internal/commands/install.py", line 24, in <module>
    from pip._internal.cli.req_command import (
    ...<2 lines>...
    )
  File "/usr/lib/python3.13/site-packages/pip/_internal/cli/req_command.py", line 31, in <module>
    from pip._internal.req.req_dependency_group import parse_dependency_groups
  File "/usr/lib/python3.13/site-packages/pip/_internal/req/req_dependency_group.py", line 3, in <module>
    import tomli
ModuleNotFoundError: No module named 'tomli'

Reproducible: Always
Comment 1 NHO 2025-04-28 15:33:24 UTC
Created attachment 926840 [details]
emerge --info, compressed
Comment 2 Larry the Git Cow gentoo-dev 2025-04-28 16:55:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dc393d98a583b593cbc3562c5e7d2fda485c0ae

commit 7dc393d98a583b593cbc3562c5e7d2fda485c0ae
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2025-04-28 16:53:36 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2025-04-28 16:53:36 +0000

    dev-python/pip: Fix tomli dep regression
    
    Closes: https://bugs.gentoo.org/955029
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/pip/files/pip-25.1-tomli-dep.patch      | 76 ++++++++++++++++++++++
 .../pip/{pip-25.1.ebuild => pip-25.1-r1.ebuild}    |  2 +
 2 files changed, 78 insertions(+)