-
-
Notifications
You must be signed in to change notification settings - Fork 118
4.1.0 error after relase in 2022.02.13 NameError: name '_UnpackAlias' is not defined #19
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
Comments
Oh, looks like I will send a PR with:
|
Thanks @yt605155624 for the report! Could you share the code that led to this error? I'd like to understand how our CI missed this case. |
@JelleZijlstra I have a TravisCI build failing due to this issue. It only happens on Python 3.7 and the stack starts at This is the incriminated build: https://app.travis-ci.com/github/tensortrade-org/tensortrade/jobs/559499288 |
Thanks! I see you're using 3.7.1 there; let me see if the version of 3.7 makes a difference. |
That was unintentional, TravisCI chose 3.7.1 when asked to test on 3.7 so I suppose this issue will arise in many other builds all over the GitHubverse :) Regards! |
typing.OrderedDict was new in 3.7.2, I suspect that has something to do with it. Unfortunately pyenv wasn't able to build 3.7.1 for me, but 3.7.10 is fine for me locally. Sounds like Travis needs to update their 3.7 installation :) But I'll release 4.1.1 later today to fix this. |
We confirmed that it fails on 3.7.1. To make sure we don't get any other similar issues, I'm thinking of running CI on the .0 versions of all supported Python versions. That way, we run the earliest and latest bugfix release of each version, which will hopefully be enough to catch this sort of thing in general. |
I just released https://pypi.org/project/typing-extensions/4.1.1/ with the fix. Thanks for reporting this bug! |
Thanks for your timely fix and release! |
Would it make sense to yank the |
Python 3.7.1 is ancient, released in 2018, with 10 further versions released since then. I don't think yanking this is necessary. |
File "/workspace/tools/venv/lib/python3.7/site-packages/typing_extensions.py", line 143, in _collect_type_vars
not isinstance(t, _UnpackAlias)
NameError: name '_UnpackAlias' is not defined
This bug was found in the CI of PaddleSpeech in the before dawn of 2022.02.14 (China), there are many python lib depends on typing, for exapmle,
jsonlines
, the error reporting stack isOur CI works well with the new release typing_extensions 4.1.1, Thanks
The text was updated successfully, but these errors were encountered: