Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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, text=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.

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, text=True)
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.

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.