-
Notifications
You must be signed in to change notification settings - Fork 572
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 export fails for HTML & PDF on macOS with Python-Homebrew-Installation #1773
Comments
The issue is still present in v7.0.0rc1! |
I have the same issue, hope can get solution soon :D |
The error does also occur when using a venv. Every Python environment I use is based on a homebrew installation. Does anybody know if this is a homebrew-specific error or does anybody also experience this on non-homebrew installations of Python on macOS? What is your installation method and OS? @hyt658 |
I installed via homebrew as well |
Any updates on this? |
6.5.1 does not change anything... |
Any updates on it? I found a tmp workaround And this bug breaks my projects test |
As mentionned in the last linked issue, i am getting the error after jupyter has been installed using 'pip install jupyter --prefix=XXXX'. Templates are properly installed, but in XXXX/jupyter/share/nbconvert/templates, and i guess they are searched in PYTHON_ROOT/share/... ? |
In my case, this is 'fixed' by adding root_dirs.append(os.path.abspath(os.path.join(ROOT, "..", "..", "..", "..", "share", "jupyter"))) to get_prefix_root_dirs() in nbconvert/exporters/templateexporter.py. Worst case, this adds a folder that is a duplicate of PYTHON_ROOT/share/jupyter if it is a standard install. A 'smart' condition could be added to avoid adding it if we detect that we are installed in python folder. Or this path could replace PYTHON_ROOT/share/jupyter in the list alltogether? |
Still having this issue with the most recent version with M1 Mac and home-brew. Not sure if there are any known fixes? |
For issue nbconvert jupyter#1773. Look for the standard templates folder using their expected relative path compared to the existing script. When jupyter is installed using pip install jupyter --prefix=XXX, root_dirs did not contain XXX/share/jupyter as candidate. Maybe even jupyter_path() should be updated instead to potentially fix other places? I don't know the project enough to decide
Extending the JUPYTER_PATH with export JUPYTER_PATH=/opt/homebrew/share/jupyter:$JUPYTER_PATH |
@kgrodzicki Thanks, that fixes the problem, but not the cause. |
@kgrodzicki the workaround helped me! Thanks! |
Description
I want to export a pdf of my jupyter notebook (.ipynb) file, but this doesn't work, as it can't resolve the template_path.
Stacktrace:
Can you list steps to reproduce this issue?
Try to export a file using
nbconvert
on macOS.Environment Data:
The text was updated successfully, but these errors were encountered: