How to correctly install and use pypandoc in a Python code component?

This topic was automatically generated from Slack. You can find the original thread here.

I want to use pypandoc in a py code component, I am using the magic comment

# pipedream add-package pypandoc_binary
# pipedream add-packge pypandoc
import pypandoc

When I test the workflow it executes successfully but the script does not actually process the http, before I had the magic comments it threw an error saying


An error occurred while processing the document: No pandoc was found: either install pandoc and add it
to your PATH or or call pypandoc.download_pandoc(...) or
install pypandoc wheels with included pandoc.

Am I just not actually installing pandoc in the env? Pypl says “If you want pandoc included out of the box, you can utilize our pypandoc_binary package, which are identical to the “pypandoc” package, but with pandoc included” but clearly something is not working. I have tested the trigger and the http ensure it is not the preceding components and have isolated the problem to pypandoc