← All tasks
pythonTextualize/rich #3511Verified, not scored yet

[BUG] No module named 'typing_extensions'

envgap__Textualize__rich-3511

01 / FAILURE SIGNATURE

As reported upstream

ModuleNotFoundError: No module named 'typing_extensions'
Not scored yet.
  • The failure reproduces in a clean container and the known fix makes the project run; it has not been scored yet.

02 / ENVIRONMENT RECIPE

Base commit
36f3ca645dd225ef5d9d836e1e3c480dc3f68ff0
Manifest
pyproject.toml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

Textualize/rich #3511 · read the original issue
- [X] I've checked [docs](https://rich.readthedocs.io/en/latest/introduction.html) and [closed issues](https://github.com/Textualize/rich/issues?q=is%3Aissue+is%3Aclosed) for possible solutions.

- [X] I can't find my issue in the [FAQ](https://github.com/Textualize/rich/blob/master/FAQ.md).



**Describe the bug**



Since rich 13.9.0 has been released, when I try to upload a package with twine, I'm getting the following error:

```shell

python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*

Traceback (most recent call last):

  File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main

    return _run_code(code, main_globals, None,

  File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code

    exec(code, run_globals)

  File "/usr/local/lib/python3.9/site-packages/twine/__main__.py", line 54, in <module>

    sys.exit(main())

  File "/usr/local/lib/python3.9/site-packages/twine/__main__.py", line 33, in main

    error = cli.dispatch(sys.argv[1:])

  File "/usr/local/lib/python3.9/site-packages/twine/cli.py", line 121, in dispatch

    main = registered_commands[args.command].load()

  File "/usr/local/lib/python3.9/site-packages/importlib_metadata/__init__.py", line 189, in load

    module = import_module(match.group('module'))

  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module

    return _bootstrap._gcd_import(name[level:], package, level)

  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import

  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load

  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked

  File "<frozen importlib._bootstrap_external>", line 850, in exec_module

  File "<frozen importlib._bootstrap>", line [228](https://gitlab.com), in _call_with_frames_removed

  File "/usr/local/lib/python3.9/site-packages/twine/commands/upload.py", line 28, in <module>

    from twine import settings

  File "/usr/local/lib/python3.9/site-packages/twine/settings.py", line 23, in <module>

    from twine import repository

  File "/usr/local/lib/python3.9/site-packages/twine/repository.py", line 19, in <module>

    import rich.progress

  File "/usr/local/lib/python3.9/site-packages/rich/progress.py", line 45, in <module>

    from typing_extensions import Self  # pragma: no cover

ModuleNotFoundError: No module named 'typing_extensions'

```



When I manually install `typing_extensions` or when I fix rich version to 13.8.1 the problem doesn't appear.



It's pretty similar to #2979.

Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]