-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
No module named 'nbsphinx' #7665
Comments
I reran the build using the old branch that was working before and that also failed. |
I moved nbsphinx into the conda dependencies instead of pip and the build worked. I also have sphinx pinned to an earlier version, but it isn't respecting that... it is using 3.2.1 instead of what I have in there - 3.1.1. I think this is a bug. |
I looked at your build logs and it is the same behavior. You have |
Then it would good to know why using conda solved your problem, bur not mine. Maybe I dig into this sometimes on the weekend. |
@aaronmarkham see #3829 for that problem. |
I'll keep open the other issue to track the other problem with the import error |
The core issue I had was the pip problem - it was installing nbsphinx and not finding it later. I don't know why moving nbsphinx to conda would work, but it did. This isn't a viable solution for everyone or every dependency though. I'm concerned that there is still a bug here, and if I require a pip package that's not on conda too, I'll be stuck. 3829 explains why it didn't load v3.1.1 of Sphinx though... this is more of an annoyance... the pip problem is kind of a big deal. |
I was referring to #7663 |
In case it works for someone... I also had this problem and I installed everything with conda. I fixed it by updating sphinx. |
Details
Expected Result
A successful build using nbsphinx.
This worked 3 weeks ago on a different branch, but I just merged to master and the new build didn't work.
Actual Result
So it gets the module when preparing the container...
But when Sphinx is running later it gets this error:
Could not import extension nbsphinx (exception: No module named 'nbsphinx')
This points to my environment file:
https://github.com/aws/amazon-sagemaker-examples/blob/website/.readthedocs.yml
Which is here:
https://github.com/aws/amazon-sagemaker-examples/blob/website/environment.yml#L3
Where I specify
nbsphinx
The text was updated successfully, but these errors were encountered: