pandoc-include icon indicating copy to clipboard operation
pandoc-include copied to clipboard

Could not find executable pandoc-include

Open axelkennedal opened this issue 1 year ago • 3 comments

I know that Issue #1 seems very similar to this, however I have followed the solution there and it does not work for me.

Problem

When trying to use pandoc-include like pandoc .\Book.md --filter pandoc-include -o book.pdf I get the error Error running filter pandoc-include: Could not find executable pandoc-include

Background

I have done the following:

  1. Install Python from https://www.python.org/downloads/
  2. Run pip install --upgrade pandoc, pip install pandoc-include
  3. Moved pandoc-include from the Roaming folder it was installed in (C:\Users\myuser\AppData\Roaming\Python\Python311\site-packages), to the same folder as where pandoc is installed in (C:\Users\myuser\AppData\Local\Programs\Python\Python311\Lib\site-packages)
  4. Made sure that pandoc-include is in the path variable: running echo $env:PATH returns my path, which contains C:\Users\myuser\AppData\Local\Programs\Python\Python311\Lib\site-packages

My pandoc version is 2.3 and pandoc-include is 1.2.0.

axelkennedal avatar Jul 17 '23 18:07 axelkennedal

Are you able to run pandoc-include directly from command line? If it still says "Could not find executable pandoc-include", then it may be added to the path correctly.

DCsunset avatar Jul 18 '23 02:07 DCsunset

No I am not, even though I have installed pandoc-include as in the README: image

image

image

axelkennedal avatar Jul 18 '23 17:07 axelkennedal

Did you put pandoc-include in the same directory as pandoc? If so, they should be able to run without the path. Could you check if the PATH environment variable include the directory where pandoc and pandoc-include are?

DCsunset avatar Jul 19 '23 14:07 DCsunset