typesense-python icon indicating copy to clipboard operation
typesense-python copied to clipboard

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

Open huynd26 opened this issue 10 months ago • 5 comments

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!

huynd26 avatar Apr 14 '25 07:04 huynd26

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

tharropoulos avatar Apr 14 '25 07:04 tharropoulos

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

huynd26 avatar Apr 14 '25 07:04 huynd26

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

tharropoulos avatar Apr 14 '25 09:04 tharropoulos

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.

huynd26 avatar Apr 14 '25 10:04 huynd26

typing_extensions==4.13.2

tharropoulos avatar Apr 14 '25 10:04 tharropoulos