-
-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Labels
dependenciesDependencies and packagesDependencies and packagesdocumentationImprovements or additions to documentationImprovements or additions to documentationfixedBug has been resolvedBug has been resolved
Description
Latest versions of BeautifulSoup4 is not compatible with Ultralytics Docs builds.
Affects BeautifulSoup4==4.13.4 also
python docs/build_docs.py
ERROR - Error building page 'index.md': list index out of range
Traceback (most recent call last):
File "/Users/glennjocher/PycharmProjects/.venv/bin/mkdocs", line 8, in <module>
sys.exit(cli())
^^^^^
File "/Users/glennjocher/PycharmProjects/.venv/lib/python3.12/site-packages/click/core.py", line 1161, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/glennjocher/PycharmProjects/.venv/lib/python3.12/site-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/glennjocher/PycharmProjects/.venv/lib/python3.12/site-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/glennjocher/PycharmProjects/.venv/lib/python3.12/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/glennjocher/PycharmProjects/.venv/lib/python3.12/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/glennjocher/PycharmProjects/.venv/lib/python3.12/site-packages/mkdocs/__main__.py", line 288, in build_command
build.build(cfg, dirty=not clean)
File "/Users/glennjocher/PycharmProjects/.venv/lib/python3.12/site-packages/mkdocs/commands/build.py", line 337, in build
_build_page(
File "/Users/glennjocher/PycharmProjects/.venv/lib/python3.12/site-packages/mkdocs/commands/build.py", line 226, in _build_page
output = config.plugins.on_post_page(output, page=page, config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/glennjocher/PycharmProjects/.venv/lib/python3.12/site-packages/mkdocs/plugins.py", line 646, in on_post_page
return self.run_event('post_page', output, page=page, config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/glennjocher/PycharmProjects/.venv/lib/python3.12/site-packages/mkdocs/plugins.py", line 566, in run_event
result = method(item, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/glennjocher/PycharmProjects/mkdocs/plugin/main.py", line 378, in on_post_page
self.insert_content(soup, div)
File "/Users/glennjocher/PycharmProjects/mkdocs/plugin/main.py", line 179, in insert_content
md_typeset.append(content_to_insert)
File "/Users/glennjocher/PycharmProjects/.venv/lib/python3.12/site-packages/bs4/element.py", line 2062, in append
return self.insert(len(self.contents), tag)[0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
Traceback (most recent call last):
File "/Users/glennjocher/PycharmProjects/ultralytics/docs/build_docs.py", line 370, in <module>
main()
File "/Users/glennjocher/PycharmProjects/ultralytics/docs/build_docs.py", line 347, in main
subprocess.run(f"mkdocs build -f {DOCS.parent}/mkdocs.yml --strict", check=True, shell=True)
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'mkdocs build -f /Users/glennjocher/PycharmProjects/ultralytics/mkdocs.yml --strict' returned non-zero exit status 1.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
dependenciesDependencies and packagesDependencies and packagesdocumentationImprovements or additions to documentationImprovements or additions to documentationfixedBug has been resolvedBug has been resolved