paprika-to-obsidian-markdown icon indicating copy to clipboard operation
paprika-to-obsidian-markdown copied to clipboard

Error parsing ingredients

Open a2jc4life opened this issue 2 years ago • 2 comments

Every recipe in my database (as far as I can tell) is telling me "error parsing ingredients." I'm not sure what it's supposed to be doing, but I'm guessing based on the output that it's getting part of the processing done but not all of it. I don't know for sure what the output should look like, but this isn't what I would expect is intended.

The output image here is from processing it with the plain markdown template. (Although I'm getting the error regardless of which template I use.) The other is where a friend helped me remove the bit of the code that threw the error message and I ran it again so we could see more clearly what it's doing when it reaches that point.

ingredient-outputjpg 325782789_882229493195755_4129593894083514252_n

a2jc4life avatar Jan 23 '23 22:01 a2jc4life

@a2jc4life, the bit where it says '1/' this looks to me like you have some ingredients with fractions in them - like 1/4. I'll have a check to see if I'm processing them or not, I thought I was.

jt196 avatar Feb 27 '23 09:02 jt196

The fractions are accounted for and working fine. I'm happy to try and fix this if you're able to send over a .paprikarecipes file with one or two recipes that are causing this error for you. if you go into the list view you should be able to select recipes without entering them, right click and export.

image

It would also be useful to know which OS and which version of Python you're using (python -V).

jt196 avatar Feb 27 '23 10:02 jt196