Skip to content
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

python=3.8,运行包astunparse报错 #649

Closed
1 of 2 tasks
wuchaooooo opened this issue Dec 25, 2023 · 1 comment
Closed
1 of 2 tasks

python=3.8,运行包astunparse报错 #649

wuchaooooo opened this issue Dec 25, 2023 · 1 comment
Assignees

Comments

@wuchaooooo
Copy link

System Info / 系統信息

Python==3.8.18
astunparse==1.6.3

Who can help? / 谁可以帮助到您?

@Btlmd

Information / 问题信息

  • The official example scripts / 官方的示例脚本
  • My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

  1. 运行 sh finetune_ds_multiturn.sh
  2. 报错信息:
    File "/opt/conda/lib/python3.8/site-packages/astunparse/unparser.py", line 66, in dispatch
    meth(tree)
    File "/opt/conda/lib/python3.8/site-packages/astunparse/unparser.py", line 551, in _Constant
    if t.kind == "u":
    AttributeError: 'Constant' object has no attribute 'kind'
  3. 网上查看了下是 astunparse 在python 3.8 的问题。'astunparse.unparse' error with Python 3.8.1 simonpercivall/astunparse#43
  4. 我把unparser.py的 551和552行注释了。
  5. 再次运行 sh finetune_ds_multiturn.sh,不报错了。

Expected behavior / 期待表现

我看了下astunparse的包功能,只用在了很小的范围,能否换用其他包,让整个demo环境支持python==3.8

@zRzRzRzRzRzRzR
Copy link
Member

em,我们其实已经不支持python 3.8了,我们建议使用的是python3.10,还是推荐升级python

@zRzRzRzRzRzRzR zRzRzRzRzRzRzR closed this as not planned Won't fix, can't repro, duplicate, stale Dec 26, 2023
@zRzRzRzRzRzRzR zRzRzRzRzRzRzR self-assigned this Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants