title: Libreoffice conversion from doc to docx stuck in ubuntu terminal
body: <p>I am developping a program to extract content from a docx file. However, a lot of my available files are in .doc format and not .docx, so I use libreoffice to convert them.</p>
  <p>For one particular doc file, the conversion doesn't work, and I don't know if it's a bug or a misuse on my part.</p>
  <p>Here is the code that I use. &quot;entry&quot; is the file name.</p>
  <pre><code>if entry.lower().endswith('.doc'):
    if sys.platform == &quot;linux&quot; or sys.platform == &quot;linux2&quot;:
        print(entry)
        os.system(f&quot;lowriter --convert-to docx '{entry}'&quot;)
  </code></pre>
  <p>Instead of creating a docx file, this appears in my directory. I have waited for about 10 minutes and the program is stuck here.</p>
  <p><a href="https://i.stack.imgur.com/NX3gj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NX3gj.png" alt="Created file" /></a></p>
  <p>Does anybody have an idea of chat is going on here, and if I can fix it? I guess I can put a time limit on the conversion and skip the file if it takes too much time but that would mean that I can't utilize the content of this file later.</p>