DCsunset / pandoc-include

A pandoc filter to allow file and header inclusion
MIT License
63 stars 14 forks source link

Could not find executable pandoc-include #36

Open axelkennedal opened 1 year ago

axelkennedal commented 1 year ago

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.

DCsunset commented 1 year ago

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.

axelkennedal commented 1 year ago

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

image

image

DCsunset commented 1 year ago

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?