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

error output on arch linux #32

Open
muralikodali opened this issue Aug 30, 2020 · 6 comments
Open

error output on arch linux #32

muralikodali opened this issue Aug 30, 2020 · 6 comments
Assignees

Comments

@muralikodali
Copy link

i have installed pandoc with version 2.10.1 and compiled pandoc-csv2table with stack install.

when i tried to convert markdown file, i have got following error.

pandoc-csv2table: Error in $: Incompatible API versions: encoded with [1,21] but attempted to decode with [1,17,6,1].
CallStack (from HasCallStack):
  error, called at ./Text/Pandoc/JSON.hs:122:13 in pandoc-types-1.17.6.1-8Yg10sXqtRHaIqz1Kd7Bw:Text.Pandoc.JSON
Error running filter pandoc-csv2table:
Filter returned error status 1
@vmandela
Copy link
Collaborator

@muralikodali Thanks for reporting the issue. I will look into it.

@vmandela vmandela self-assigned this Sep 30, 2020
@vmandela
Copy link
Collaborator

vmandela commented Oct 1, 2020

@muralikodali The resolver specified in stack.yaml is old. It builds pandoc-csv2table with pandoc-types 1.17.x . pandoc-2.10.1 is using a later version of pandoc-types ?

Can you try installing pandoc-cvs2table with

$ stack install --resolver lts

@muralikodali
Copy link
Author

i have installed pandoc-csv2table with command $ stack install --resolver lts

Afterwards i ran pandoc-csv2table with pandoc.
Following is the output :

pandoc-csv2table: Error in $: Incompatible API versions: encoded with [1,21] but attempted to decode with [1,20].
CallStack (from HasCallStack):
  error, called at ./Text/Pandoc/JSON.hs:123:13 in pandoc-types-1.20-KULXNW36uYq4WUNF28rDyU:Text.Pandoc.JSON
Error running filter pandoc-csv2table:
Filter returned error status 1

@vmandela
Copy link
Collaborator

vmandela commented Oct 1, 2020

@muralikodali Thanks for the quick check. Arch Linux pandoc is built with a later version of pandoc-types compared to stack LTS version. Let me check if there is a workaround.

@1ut
Copy link

1ut commented Oct 24, 2020

Same issue on Mac:

This is the error message I received after executing pandoc --filter pandoc-csv2table -o test.html test.md

pandoc-csv2table: Error in $: Incompatible API versions: encoded with [1,22] but attempted to decode with [1,20].
CallStack (from HasCallStack):
  error, called at ./Text/Pandoc/JSON.hs:123:13 in pandoc-types-1.20-B08FvHAsQpQ43eJwPP9lMO:Text.Pandoc.JSON
Error running filter pandoc-csv2table:
Filter returned error status 1
make: *** [pdf] Error 83

pandoc version :

pandoc 2.11.0.4
Compiled with pandoc-types 1.22, texmath 0.12.0.3, skylighting 0.10.0.3,
citeproc 0.1.0.3, ipynb 0.1.0.1

I installed pandoc-csv2table by stack.

I'm new to haskell and have no time to review the cause of the error. I'd appreciate if someone can solve this problem.

@1ut
Copy link

1ut commented Oct 24, 2020

The problem was resolved by using stack instead of cabal to rebuild pandoc-csv2table and all the other dependencies, and removing cabal packages.

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