Closed ray-lee-94 closed 5 years ago
sorry. I run the train.py in pycharm, I got this issue. If i run in the Terminal, i is fine.
Hello,I also have this problem. Have you solved it now? @VCBE123
me, too. How to solve it???
I solved it replacing
_, term_width =os.popen('stty size','r').read().split()
with
from shutil import get_terminal_size
term_width, _ = get_terminal_size()
You could comment these two lines and use term_width=80
.
I solved it replacing
_, term_width =os.popen('stty size','r').read().split()
with
from shutil import get_terminal_size term_width, _ = get_terminal_size()
It works!
_, term_width =os.popen('stty size','r').read().split() ValueError: not enough values to unpack