Issues in Python 3.6.5
Evidlo opened this issue · 1 comments
Evidlo commented
It seems that pandocfilters has problems with Python 3.6.5.
[evan@blackbox examples] python --version
Python 3.6.5
[evan@blackbox examples] pip freeze | grep pandocfilter
pandocfilters==1.4.2
[evan@blackbox examples] ~/resources/pandoc-2.2.2.1/bin/pandoc test.md -t json --filter ./caps.py
Error running filter ./caps.py:
Error in $: Failed reading: satisfy
The same filter works fine in Python 2.7.
[evan@blackbox examples] python --version
Python 2.7.15
[evan@blackbox examples] pip freeze | grep pandocfilter
pandocfilters==1.4.2
[evan@blackbox examples] ~/resources/pandoc-2.2.2.1/bin/pandoc test.md --filter ./caps.py
<h1 id="hello">HELLO</h1>
<p>WORLD</p>
Both examples were run with the latest release of pandoc. test.md
is include below.
# hello
world
jgm commented
Strange. It works for me, with both python versions,
so I'm not sure what might be going on.
Are ryou sure that the same version of pandocfilters
is installed for python2 and python3?
(On my system, pip is python2 and pip3 is python3.)
Evan Widloski <notifications@github.com> writes:
… It seems that pandocfilters has problems with Python 3.6.5.
``` bash
***@***.*** examples] python --version
Python 3.6.5
***@***.*** examples] pip freeze | grep pandocfilter
pandocfilters==1.4.2
***@***.*** examples] ~/resources/pandoc-2.2.2.1/bin/pandoc test.md -t json --filter ./caps.py
Error running filter ./caps.py:
Error in $: Failed reading: satisfy
```
The same filter works fine in Python 2.7.
``` bash
***@***.*** examples] python --version
Python 2.7.15
***@***.*** examples] pip freeze | grep pandocfilter
pandocfilters==1.4.2
***@***.*** examples] ~/resources/pandoc-2.2.2.1/bin/pandoc test.md --filter ./caps.py
<h1 id="hello">HELLO</h1>
<p>WORLD</p>
```
Both examples were run with the latest release of pandoc. `test.md` is include below.
``` markdown
# hello
world
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#70