On any kind of error it seems the script doesn't stop itself, it still requires ctrl+c to return to the command line. This isn't a big deal if it hasn't started processing (like the image path is wrong), but if it runs out of memory (the output image is too large) then even ctrl+c doesn't kill all the processes. When you try to run the script again it will fail because something is still running.
The current fix is to find the PID with:
ps aux | grep "python"
Then just kill it and everything works again:
kill [pid]
On any kind of error it seems the script doesn't stop itself, it still requires ctrl+c to return to the command line. This isn't a big deal if it hasn't started processing (like the image path is wrong), but if it runs out of memory (the output image is too large) then even ctrl+c doesn't kill all the processes. When you try to run the script again it will fail because something is still running.
The current fix is to find the PID with:
ps aux | grep "python"
Then just kill it and everything works again:kill [pid]