Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find executable pandoc-include #36

Open
axelkennedal opened this issue Jul 17, 2023 · 3 comments
Open

Could not find executable pandoc-include #36

axelkennedal opened this issue Jul 17, 2023 · 3 comments

Comments

@axelkennedal
Copy link

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
Copy link
Owner

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
Copy link
Author

axelkennedal commented Jul 18, 2023

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

image

image

@DCsunset
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants