-
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
"[Errno 2] No such file or directory" when a subdirectory is added #6
Comments
Thanks for the report! The bizarre behavior you're reporting (which I also found a bit strange) is actually the expected behavior, AFAIK. Sphinx parses all source files in the source directory and its subdirectories, regardless if they are used in a To avoid unnecessary parsing and executing, you can add the unwanted files to The actual error message you are mentioning is due to some differences in path handling between Unix and Windows. I don't know if the Sphinx version has anything to do with it. Can you please check if #7 works for you on Windows? The result on readthedocs.org should be correct anyway, right?
Is it not clear from http://nbsphinx.readthedocs.org/en/latest/usage.html#Running-Sphinx? It actually doesn't matter if you use |
As mentioned on #7 that fixed the problem, thanks. I am having a few remaining problems on the windows side such as plots not showing up (%5C rather than slash in links to .PNG files --- is there another place for a " os,sep to '/' " fix? ) But things do render correctly on readthedocs so I'm not that concerned.. I'll be back with a few short followup questions on build strategies (e.g. with notebooks outside the source directory) and a bit more info on those remaining windows problems (in case it's useful to anybody in similar predicament) but I need to process and experiment a bit first. Thanks for the fast problem solving! |
I'm glad that one of the problems is solved now! Please create further issues for anything that doesn't work as expected. The difference of path separator between Unix and Windows is often a source for problems ... sadly, there are no more |
Can you please check if #10 helps with your wrong links to PNGs? |
Thanks for testing! |
Thanks for nbsphinx, this is going to be a really useful time-saving tool.
I am however running into an error that is causing me lots of confusion
The log file is here (had to change .log to .txt to attach):
sphinx-err-28u403cp.txt
You can see the simple folder structure I have on nbsphinx_mytest repo -- displaying (now incorrectly) at http://nbsphinx-mytest.readthedocs.org/) that my ```index.rst''' is basically just:
and I have a single
notebook2.ipynb
(with a plot) inside the notebooks folder inside the source folder.The extra bizarre thing about this is that even after I strip my
index.rst
of the glob and any reference to the subdirectory, so it's now nothing more than:and I then rebuild (even after deleting the earlier build directory) I the same error now persists on a new build. It is as if nbsphinx is searching subfolders whether instructed to the earlier error is not being cleared out.
It may be relevant that it now says running Sphinx v1.3.4. Could that be a problem (because I'm pretty sure I'd not encountered this problem before when I was running similar experiments with subdirectories on v1.3.3). Worth noting that I'm now getting a similar type error when I clone this nbsphinx repo and run your examples with
sphinx-build . build
(it wasn't clear from the instructions if that's the right way).The text was updated successfully, but these errors were encountered: