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的彈力