Skip to content
This repository was archived by the owner on Dec 2, 2023. It is now read-only.
This repository was archived by the owner on Dec 2, 2023. It is now read-only.

Error in tangent tutorial notebook: "AttributeError: module 'gast' has no attribute 'Num'" #105

Description

@dariush-bahrami

Hi i opened your tutorial notebook and run the cells in notebook. after installing tangent at cell with following code:

import tangent
df = tangent.grad(f)

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions