tagged [subprocess]
OSError: [WinError 193] %1 is not a valid Win32 application
OSError: [WinError 193] %1 is not a valid Win32 application I am trying to call a Python file "hello.py" from within the python interpreter with subprocess. But I am unable to resolve this error. [Pyt...
- Modified
- 11 Oct at 01:39
Constantly print Subprocess output while process is running
Constantly print Subprocess output while process is running To launch programs from my Python-scripts, I'm using the following method: ``` def execute(command): process = subprocess.Popen(command, s...
- Modified
- 7 Feb at 22:49
How can I run an external command asynchronously from Python?
How can I run an external command asynchronously from Python? I need to run a shell command asynchronously from a Python script. By this I mean that I want my Python script to continue running while t...
- Modified
- 23 May at 10:31
How to catch exception output from Python subprocess.check_output()?
How to catch exception output from Python subprocess.check_output()? I'm trying to do a Bitcoin payment from within Python. In bash I would normally do this: So for example: If it is successful I get ...
- Modified
- 3 Jul at 08:37
"OSError: [Errno 2] No such file or directory" while using python subprocess with command and arguments
"OSError: [Errno 2] No such file or directory" while using python subprocess with command and arguments I am trying to run a program to make some system calls inside Python code using `subprocess.call...
- Modified
- 20 Jul at 12:9
Start and capture GUI's output from same Python script and transfer variables?
Start and capture GUI's output from same Python script and transfer variables? I have to start a GUI from an existing Python application. The GUI is actually separate Python GUI that can run alone. Ri...
- Modified
- 29 Dec at 00:50
Pipe subprocess standard output to a variable
Pipe subprocess standard output to a variable I want to run a command in `pythong`, using the subprocess module, and store the output in a variable. However, I do not want the command's output to be p...
- Modified
- 5 Jul at 15:44
running a command as a super user from a python script
running a command as a super user from a python script So I'm trying to get a process to be run as a super user from within a python script using subprocess. In the ipython shell something like ``` pr...
- Modified
- 14 Apr at 18:28
live output from subprocess command
live output from subprocess command I'm using a python script as a driver for a hydrodynamics code. When it comes time to run the simulation, I use `subprocess.Popen` to run the code, collect the outp...
- Modified
- 8 Feb at 15:54
How do I write to a Python subprocess' stdin?
How do I write to a Python subprocess' stdin? I'm trying to write a Python script that starts a subprocess, and writes to the subprocess stdin. I'd also like to be able to determine an action to be ta...
- Modified
- 15 Nov at 23:20
Using subprocess to run Python script on Windows
Using subprocess to run Python script on Windows Is there a simple way to run a Python script on Windows/Linux/OS X? On the latter two, `subprocess.Popen("/the/script.py")` works, but on Windows I get...
- Modified
- 23 May at 12:10