question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

0.6.0: sphinx fails

See original GitHub issue

Looks like it is some issue with generate documentation

+ /usr/bin/sphinx-build -n -T -b man docs build/sphinx/man
Running Sphinx v4.5.0

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/sphinx/cmd/build.py", line 272, in build_main
    app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
  File "/usr/lib/python3.8/site-packages/sphinx/application.py", line 223, in __init__
    self.setup_extension(extension)
  File "/usr/lib/python3.8/site-packages/sphinx/application.py", line 380, in setup_extension
    self.registry.load_extension(self, extname)
  File "/usr/lib/python3.8/site-packages/sphinx/registry.py", line 438, in load_extension
    metadata = setup(app)
  File "/home/tkloczko/rpmbuild/BUILD/loguru-0.6.0/docs/_extensions/autodoc_stub_file.py", line 37, in setup
    docstring = get_module_docstring(stub_path)
  File "/home/tkloczko/rpmbuild/BUILD/loguru-0.6.0/docs/_extensions/autodoc_stub_file.py", line 21, in get_module_docstring
    with open(filepath) as file:
FileNotFoundError: [Errno 2] No such file or directory: '../loguru/__init__.pyi'

Exception occurred:
  File "/home/tkloczko/rpmbuild/BUILD/loguru-0.6.0/docs/_extensions/autodoc_stub_file.py", line 21, in get_module_docstring
    with open(filepath) as file:
FileNotFoundError: [Errno 2] No such file or directory: '../loguru/__init__.pyi'
The full traceback has been saved in /tmp/sphinx-err-261gg8q2.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
[tkloczko@devel-g2v SPECS]$ cat /tmp/sphinx-err-261gg8q2.log
# Sphinx version: 4.5.0
# Python version: 3.8.13 (CPython)
# Docutils version: 0.17.1 release
# Jinja2 version: 3.1.1
# Last messages:

# Loaded extensions:
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/sphinx/cmd/build.py", line 272, in build_main
    app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
  File "/usr/lib/python3.8/site-packages/sphinx/application.py", line 223, in __init__
    self.setup_extension(extension)
  File "/usr/lib/python3.8/site-packages/sphinx/application.py", line 380, in setup_extension
    self.registry.load_extension(self, extname)
  File "/usr/lib/python3.8/site-packages/sphinx/registry.py", line 438, in load_extension
    metadata = setup(app)
  File "/home/tkloczko/rpmbuild/BUILD/loguru-0.6.0/docs/_extensions/autodoc_stub_file.py", line 37, in setup
    docstring = get_module_docstring(stub_path)
  File "/home/tkloczko/rpmbuild/BUILD/loguru-0.6.0/docs/_extensions/autodoc_stub_file.py", line 21, in get_module_docstring
    with open(filepath) as file:
FileNotFoundError: [Errno 2] No such file or directory: '../loguru/__init__.pyi'

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
Delgancommented, May 27, 2022

Thanks for the additional information. I just wanted to give a short term workaround but it will be fixed so that it works in any case.

0reactions
Delgancommented, May 28, 2022

Fixed on master branch. 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

0.6.0: sphinx 4.x failds on render `sphinx-panels` module ... - GitHub
Describe the problem Looks like sphinx 4.x failds on render sphinx-panels module documentation. + /usr/bin/python3 setup.py build_sphinx -b man --build-dir ...
Read more >
my sphinx rtd themed documentation builds locally, fails ...
sphinx -autobuild works great locally. I send my project to github with sphinx documentation (as .md files) within the /docs folder. Post to...
Read more >
Configuration - Sphinx documentation
The default language to highlight source code in. The default is 'default' . It is similar to 'python3' ; it is mostly a...
Read more >
sphinx-panels - PyPI
A sphinx extension for creating document components optimised for HTML+CSS. The panels directive creates panels of content in a grid layout, utilising both...
Read more >
sphinx-toolbox
If the file can't be found an error will be shown in the build output: ... Changed in version 0.6.0: Moved from sphinx_toolbox.autoprotocol....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found