-
Notifications
You must be signed in to change notification settings - Fork 130
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
Import error (jupyter_client missing) on notebook execution #311
Comments
Hmmm ... error message says I don't know what's going wrong here. I normally install What happens if you execute your notebook directly with
|
Hi, thanks for making me feel a bit more sane (this kept me scratching my head yesterday) :)
I am quite content with not executing the notebooks at the moment: |
This seems to be the only difference, did you try this with
|
Yes, I tried that as well: No change. |
Is it possible that you have different versions of Python installed? How are you running Sphinx/ Are you using |
tl;dr: I found a solution which works.
Yes
I am using one of the conda environments for compiling the doc.
How could I check? My build method
I haven't given this any thought:
This worked fine for me until now and was very convinient. Alternative build methodFollowing the direction of your questions I spend a few minutes on another build process.
Caveat: |
I guess you'll have to find out which Python executable is used by the RST preview extension and how to install packages for it. In case of doubt you should ask the makers of the RST preview.
I think the simplest way to check is to add some code to your import sys
print('My Python version:', sys.version)
print('My Python executable:', sys.executable) However, if the terminal output is somehow swallowed by the RST extension, you might not see the relevant lines. In this case you could try to write the information to a temporary file and look at the file after running the preview. |
I cannot compile my SPHINX documentation when I try to include a notebook without any cell output.
Error log
(
jupyter_client
is installed, see below)Workaround
After a lot of head scratching I realised the problem seems to be related to the automatic execution of the noetbook, therefore I tried:
nbsphinx_execute = 'never'
inconf.py
Which both result in the documentation to be created without any problems.
System and installed packages
conda
environmentconda-forge
The text was updated successfully, but these errors were encountered: