In one of my scripts, I'm using a library called abiword (not a Python library, it's for Ubuntu). As far as I know, it's the only non-GUI platform available to convert .doc files to HTML.
Anyway, whenever I run it, I get errors. When printed:
[b'error: XDG_RUNTIME_DIR not set in the environment.\n', b'\n', b' (abiword:23444): WARNING : clutter failed 0, get a life.\n', b'error: XDG_RUNTIME_DIR not set in the environment.\n']
I've inspected several SO threads, with some solutions suggesting using sudo visudo
, or something called pkexec
. None of which seem to be available on my console. I've searched and found that PyAny doesn't support sudo
.
Any suggestion for fixing the above without utilizing sudo?