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

pandoc.exe: Error running filter .\examples\caps.py #53

Closed
greatkeke opened this issue Dec 21, 2016 · 4 comments
Closed

pandoc.exe: Error running filter .\examples\caps.py #53

greatkeke opened this issue Dec 21, 2016 · 4 comments

Comments

@greatkeke
Copy link

Hello,Sir.
Thx for your project very much.

I'm interested in Markdown. So, I found pandoc is something I wanted. But It couldn't parse * [] task1 to <p><input type="checkbox"/>task1</p>. Then, I decided to write a filter to resolve it.

Then

  • I installed Python 3.5.
  • Clone your project to test the filters
  • I opened Powershell on Windows 10 as administrator
  • Go to the director of the project
  • Run Python step.py install
  • Run pandoc --filter ./examples/caps.py

But there was an error after I had run pandoc --filter ./examples/caps.py.
The error is

PS C:\Users\MyName\Downloads\pandoc-filter\pandocfilters-master\examples> pandoc --filter .\caps.py
abcd
^Z
pandoc.exe: Error running filter .\caps.py
C:\Users\MyName\Downloads\pandoc-filter\pandocfilters-master\examples\caps.py: createProcess: invalid argument (Exec format error)
PS C:\Users\MyName\Downloads\pandoc-filter\pandocfilters-master\examples>

And then, I checked my way again and again, it was still the same.
So, I asked google, but nobody had this error.

In the end, I ask you for help. Was anything forgot to write in the readme?

@jgm
Copy link
Owner

jgm commented Dec 22, 2016 via email

@greatkeke
Copy link
Author

Pandoc version: 1.17.2

Yes, it's the same in that occasion.

@sergiocorreia
Copy link
Contributor

Try the latest Pandoc (1.9). Had the same error and with 1.8 and 1.9 it's gone

@ickc
Copy link
Collaborator

ickc commented Jan 9, 2017

Try the latest Pandoc (1.9). Had the same error and with 1.8 and 1.9 it's gone

@kexxxfeng, he means 1.18 and 1.19. Anyway, it is always a good idea to use the latest versions of everything (in this case, pandocfilter and pandoc). Often bugs are already fixed in the latest version.

And also you might check out @sergiocorreia's alternative of pandocfilters — panflute. @jgm recommended this, and @sergiocorreia has ported the examples, including the caps.py you were trying.

And regarding your need to use GitHub checkbox, you might also want to see jgm/pandoc#3051, especially this comment by @jgm. He already made an example on what syntax to use (basically a span enclosing the checked/unchecked item). But note that the discussion over there isn't finalized.

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

4 participants