Skip to content

Build Fails With TypeError: connect() got an unexpected keyword argument 'priority' #6870

@lukasturcani

Description

@lukasturcani

Details

I have been building my project documentation on RTD for a while. However I noticed that about 2 days ago my builds started failing. I created a new branch, debug, which checked out the last successfully built version on RTD. However, it now fails with the same
error message as my latest build, this makes me suspect that its not purely an issue on my end. I'm specifically working on the molecular_cleanup branch of my project, not on master.

As far as I can tell, both the last sucessful build and and the currently failing builds are using Shinx v.2.4.4, which is why I'm posting here and not on the sphinx project.

I have also managed to successfully build the docs locally.

  • Read the Docs project URL:

https://stk.readthedocs.io/en/latest/

  • Build URL (if applicable):

https://stk.readthedocs.io/en/molecular_cleanup/

RTD username: lukasturcani

Expected Result

Successful build, or error message related to code from my project.

Actual Result

I receive the error

Running Sphinx v2.4.4
loading translations [en]... done

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/stk/conda/debug/lib/python3.8/site-packages/sphinx/cmd/build.py", line 272, in build_main
    app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
  File "/home/docs/checkouts/readthedocs.org/user_builds/stk/conda/debug/lib/python3.8/site-packages/sphinx/application.py", line 241, in __init__
    self.setup_extension(extension)
  File "/home/docs/checkouts/readthedocs.org/user_builds/stk/conda/debug/lib/python3.8/site-packages/sphinx/application.py", line 397, in setup_extension
    self.registry.load_extension(self, extname)
  File "/home/docs/checkouts/readthedocs.org/user_builds/stk/conda/debug/lib/python3.8/site-packages/sphinx/registry.py", line 465, in load_extension
    metadata = setup(app)
  File "/home/docs/checkouts/readthedocs.org/user_builds/stk/conda/debug/lib/python3.8/site-packages/sphinx/builders/dirhtml.py", line 58, in setup
    app.setup_extension('sphinx.builders.html')
  File "/home/docs/checkouts/readthedocs.org/user_builds/stk/conda/debug/lib/python3.8/site-packages/sphinx/application.py", line 397, in setup_extension
    self.registry.load_extension(self, extname)
  File "/home/docs/checkouts/readthedocs.org/user_builds/stk/conda/debug/lib/python3.8/site-packages/sphinx/registry.py", line 465, in load_extension
    metadata = setup(app)
  File "/home/docs/checkouts/readthedocs.org/user_builds/stk/conda/debug/lib/python3.8/site-packages/sphinx/builders/html/__init__.py", line 1234, in setup
    app.connect('config-inited', convert_html_css_files, priority=800)
TypeError: connect() got an unexpected keyword argument 'priority'

Exception occurred:
  File "/home/docs/checkouts/readthedocs.org/user_builds/stk/conda/debug/lib/python3.8/site-packages/sphinx/builders/html/__init__.py", line 1234, in setup
    app.connect('config-inited', convert_html_css_files, priority=800)
TypeError: connect() got an unexpected keyword argument 'priority'
The full traceback has been saved in /tmp/sphinx-err-hs2bz0ie.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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    SupportSupport question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions