It seems you are encountering an error in your Python script (convertvideogen.py). The error is caused by an unexpected keyword argument capture_output in the subprocess.run() function.
The captureoutput argument was introduced in Python 3.7. Since your error message indicates you are using Python 3.6, you need to use an alternative approach to capture the output. Instead of using captureoutput=True, you can use stdout and stderr arguments with subprocess.PIPE.
Here's how you can modify the subprocess.run() function call in your script:
result = subprocess.run(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
This change should fix the TypeError in your script.
If you still want to use the capture_output argument, you can consider upgrading your Python version to 3.7 or later. However, before upgrading, make sure that your system and other dependencies are compatible with the newer version of Python.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-04-14 13:44:24 +0000
Seen: 3 times
Last updated: Apr 15
How can I set up Gunicorn with a Django Project?
Looking for a Python Module that finds Tags for a Text describing its Content
Need a Function in Python to remove entries less than 2 digits from an Array
How can I convert a Document in Python?
How can I program a Loop in Python?
How can I enable Python Code Highlighting in Askbot?