Skip to content

make html bug origin? #13473

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

Open
Cperigois opened this issue Apr 8, 2025 · 3 comments
Open

make html bug origin? #13473

Cperigois opened this issue Apr 8, 2025 · 3 comments
Labels
awaiting:response Waiting for a response from the author of this issue type:bug

Comments

@Cperigois
Copy link

Cperigois commented Apr 8, 2025

Describe the bug

Dear developpers, I get this issue while compiling my documentation. I'm quite convinced it comes from my programm, but the report issue, gives me no clues where this bug comes from. Do you have any idea of what would cause this error?

Thank you very much :)

How to Reproduce

(BBlack) perigois@coconut:~/PycharmProjects/BBlack/docs$ make html
Running Sphinx v7.4.7
Sphinx is using sys.path: ['/home/perigois/PycharmProjects/BBlack/docs/src/BBlack', '/home/perigois/PycharmProjects/BBlack/docs', '/home/perigois/anaconda3/envs/BBlack/bin', '/home/perigois/anaconda3/envs/BBlack/lib/python310.zip', '/home/perigois/anaconda3/envs/BBlack/lib/python3.10', '/home/perigois/anaconda3/envs/BBlack/lib/python3.10/lib-dynload', '/home/perigois/anaconda3/envs/BBlack/lib/python3.10/site-packages', '/home/perigois/PycharmProjects/BBlack/src']
loading translations [en]... done
building [mo]: targets for 0 po files that are out of date
writing output... 
building [html]: targets for 2 source files that are out of date
updating environment: [new config] 2 added, 0 changed, 0 removed
Loading BBlack.cosmology.cosmology

Exception occurred:
  File "/home/perigois/anaconda3/envs/BBlack/lib/python3.10/site-packages/docutils/transforms/misc.py", line 108, in visit_transition
    assert (isinstance(node.parent, nodes.document)
AssertionError
The full traceback has been saved in /tmp/sphinx-err-8pggvga8.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!
Makefile:20: recipe for target 'html' failed
make: *** [html] Error 2

Environment Information

Sphinx v7.4.7

Sphinx extensions

Additional context

No response

@timhoffm
Copy link
Contributor

timhoffm commented Apr 8, 2025

The full traceback has been saved in /tmp/sphinx-err-8pggvga8.log

Do you have the full traceback?

@AA-Turner AA-Turner added the awaiting:response Waiting for a response from the author of this issue label Apr 8, 2025
@Cperigois
Copy link
Author

Cperigois commented Apr 9, 2025

Many thanks for your reply.

The code can be found there in the new-structure-2.0 branch : https://github.com/Cperigois/BBlack/tree/new-structure-2.0
there you may find all the files related to the documentation computation : BBlack/docs/source/

Here is the content of the report file :

# Platform:         linux; (Linux-5.4.15-050415-generic-x86_64-with-glibc2.27)
# Sphinx version:   7.4.7
# Python version:   3.10.16 (CPython)
# Docutils version: 0.20.1
# Jinja2 version:   3.1.6
# Pygments version: 2.19.1

# Last messages:
#   writing output...
#   
#   building [html]: targets for 2 source files that are out of date
#   updating environment:
#   [new config]
#   2 added, 0 changed, 0 removed
#   
#   reading sources... [ 50%]
#   doc
#   

# Loaded extensions:
#   sphinx.ext.mathjax (7.4.7)
#   alabaster (0.7.16)
#   sphinxcontrib.applehelp (1.0.8)
#   sphinxcontrib.devhelp (1.0.6)
#   sphinxcontrib.htmlhelp (2.0.5)
#   sphinxcontrib.serializinghtml (1.1.10)
#   sphinxcontrib.qthelp (1.0.7)
#   sphinx.ext.autodoc.preserve_defaults (7.4.7)
#   sphinx.ext.autodoc.type_comment (7.4.7)
#   sphinx.ext.autodoc.typehints (7.4.7)
#   sphinx.ext.autodoc (7.4.7)
#   sphinxcontrib.jquery (4.1)
#   sphinx_rtd_theme (unknown version)
#   nbsphinx (0.9.3)
#   sphinx.ext.viewcode (7.4.7)
#   sphinx.ext.napoleon (7.4.7)
#   sphinx.ext.autosectionlabel (7.4.7)

# Traceback:
Traceback (most recent call last):
  File "/home/perigois/anaconda3/envs/BBlack/lib/python3.10/site-packages/sphinx/cmd/build.py", line 337, in build_main
    app.build(args.force_all, args.filenames)
  File "/home/perigois/anaconda3/envs/BBlack/lib/python3.10/site-packages/sphinx/application.py", line 378, in build
    self.builder.build_update()
  File "/home/perigois/anaconda3/envs/BBlack/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 297, in build_update
    self.build(to_build,
  File "/home/perigois/anaconda3/envs/BBlack/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 318, in build
    updated_docnames = set(self.read())
  File "/home/perigois/anaconda3/envs/BBlack/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 425, in read
    self._read_serial(docnames)
  File "/home/perigois/anaconda3/envs/BBlack/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 477, in _read_serial
    self.read_doc(docname)
  File "/home/perigois/anaconda3/envs/BBlack/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 536, in read_doc
    publisher.publish()
  File "/home/perigois/anaconda3/envs/BBlack/lib/python3.10/site-packages/docutils/core.py", line 236, in publish
    self.apply_transforms()
  File "/home/perigois/anaconda3/envs/BBlack/lib/python3.10/site-packages/docutils/core.py", line 216, in apply_transforms
    self.document.transformer.apply_transforms()
  File "/home/perigois/anaconda3/envs/BBlack/lib/python3.10/site-packages/sphinx/transforms/__init__.py", line 93, in apply_transforms
    super().apply_transforms()  # type: ignore[misc]
  File "/home/perigois/anaconda3/envs/BBlack/lib/python3.10/site-packages/docutils/transforms/__init__.py", line 182, in apply_transforms
    transform.apply(**kwargs)
  File "/home/perigois/anaconda3/envs/BBlack/lib/python3.10/site-packages/docutils/transforms/misc.py", line 98, in apply
    self.visit_transition(node)
  File "/home/perigois/anaconda3/envs/BBlack/lib/python3.10/site-packages/docutils/transforms/misc.py", line 108, in visit_transition
    assert (isinstance(node.parent, nodes.document)
AssertionError

Many thanks in advance for your help :)

@Cperigois
Copy link
Author

Sorry, for the unreadable markdown ^^" here is the content of the error report file

error_report_sphinx.txt

@Cperigois Cperigois reopened this Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting:response Waiting for a response from the author of this issue type:bug
Projects
None yet
Development

No branches or pull requests

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy