-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
Breaking change in v4.48.0 and Python 3.9 #35639
Comments
The cause here is the use of |
Thank you @Rocketknight1! I really appreciate it! |
@davidmezzetti the fix should be merged now, but you'll need to install from main or wait until the next release to use it! |
@Rocketknight1 @gante Thank you for the updates. Do you plan to release a 4.48.1 release or is this waiting until 4.49? As you can see here, there are a couple other projects in the same situation. While Python 3.9 isn't as common and there is a workaround, the bug is pretty bad in that simply importing the module raises the error. |
Pinging @ArthurZucker too. It looks like there is another 3.9 compatibility related bug: #35843 |
Yes, we'll make sure it is included in the next patch before this weekend! |
@ArthurZucker I appreciate it, thank you! |
Oups slipped my mind on friday, sorry! ETA is today / tomorrow! |
Thank you for following up! |
System Info
Python 3.9 and Transformers v4.48.0
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
v4.48.0 introduced a breaking change that happens on import of TextIteratorStreamer
Steps to reproduce
Run following:
Receive the following stack
Expected behavior
Work in Python 3.9
The text was updated successfully, but these errors were encountered: