Skip to content

Failure on Sphinx v6.2.1 #27

@lucaspcamargo

Description

@lucaspcamargo

This extension does not seem to work on a more recent version of Sphinx. There is an issue when creating the disqus_shortname config value. And it happens regardless of whether I set the value in conf.py or not.

It errors out with an ExtensionError ("Config value 'disqus_shortname' already present").

Here is what my venv looks like:

ablog==0.11.5
accessible-pygments==0.0.4
alabaster==0.7.13
Babel==2.12.1
beautifulsoup4==4.12.2
certifi==2023.7.22
charset-normalizer==3.2.0
docutils==0.19
feedgen==0.9.0
idna==3.4
imagesize==1.4.1
insegel==1.3.1
invoke==2.2.0
Jinja2==3.1.2
livereload==2.6.3
lxml==4.9.3
markdown-it-py==3.0.0
MarkupSafe==2.1.3
mdit-py-plugins==0.4.0
mdurl==0.1.2
myst-parser==2.0.0
packaging==23.1
pydata-sphinx-theme==0.13.3
Pygments==2.16.1
python-dateutil==2.8.2
PyYAML==6.0.1
requests==2.31.0
six==1.16.0
snowballstemmer==2.2.0
soupsieve==2.5
Sphinx==6.2.1
sphinx-book-theme==1.0.1
sphinx-disqus==1.2.0
sphinx-favicon==1.0.1
sphinx-notfound-page==1.0.0
sphinx-sitemap==2.5.1
sphinxcontrib-applehelp==1.0.7
sphinxcontrib-devhelp==1.0.5
sphinxcontrib-htmlhelp==2.0.4
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.6
sphinxcontrib-serializinghtml==1.1.9
tornado==6.3.3
typing_extensions==4.7.1
urllib3==2.0.4
watchdog==3.0.0

And here is the stack trace right up to the moment when the exception is thrown:

File "[...]/sphinxhome/venv/bin/sphinx-build", line 8, in <module>
    sys.exit(main())
  File "[...]/sphinxhome/venv/lib/python3.11/site-packages/sphinx/cmd/build.py", line 319, in main
    return make_main(argv)
  File "[...]/sphinxhome/venv/lib/python3.11/site-packages/sphinx/cmd/build.py", line 199, in make_main
    return make_mode.run_make_mode(argv[1:])
  File "[...]/sphinxhome/venv/lib/python3.11/site-packages/sphinx/cmd/make_mode.py", line 166, in run_make_mode
    return make.run_generic_build(args[0])
  File "[...]/sphinxhome/venv/lib/python3.11/site-packages/sphinx/cmd/make_mode.py", line 154, in run_generic_build
    return build_main(args + opts)
  File "[...]/sphinxhome/venv/lib/python3.11/site-packages/sphinx/cmd/build.py", line 280, in build_main
    app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
  File "[...]/sphinxhome/venv/lib/python3.11/site-packages/sphinx/application.py", line 229, in __init__
    self.setup_extension(extension)
  File "[...]/sphinxhome/venv/lib/python3.11/site-packages/sphinx/application.py", line 404, in setup_extension
    self.registry.load_extension(self, extname)
  File "[...]/sphinxhome/venv/lib/python3.11/site-packages/sphinx/registry.py", line 455, in load_extension
    metadata = setup(app)
  File "[...]/sphinxhome/venv/lib/python3.11/site-packages/sphinx_disqus/disqus.py", line 122, in setup
    app.add_config_value("disqus_shortname", None, True)
  File "[...]/sphinxhome/venv/lib/python3.11/site-packages/sphinx/application.py", line 536, in add_config_value
    self.config.add(name, default, rebuild, types)
  File "[...]/sphinxhome/venv/lib/python3.11/site-packages/sphinx/config.py", line 309, in add
    traceback.print_stack()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions