Python 3.8.6 (default, Feb 192021, 10:36:24)
[Clang 12.0.0 (clang-118.104.22.168)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
<subprocess.Popen object at 0x10115ea00>
The default interactive shell is now zsh.
Toupdate your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit <https://support.apple.com/kb/HT208050>.
1 year ago
Hi @Michael Adkins, I'm getting same error when I call subprocess in an interactive python session
I saw many posts on stakeoverflow with this error, and the recommendation is usually pass shell=True as an argument. I'm getting "somewhat" further if I do that:
<subprocess.Popen object at 0x039AE718>
>>>The filename, directory name, or volume label syntax is incorrect.