Skip to content

FileNotFoundError for -lowercase.rst when building docs locally #17752

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

Closed
joshuacwnewton opened this issue Jun 26, 2020 · 1 comment
Closed

Comments

@joshuacwnewton
Copy link
Contributor

joshuacwnewton commented Jun 26, 2020

Describe the bug

Building the documentation raises a FileNotFound error.

Steps/Code to Reproduce

  • Checkout 563257a (or any recent commit, but this was where I branched from when I encountered the error)
  • cd doc
  • make

Expected Results

The documentation builds successfully.

Actual Results

Traceback (most recent call last):
  File "/home/joshua/repos/scikit-learn/venv/lib/python3.8/site-packages/sphinx/events.py", line 110, in emit
    results.append(listener.handler(self.app, *args))
  File "/home/joshua/repos/scikit-learn/doc/sphinxext/custom_autosummary_new_suffix.py", line 60, in process_generate_options_custom_files
    process_generate_options(app)
  File "/home/joshua/repos/scikit-learn/venv/lib/python3.8/site-packages/sphinx/ext/autosummary/__init__.py", line 756, in process_generate_options
    generate_autosummary_docs(genfiles, suffix=suffix, base_path=app.srcdir,
  File "/home/joshua/repos/scikit-learn/venv/lib/python3.8/site-packages/sphinx/ext/autosummary/generate.py", line 388, in generate_autosummary_docs
    items = find_autosummary_in_files(sources)
  File "/home/joshua/repos/scikit-learn/venv/lib/python3.8/site-packages/sphinx/ext/autosummary/generate.py", line 450, in find_autosummary_in_files
    with open(filename, encoding='utf-8', errors='ignore') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/joshua/repos/scikit-learn/doc/modules/generated/sklearn.covariance.oas-lowercase.rst'

Versions

System:
    python: 3.8.2 (default, Apr 27 2020, 15:53:34)  [GCC 9.3.0]
executable: /home/joshua/repos/scikit-learn/venv/bin/python
   machine: Linux-5.4.0-7634-generic-x86_64-with-glibc2.29
Python dependencies:
          pip: 20.1.1
   setuptools: 47.3.1
      sklearn: 0.24.dev0
        numpy: 1.18.5
        scipy: 1.4.1
       Cython: 0.29.20
       pandas: 1.0.5
   matplotlib: 3.2.2
       joblib: 0.15.1
threadpoolctl: 2.1.0
Built with OpenMP: True

Suspected cause

I believe this has to do with the recent changes made by #13022. But, I'm running into a different error than what @jnothman has pointed out.

@joshuacwnewton
Copy link
Contributor Author

joshuacwnewton commented Jun 26, 2020

Apologies, I had previously built the documentation and not removed the previous build files. Running make clean then rebuilding results in no error. Please disregard this issue.

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

1 participant