Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cattrs 23.2.0 ModuleNotFoundError on import #449

Closed
mtreinish opened this issue Nov 17, 2023 · 2 comments
Closed

cattrs 23.2.0 ModuleNotFoundError on import #449

mtreinish opened this issue Nov 17, 2023 · 2 comments

Comments

@mtreinish
Copy link

mtreinish commented Nov 17, 2023

  • 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'
@mtreinish
Copy link
Author

I see this is a duplicate of #446 and the fix is already merged (#447) and will be released in a bugfix release

@mtreinish mtreinish closed this as not planned Won't fix, can't repro, duplicate, stale Nov 17, 2023
@Tinche
Copy link
Member

Tinche commented Nov 17, 2023

Yeah, releasing in a few hours if nothing else pops up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants