Issue with unoconv in PHP with a laragon server

76 Views Asked by At

I have an issue with running unoconv from my laragon PHP server.

Info: It's a somewhat older project that uses unoconv to convert docx files to pdf files. Which has worked fine for a long time in my setup. I recently switched from the thread-safe version of PHP to the non thread-safe version of PHP 7.4.32. I copied over the entire php.ini so it should be the same in that area.

When I check the phpinfo I can see that the PATH is the same for both the thread-safe version and the NTS version. Both unoconv and the office installation is in the path.

This is the command I'm running right now:

C:\Users\USER\AppData\Local\Programs\Python\Python311\python.exe C:/unoconv/unoconv.py C:/laragon/www/vak/storage/documents/doc.148.docx 2>&1

Like I said this works fine in the thread-safe version but not in the NTS version.

The error I'm getting is this:

unoconv: Cannot find a suitable office installation on your system. ERROR: Please locate your office installation and send your feedback to: http://github.com/dagwieers/unoconv/issues

I am completely lost here. thanks in advance

0

There are 0 best solutions below