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

Traceback error on panzer invocation #27

Closed
mhminai opened this issue Jan 6, 2017 · 3 comments
Closed

Traceback error on panzer invocation #27

mhminai opened this issue Jan 6, 2017 · 3 comments

Comments

@mhminai
Copy link

mhminai commented Jan 6, 2017

I updated panzer today using the call pip3 install --upgrade git+https://github.com/msprev/panzer. When I run panzer now it gives me a traceback error:

Traceback (most recent call last):
  File "/usr/local/bin/panzer", line 11, in <module>
    load_entry_point('panzer==1.1', 'console_scripts', 'panzer')()
  File "/usr/local/lib/python3.6/site-packages/panzer/panzer.py", line 40, in main
    global_styledef, local_styledef = load.load_all_styledefs(doc.options)
  File "/usr/local/lib/python3.6/site-packages/panzer/load.py", line 58, in load_all_styledefs
    global_styledef = load_styledef(support_dir, options)
  File "/usr/local/lib/python3.6/site-packages/panzer/load.py", line 134, in load_styledef
    return meta.get_metadata(ast)
  File "/usr/local/lib/python3.6/site-packages/panzer/meta.py", line 176, in get_metadata
    metadata = ast['meta']
TypeError: list indices must be integers or slices, not str

I had updated my python using brew upgrade, not sure if that could be the cause of the problem.

@mhminai
Copy link
Author

mhminai commented Jan 6, 2017

Am on pandoc 1.17.0.2, that is probably it. Sorry for the false alarm. Shall check and close this issue if that is the case.

@msprev
Copy link
Owner

msprev commented Jan 6, 2017

It looks like that to me... The ast format was changed in pandoc 18.

@mhminai
Copy link
Author

mhminai commented Jan 6, 2017

Confiming that the problem does not happen with pandoc 1.19.1 which is currently the latest version of pandoc

@mhminai mhminai closed this as completed Jan 6, 2017
msprev pushed a commit that referenced this issue Jan 12, 2017
…dded panzer compatibility mode for pandoc versions <1.18. All version of pandoc >1.12.1 should work with panzer now.
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