Skip to content

AttributeError: module 'typing_extensions' has no attribute 'Union' #80

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

Open
huynd26 opened this issue Apr 14, 2025 · 5 comments
Open

Comments

@huynd26
Copy link

huynd26 commented Apr 14, 2025

Hi, I got an error when upgrading Typesense from version 0.21.0 to 1.0.3
_SequenceTypes = typing.Union[\nAttributeError: module 'typing_extensions' has no attribute 'Union'\n", "path": "/webapps/project/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", "syspath": ["/tmp/ansible_community.general.django_manage_payload_2wkzk7x5/ansible_community.general.django_manage_payload.zip", "/usr/lib/python310.zip", "/usr/lib/python3.10", "/usr/lib/python3.10/lib-dynload", "/usr/local/lib/python3.10/dist-packages", "/usr/lib/python3/dist-packages"]}
Python version: 3.10
Typing_extension: 4.13.1

Hopefully there is a solution or a correction version to solve it. Many Thanks!

@tharropoulos
Copy link
Contributor

Hey there, are you using a virtual environment for dependency management? This error is a first for me and we actually run our tests against multiple Python versions.

I'll investigate what's going on here

@huynd26
Copy link
Author

huynd26 commented Apr 14, 2025

Yes, I'm using a virtual environment for dependency management. Thank you for the timely feedback!

@tharropoulos
Copy link
Contributor

I just upgraded from 0.21.0 to 1.0.3 normally without any errors. Did this occur when installing or on some other pipeline?d

@huynd26
Copy link
Author

huynd26 commented Apr 14, 2025

I just upgraded from 0.21.0 to 1.0.3 normally without any errors. Did this occur when installing or on some other pipeline?d

What is the typing_extensions version you installed? Thank you.

@tharropoulos
Copy link
Contributor

typing_extensions==4.13.2

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