-
Notifications
You must be signed in to change notification settings - Fork 436
Error in tangent tutorial notebook: "AttributeError: module 'gast' has no attribute 'Num'" #105
Comments
This is due to incompatible dependencies. We haven't had the chance to upgrade the code. Could you try installing an older version of gast:
|
This yield the issue:
Looks like there's no gast 0.2.4. Using 0.3.0 yields
while using 0.2.2 yields
All these examples are from the Colab notebook. It's such a shame Tangent isn't functional anymore, it would have been pretty useful. |
Odd that that version is gone. Does |
No, both |
That means that the code would need to be upgraded to the newest version. Not terribly difficult, it's mostly mechanical, if anyone has the bandwitdth to do it. |
I took a stab at upgrading to gast Most of the tests seem to be passing now, but I'm having a lot of trouble getting some of the tensorflow derivatives to work. I would really like to get all the tests passing, so if anyone has an idea of how to do that I'm happy to help further. This is a really interesting and unique project which I'd hate to see die. |
Hi i opened your tutorial notebook and run the cells in notebook. after installing tangent at cell with following code:
the following error arises:
AttributeError Traceback (most recent call last)
in ()
----> 1 import tangent
2 df = tangent.grad(f)
3 frames
/usr/local/lib/python3.6/dist-packages/tangent/grammar.py in ()
16 import gast
17
---> 18 LITERALS = (gast.Num, gast.Str, gast.Bytes, gast.Ellipsis, gast.NameConstant)
19
20 CONTROL_FLOW = (gast.For, gast.AsyncFor, gast.While, gast.If, gast.Try)
AttributeError: module 'gast' has no attribute 'Num'
The text was updated successfully, but these errors were encountered: