There are two errors, one is raise exceptions.ShellError(, the otherpipe.communicate(). Do you need to rely on other libraries? <img width="609" alt="截屏2022-05-15 07 38 00" src="https://user-images.githubusercontent.com/14025157/168451440-96c65123-92ec-486b-923c-edc27c064090.png">