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

Wrong: _, term_width = os.popen('stty size', 'r').read().split() 问题 #7

Open
zenRRan opened this issue Apr 4, 2019 · 2 comments

Comments

@zenRRan
Copy link

zenRRan commented Apr 4, 2019

File "D:\pycharm_workshop\SU4MLC\semantic-unit-based\utils\misc_utils.py", line 25, in
_, term_width = os.popen('stty size', 'r').read().split()
ValueError: not enough values to unpack (expected 2, got 0)

老铁,如何解决这个问题?

@zenRRan
Copy link
Author

zenRRan commented Apr 4, 2019

在运行preprocess.py 的时候

@JustinLin610
Copy link
Collaborator

这个可能和python版本有关系,你要不吧这行注释掉,然后随便设个term width,比如80

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