Closed mxposed closed 8 years ago
I've had the same problem. In my case, using Python to make the requests to Filters, I was opening the DOCX file in "r" mode, but it should be in "rb" mode. If you want, I can elaborate if you think that's going to help to fix your problem.
It seems that Filters received a corrupted file. DOCX are actually zip archives with changed extension. The suggestion from LLCampos is correct, maybe you are reading the file in the wrong way. Try to convert the file using the web interface (default localhost:8732), if it works then you can be sure that the problem is just in the code you use to send the file.
@giusilvano You are right, the file gets converted ok directly through the filters web interface. I use a separate matecat installation to send the file to filters. Do you know if they are supposed to live on the same machine? And where better to ask questions about it? Thanks!
Matecat.com and our running Filters instances are hosted on different machines in our infrastructure, so the problem has to be elsewhere. I can't figure out clearly what is happening in your environment. Try to check what your Filters are receiving (the received file is written in a temp directory), then check if there are problems with curl or PHP versions, or networking issues (firewalls, proxies etc.).
I close the issue for inactivity. @mxposed feel free to add details if you find something that should be fixed our side.
@giusilvano I figured that out: I had PHP 5.6 and an old version of matecat. I pulled the new master and this commit fixed the issue. https://github.com/matecat/MateCat/commit/a44d76e84d01bf1a1552b0d650ce34b1a50646f9 Thank you
@mxposed happy to hear that you solved the issue, and that it was not caused by a bug in Filters! :D Bye!
Hi!
I have launched filters using this instruction https://github.com/matecat/MateCat-Filters/wiki/Build-and-run And I get the following error when trying to convert .docx document. Do I get it right, that .docx should be supported by filters? How do I debug such an error?