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

ValueError: No template sub-directly with the name 'script'... when running tutorial build #1541

Open
stefwrite opened this issue Nov 12, 2021 · 5 comments

Comments

@stefwrite
Copy link

When following the tutorial steps on macOS 12.0.1 and attempting to build content for the first time, I got a traceback with this message:

ValueError: No template sub-directory with name 'script' found in the following paths:
/Users/swatson/Library/Jupyter
/Users/swatson/Library/Python/3.9/share/jupyter
/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/share/jupyter
/usr/local/share/jupyter
/usr/share/jupyter

The build failed, and I didn't know what do to do resolve this. I've attached the log from the build run.

sphinx-err-39vy6rw3.log

@welcome
Copy link

welcome bot commented Nov 12, 2021

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

@shawwn
Copy link

shawwn commented Jan 28, 2022

I ran into the exact same error, and I happened to figure out a workaround:

ln -s  /opt/homebrew/share/jupyter ~/Library/Python/3.9/share/jupyter

I figured this out by running pip3 uninstall nbconvert and then observing that it would uninstall template files underneath /opt/homebrew/share/jupyter/nbconvert/templates/.... So then I reasoned that the /opt/homebrew/share/jupyter directory can't be found by Sphinx for some reason.

I'm not sure what the correct solution is, but this seems to work for now.

@chrisjsewell
Copy link
Member

Heya, yeh that is a strange one, that I don't have an obvious fix for.
I'd note though that in executablebooks/MyST-NB#380 I'm removing the dependency on nbconvert, so hopefully this should then no longer be an issue 🤞

@sheharbano96
Copy link

I'm having the same issue as @stefwrite and I tried using @shawwn 's solution but it isn't working for me. Still getting the same error. Any idea what is causing it?

@Sibylse
Copy link

Sibylse commented Jun 24, 2022

@shawwn' suggestion didn't work directly, but
ln -s /opt/homebrew/share/jupyter/nbconvert ~/Library/Jupyter
did the trick for me. I searched for the templates folder to get the path. I guess the problem is related to this one?

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

5 participants