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

With recent brew update; pandoc-sidenote no longer is working #19

Open
bugra opened this issue Jul 14, 2020 · 3 comments
Open

With recent brew update; pandoc-sidenote no longer is working #19

bugra opened this issue Jul 14, 2020 · 3 comments

Comments

@bugra
Copy link

bugra commented Jul 14, 2020

Hi,

Thanks for this blog template first. It is slick and very readable.

I updated pandoc through brew 2 days ago and it broke the build and now getting the following error:

RuntimeError: Pandoc died with exitcode "83" during conversion: b'[WARNING] Deprecated: --base-header-level. Use --shift-heading-level-by instead.\npandoc-sidenote: Error in $: Incompatible API versions: encoded with [1,21] but attempted to decode with [1,20].\nCallStack (from HasCallStack):\n  error, called at ./Text/Pandoc/JSON.hs:107:64 in pandoc-types-1.20-Azr3zp3CsDMiPqJ5OI8N8:Text.Pandoc.JSON\nError running filter pandoc-sidenote:\nFilter returned error status 1\n'

I tried downgrading pandoc, pandoc-crossref, but the error still persisted. My python version is 3.8.3 and pandoc is now 2.10.

@apas
Copy link
Owner

apas commented Aug 8, 2020

Good catch, thanks for reporting. I will investigate this.

@saahityaedams
Copy link

I had the same issue, something that worked for me was to not use brew for pandoc, pandoc-crossref and instead use the package installer for pandoc 2.9.2.1 and getting a pandoc-crossref binary that matches the above version.

@apas
Copy link
Owner

apas commented Aug 22, 2020

Overall, there are two issues: the deprecated --base-header-level option (not blocking) and pandoc-sidenote not being compiled for Pandoc 2.10.x (blocking.)

Fixing the first by changing

"--base-header-level=2",
to "--shift-heading-level-by=2", leads to the second one.

RuntimeError: Pandoc died with exitcode "83" during conversion:
b'pandoc-sidenote: Error in $: Incompatible API versions: encoded
with [1,21] but attempted to decode with [1,20].\nCallStack (from
HasCallStack):\n error, called at ./Text/Pandoc/JSON.hs:107:64 in
pandoc-types-1.20-Azr3zp3CsDMiPqJ5OI8N8:Text.Pandoc.JSON\nError
running filter pandoc-sidenote:\nFilter returned error status 1\n'

Latest Pandoc supported by pandoc-sidenote is 2.9.x. My understanding is that pandoc-sidenote is not actively maintained anymore (2.9 compatibility was written + PR'd by a collaborator) and until there's a fix, it's best to downgrade to a 2.9.x Pandoc.

I will look ways to ship athena with "pinned" Pandoc dependencies.

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

3 participants