zkcpku / HGT-HPG

code for "Learning to Represent Programs with Heterogeneous Graphs"
11 stars 1 forks source link

请教myparser.py运行后报错KeyError: 'Constant' #1

Closed KarryBanana closed 1 year ago

KarryBanana commented 1 year ago

您好,我在尝试运行python_parser目录下的myparser.py时产生了KeyError: 'Constant'的报错,同样的报错也发生在了运行process_data.py。由于我并未修改作者您的代码,所以想问下该报错可能产生的原因,谢谢!

myparser.py中的报错

image

KarryBanana commented 1 year ago

复制python的语法文件,并删除了其中的注释后可以正常运行代码了 https://docs.python.org/3.7/library/ast.html