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

FileNotFoundError: [Errno 2] No such file or directory: './_build/html/preprocessing.html' #81

Closed
vidyap-xgboost opened this issue Jul 14, 2020 · 3 comments

Comments

@vidyap-xgboost
Copy link
Contributor

vidyap-xgboost commented Jul 14, 2020

I'm trying to run unit tests on my Ubuntu 18.04

I keep getting this error when I run ./check.sh:

Format code.
All done! ✨ 🍰 ✨
6 files left unchanged.
All done! ✨ 🍰 ✨
6 files left unchanged.
Update documentation.
/bin/sh: 1: sphinx-build: not found
Makefile:19: recipe for target 'html' failed
make: *** [html] Error 127
Traceback (most recent call last):
  File "./to_docusaurus.py", line 143, in <module>
    to_md(in_html_filename, out_md_filename, id, title, hide_title)
  File "./to_docusaurus.py", line 88, in to_md
    with open(in_html_filepath, "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: './_build/html/preprocessing.html'

This is the file its running: to_docusaurus.py

I did pull the latest code.
Is that particular file moved to somewhere else?

@jbesomi
Copy link
Owner

jbesomi commented Jul 14, 2020

Hey!

The problem arises there: /bin/sh: 1: sphinx-build: not found.

sphinx-build it's executed from the command line and is used to create the documentation. In theory (correct me if I'm wrong), this should be installed automatically when sphinx is installed with pip (pip install -U sphinx).

For solving your issue:

  1. Check from the command line that sphinx-build execute (i.e is correctly installed)
  2. If not, try to update sphinx and try again (pip install -U sphinx)
  3. If it does still not work, it probably means your $path is not correctly update and sphinx-build is not present
  4. Once fixed, ./check.sh should work (hopefully)

Please let me know how it goes! For you to know, we will have to update CONTRIBUTING.md to make everything more clear. Also, look at #40, soon we will have to move from Docusaurus to Sphinx. If you are interested in collaborating with this very important task let me know! We can do it together if you wish πŸ‘

@vidyap-xgboost
Copy link
Contributor Author

vidyap-xgboost commented Jul 15, 2020

Yes, it was a problem with my $path and once I fixed it, ./check.sh worked!

Thank you!

@jbesomi
Copy link
Owner

jbesomi commented Jul 15, 2020

Great you solved! :)

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

2 participants