0
我正在chroot环境中运行pyinstaller二进制文件。下面的代码产生一个回溯。OSError:使用python进行pty设备sh
from sh import ps, grep
grep(ps('-ef'), '[p]rovision_storage.py', _tty_in=True)
File "sh.py", line 1427, in call
File "sh.py", line 767, in init
File "sh.py", line 1780, in init
File "pty.py", line 29, in openpty
File "pty.py", line 70, in _open_terminal
OSError: out of pty devices
_tty_in设置为False也会产生相同的回溯。
环境:Pyinstaller二进制与Python编译2.7.13 编译/运行的chroot OS:Debian的弹力