Skip to content

cattrs 23.2.0 ModuleNotFoundError on import #449

@mtreinish

Description

@mtreinish
  • cattrs version: 23.2.0
  • Python version: 3.12 and 3.11
  • Operating System: Linux and macOS

Description

On a fresh install of cattrs 23.2.0 and importing it I receive a module not found error saying: ModuleNotFoundError: No module named 'typing_extensions

What I Did

python -m venv test_new_cattrs
test_new_cattrs/bin/pip install -U cattrs
test_new_cattrs/bin/python -c 'import cattrs'

which returns:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/test_new_cattrs/lib/python3.11/site-packages/cattrs/__init__.py", line 1, in <module>
    from .converters import BaseConverter, Converter, GenConverter, UnstructureStrategy
  File "/tmp/test_new_cattrs/lib/python3.11/site-packages/cattrs/converters.py", line 58, in <module>
    from .dispatch import HookFactory, MultiStrategyDispatch, StructureHook, UnstructureHook
  File "/tmp/test_new_cattrs/lib/python3.11/site-packages/cattrs/dispatch.py", line 5, in <module>
    from typing_extensions import TypeAlias
ModuleNotFoundError: No module named 'typing_extensions'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions