-
Notifications
You must be signed in to change notification settings - Fork 6
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 running filter pandoc_filter.py #82
Comments
However, this should not have anything to do with not finding python. It is even not clear to me why it tries. I will try to reproduce it and report back. |
@prtome I am unable to reproduce this error (also on macOS). Can you provide some details on the installed versions
If I understand the mechanisms of |
pypandoc: 1.7.2 jupyter --version I am quite new to notebooks - i have done all the installations (Jupiter, pandoc etc, even the latest python, latex) in march/april. which python gives no result i have aliased python to python3 The last update of macOS (12.3.1) got rid of the python2 installation from apple, so now the python3 is the only one. |
This may be a problem. I dig into to the
|
I like jupyter-docx-bundler because i want to hide the source code - not having to manually delete it everytime. so I will find out ow to make which work. but which does not work - i will try to find out what is going on. Thanks |
I found out - here is what happens. There is no more /usr/bin/python - it was symlinked to python2 |
Glad, you figured it out |
Describe the bug
I just run jupyter nbconvert --execute --to=docx TOTO.ipynb --output toto.docx
and I obtain the following Traceback
[NbConvertApp] Converting notebook TOTO.ipynb to docx
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/bin/jupyter-nbconvert", line 8, in
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/jupyter_core/application.py", line 264, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/traitlets/config/application.py", line 846, in launch_instance
app.start()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/nbconvert/nbconvertapp.py", line 361, in start
self.convert_notebooks()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/nbconvert/nbconvertapp.py", line 533, in convert_notebooks
self.convert_single_notebook(notebook_filename)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/nbconvert/nbconvertapp.py", line 498, in convert_single_notebook
output, resources = self.export_single_notebook(notebook_filename, resources, input_buffer=input_buffer)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/nbconvert/nbconvertapp.py", line 427, in export_single_notebook
output, resources = self.exporter.from_filename(notebook_filename, resources=resources)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/nbconvert/exporters/exporter.py", line 190, in from_filename
return self.from_file(f, resources=resources, **kw)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/nbconvert/exporters/exporter.py", line 208, in from_file
return self.from_notebook_node(nbformat.read(file_stream, as_version=4), resources=resources, **kw)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/jupyter_docx_bundler/init.py", line 79, in from_notebook_node
converters.notebookcontent_to_docxbytes(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/jupyter_docx_bundler/converters.py", line 298, in notebookcontent_to_docxbytes
pypandoc.convert_file(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pypandoc/init.py", line 150, in convert_file
return _convert_input(source_file, format, 'path', to, extra_args=extra_args,
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pypandoc/init.py", line 351, in _convert_input
raise RuntimeError(
RuntimeError: Pandoc died with exitcode "83" during conversion: Error running filter /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/jupyter_docx_bundler/pandoc_filter.py:
Could not find executable python
PYTHON is python3 - does jupyter-docx-bundler need a specific alias for python?
Desktop (please complete the following information):
all packages installed in march/april
pandoc --version
Pandoc 2.17.1.1
Compiled with pandoc-types 1.22.1, texmath 0.12.4, skylighting 0.12.2,
citeproc 0.6.0.1, ipynb 0.2
Additional context
pandoc TOTO.ipynb -s -o new_word_file.docx works perfectly
The text was updated successfully, but these errors were encountered: