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

nbconvert failed: CalledProcessError(-4, ['pandoc', '-v']) #3553

Closed
chenhaiying1 opened this issue Oct 23, 2024 · 1 comment
Closed

nbconvert failed: CalledProcessError(-4, ['pandoc', '-v']) #3553

chenhaiying1 opened this issue Oct 23, 2024 · 1 comment
Labels

Comments

@chenhaiying1
Copy link

[E 2024-10-23 09:28:00.719 ServerApp] nbconvert failed: CalledProcessError(-4, ['pandoc', '-v'])
Traceback (most recent call last):
File "/opt/conda/lib/python3.11/site-packages/jupyter_server/nbconvert/handlers.py", line 135, in get
output, resources = await run_sync(
^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 859, in run
result = context.run(func, args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/jupyter_server/nbconvert/handlers.py", line 136, in
lambda: exporter.from_notebook_node(nb, resources=resource_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nbconvert/exporters/pdf.py", line 184, in from_notebook_node
latex, resources = super().from_notebook_node(nb, resources=resources, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nbconvert/exporters/latex.py", line 92, in from_notebook_node
return super().from_notebook_node(nb, resources, *kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 424, in from_notebook_node
output = self.template.render(nb=nb_copy, resources=resources)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/jinja2/environment.py", line 1304, in render
self.environment.handle_exception()
File "/opt/conda/lib/python3.11/site-packages/jinja2/environment.py", line 939, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/opt/conda/share/jupyter/nbconvert/templates/latex/index.tex.j2", line 8, in top-level template code
((
extends cell_style ))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/share/jupyter/nbconvert/templates/latex/style_jupyter.tex.j2", line 176, in top-level template code
\prompt{(((prompt)))}{(((prompt_color)))}{(((execution_count)))}{(((extra_space)))}
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/share/jupyter/nbconvert/templates/latex/base.tex.j2", line 7, in top-level template code
((
- extends 'document_contents.tex.j2' -
))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/share/jupyter/nbconvert/templates/latex/document_contents.tex.j2", line 51, in top-level template code
((- block figure scoped -))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/share/jupyter/nbconvert/templates/latex/display_priority.j2", line 5, in top-level template code
((- extends 'null.j2' -))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/share/jupyter/nbconvert/templates/latex/null.j2", line 30, in top-level template code
((- block body -))
File "/opt/conda/share/jupyter/nbconvert/templates/latex/base.tex.j2", line 222, in block 'body'
((( super() )))
File "/opt/conda/share/jupyter/nbconvert/templates/latex/null.j2", line 32, in block 'body'
((- block any_cell scoped -))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/share/jupyter/nbconvert/templates/latex/null.j2", line 85, in block 'any_cell'
((- block markdowncell scoped-)) ((- endblock markdowncell -))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/share/jupyter/nbconvert/templates/latex/document_contents.tex.j2", line 68, in block 'markdowncell'
((( cell.source | citation2latex | strip_files_prefix | convert_pandoc('markdown+tex_math_double_backslash', 'json',extra_args=[]) | resolve_references | convert_explicitly_relative_paths | convert_pandoc('json','latex'))))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nbconvert/filters/pandoc.py", line 36, in convert_pandoc
return pandoc(source, from_format, to_format, extra_args=extra_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nbconvert/utils/pandoc.py", line 50, in pandoc
check_pandoc_version()
File "/opt/conda/lib/python3.11/site-packages/nbconvert/utils/pandoc.py", line 98, in check_pandoc_version
v = get_pandoc_version()
^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nbconvert/utils/pandoc.py", line 77, in get_pandoc_version
out = subprocess.check_output(["pandoc", "-v"]) # noqa: S607, S603
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['pandoc', '-v']' died with <Signals.SIGILL: 4>.
[W 2024-10-23 09:28:00.722 ServerApp] 500 GET /user/[email protected]/nbconvert/pdf/Untitled.ipynb?download=true (::ffff:10.101.2.51): nbconvert failed: Command '['pandoc', '-v']' died with <Signals.SIGILL: 4>.

@manics manics added support and removed bug labels Oct 23, 2024
Copy link

Hi there @chenhaiying1 👋!

I closed this issue because it was labelled as a support question.

Please help us organize discussion by posting this on the https://discourse.jupyter.org/ forum. If it's your first time posting
please read https://discourse.jupyter.org/t/getting-good-answers-to-your-questions/1825.
The more information you provide the more likely we can help you.

Our goal is to sustain a positive experience for both users and developers. We use GitHub issues for specific discussions related to changing a repository's content, and let the forum be where we can more generally help and inspire each other.

Thanks you for being an active member of our community! ❤️

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants