-
Notifications
You must be signed in to change notification settings - Fork 74k
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
Module 'gast' has no attribute 'Num' #32319
Comments
Hello, 3 hours ago, TF requires This error may occur for example on the line 236 in
|
@mgreenbe thank you for filing the bug, and @tocosastalo thanks for the info. Workaround that worked for me: |
@jlebar & @tocosastalo & @mgreenbe thank you:
This worked for me too: $ |
I encountered the same warning with tensorflow-gpu2.0beta1, and the above fix works for me too:
|
Using the older version of |
#32332 fixes this for 1.15, there's a similar PR for 2.0 and a commit on master. Adding @goldiegadde as she is fixing this |
I don’t understand what the status of this is. The corresponding commit
Running I’m not sure what those changes in |
Classical error of having same dependency specified in two places. I'll send a fix, sorry for this |
thanks! and no worries :-) |
This fixes breakage caused by minor update breaking tensorflow. PiperOrigin-RevId: 268261146
This fixes breakage caused by minor update breaking tensorflow. PiperOrigin-RevId: 268261146
This fixes breakage caused by minor update breaking tensorflow. PiperOrigin-RevId: 268261146
Freeze gast==0.2.2 (#32319) in setup.py requirements.
Freeze gast==0.2.2 (#32319) in setup.py requirements.
Should be fixed now, keeping issue open until verified |
Thanks guys for the fix! Any chance we'll get a build for mac-python3.7? |
Confirmed fixed for me on Feel free to close at your discretion. |
In that case, closing. Thank you for verifying. @arainboldt the fix should get released in all pips we are releasing. |
New update:
If you encounter this issue on 1.14 or earlier, please install gast==0.2.2 using pip before installing tensorflow. |
* testing right before checking * move to the end * try using python3 * use ubuntu xenial for python 3.6 * library before testing * pin gast as a workarounf for tensorflow/tensorflow#32319 * define as_tensor on utils * dont stop in failures right now * remote test line
I'm still getting the error even with gast 0.2.2. |
We are currently working on getting |
…ast version that supports TF1 Pin Gast to version 0.2.2 to address tensorflow/tensorflow#32319 When installing for TF2 on Python2, pin Tensorflow to 2.1.0 since that's the last version that supports Python2. PiperOrigin-RevId: 291012176 Change-Id: I6910ee9b298a220415475ee0546ce28a64813cc3
Starting from TensorFlow 2.2.0, it will work with gast 0.3.x but NOT gast 0.2.x any more. For TF <= 2.1, gast 0.2.2 is needed. |
Thank you @wookayin |
I got an error message including a request that I report a bug.
Here's the code:
And here's the output, including system info, module versions, etc.
The text was updated successfully, but these errors were encountered: