latex2myst course.tex course.md
Traceback (most recent call last):
File "/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/latex_to_myst/main.py", line 186, in <module>
main()
File "/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/latex_to_myst/main.py", line 182, in main
return pf.run_filter(action, doc=doc, finalize=finalize, prepare=prepare)
File "/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/panflute/io.py", line 227, in run_filter
return run_filters([action], *args, **kwargs)
File "/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/panflute/io.py", line 203, in run_filters
prepare(doc)
File "/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/latex_to_myst/main.py", line 161, in prepare
doc.walk(get_level)
File "/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/panflute/base.py", line 274, in walk
child = child.walk(action, doc, stop_if)
File "/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/panflute/containers.py", line 85, in walk
ans = list(chain.from_iterable(ans))
File "/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/panflute/containers.py", line 83, in <genexpr>
ans = ((item,) if type(item) is not list else item for item in ans)
File "/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/panflute/containers.py", line 81, in <genexpr>
ans = (item.walk(action, doc, stop_if) for item in self)
File "/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/panflute/base.py", line 274, in walk
child = child.walk(action, doc, stop_if)
File "/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/panflute/containers.py", line 85, in walk
ans = list(chain.from_iterable(ans))
File "/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/panflute/containers.py", line 83, in <genexpr>
ans = ((item,) if type(item) is not list else item for item in ans)
File "/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/panflute/containers.py", line 81, in <genexpr>
ans = (item.walk(action, doc, stop_if) for item in self)
File "/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/panflute/base.py", line 282, in walk
altered = action(self, doc)
File "/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/latex_to_myst/main.py", line 159, in get_level
block_levels[e] = level
TypeError: unhashable type: 'Image'
Error running filter /home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/latex_to_myst/main.py:
Filter returned error status 1
Traceback (most recent call last):
File "/home/pierre/.pyenv/versions/3.10.7/bin/latex2myst", line 8, in <module>
sys.exit(main())
File "/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/latex_to_myst/cli.py", line 106, in main
subprocess.run(
File "/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['pandoc', '/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/latex_to_myst/macros.tex', 'courseM1_PA_instabilities_turbulence.tex', '-o', 'course.md', '--filter', '/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/latex_to_myst/main.py', '-t', 'markdown+latex_macros', '--markdown-headings=atx', '--highlight-style', '/home/pierre/.pyenv/versions/3.10.7/lib/python3.10/site-packages/latex_to_myst/pygments.theme', '--standalone']' returned non-zero exit status 83.