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

Can't import from plum with version 2.4.4 (No module named 'typing_extensions') #180

Closed
bariod opened this issue Jul 1, 2024 · 2 comments

Comments

@bariod
Copy link

bariod commented Jul 1, 2024

With version 2.4.4 I can no longer import plum:

File "<irrelevant_file>", line 2, in <module>
    from plum import dispatch
  File "<irrelevant_dir>\Python\Lib\site-packages\plum\__init__.py", line 14, in <module>
    from .autoreload import *  # noqa: F401, F403
    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<irrelevant_dir>\Python\Lib\site-packages\plum\autoreload.py", line 3, in <module>
    from .dispatcher import clear_all_cache
  File "<irrelevant_dir>\Python\Lib\site-packages\plum\dispatcher.py", line 6, in <module>
    from .function import Function
  File "<irrelevant_dir>\Python\Lib\site-packages\plum\function.py", line 8, in <module>
    from .method import Method
  File "<irrelevant_dir>\Python\Lib\site-packages\plum\method.py", line 9, in <module>
    from .signature import Signature, inspect_signature
  File "<irrelevant_dir>\Python\Lib\site-packages\plum\signature.py", line 7, in <module>
    from typing_extensions import Self
ModuleNotFoundError: No module named 'typing_extensions'

With 2.4.3, all works fine.

Interpreter version: 3.12.1

@PhilipVinc
Copy link
Collaborator

Thanks for the report! We'll soon release a fix. In the meantime You can pip install typing_extensions to fix it.

@PhilipVinc
Copy link
Collaborator

@bariod the just released v.2.5.0 solves the problem correctly (by not requiring typing extensions on more recent python versions)

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