I found a way, but it works poorly
import subprocess
subprocess.run(['abiword', '--to=docx', 'DOC/1.doc'])
Gives an error message:
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
** (abiword:293001): WARNING **: clutter failed 0, get a life.
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
At the same time, it converts, but for some reason not all files, although they have the same tables, only a different filling and creates an empty file:
How do I get rid of the errors and make it work? Or how can one convert differently on pythonanywhere