Mathpix/mpx-cli

Could not write to destination path: image.mmd

brunoprietog opened this issue · 4 comments

Hi,

I am trying to convert an image in my user root folder.

The command I am using is as follows:

mpx convert image.jpg image.mmd

It succeeds in converting, but it says this:

Convert with snip api image.jpg image.mmd mmd                                                                           
Could not write to destination path: image.mmd

Finally, I lose a snip from my plan and can't see it.

I tried it in another folder that has 777 permissions and the same thing happens.

What can I do?

Thanks!

xrkk commented

I met the save problem and debugged the code, I think it's mathpix server problem, the ocr server failed the ocr operation and can't get and text, and then server response doesn't have any "display_text", and then nothing to write to disk, the operation fails.

xrkk commented

After reversing, I found that convert.js forgot to attach parameter options_json when sending POST requests. Will upload new code when finished.

I am facing the same issue. Why mpx convert img.png file.mmd is not giving the result for the same image that it processed easily with the desktop version of Mathpix Snip? I suppose they are same.

What can be done?

Thanks!

I also encounter the same problem. Could you please fix this @montanaflynn @nicodjimenez. Thanks!