Plus, the python script runs perfectly fine when not run in the background. I've looked through the pyloudness pypi page and found that it states ffmpeg as a prerequisite for pyloudness – I have the latest version of ffmpeg installed on my Ubuntu machine. Loudness_stats = get_loudness(file) #run.py stops at this line
I've narrowed down exactly which line run.py gets stopped at: from pyloudness import get_loudness #the function i'm importing Also, me doing something while run.py is running isn't what's stopping it – if I leave it running it'll stop within like 10s. NOTE: Other python scripts are successfully running in the background, so I know run.py itself is the problem. For example, if you want to run the command 'python myscript. + Stopped python3 run.py > happening here? How can I make it so the script runs FULLY in the background? Any help is appreciated, thank you. Method 1: Using the subprocess module To start a background process in Python using the subprocess module, you can follow these steps: Import the subprocess module: import subprocess Define the command to be executed as a list of strings. First, though, you need to import the subprocess and sys modules into your program: import subprocess import sys result n(sys. However, after running the script and I try do something, the script stops. You can use the n function to run an external program from your Python code.
I'm currently trying to run a python script in the background so I can continue using the terminal.