-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Milestone
Description
Describe the bug
This project builds with 4.3.2 and with 4.4.0 it fails with this error.
Warning, treated as error:
error while formatting arguments for adafruit_azureiot.IoTCentralDevice: can only concatenate str (not "__qualname__") to str
How to Reproduce
$ git clone https://github.com/adafruit/Adafruit_CircuitPython_AzureIoT.git
$ cd Adafruit_CircuitPython_AzureIoT
$ pip install -r requirements.txt
$ pip install Sphinx sphinx-rtd-theme
$ cd docs
$ sphinx-build -E -W -b html . _build/html -v
Expected behavior
docs to build successfully
Your project
https://github.com/adafruit/Adafruit_CircuitPython_AzureIoT
Screenshots
sphinx-build -E -W -b html . _build/html -v
Running Sphinx v4.4.0
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
loading intersphinx inventory from https://docs.circuitpython.org/en/latest/objects.inv...
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 3 source files that are out of date
updating environment: [new config] 3 added, 0 changed, 0 removed
reading sources... [ 33%] api
reading sources... [ 66%] examples
reading sources... [100%] index
Traceback (most recent call last):
File "/Users/snip/.pyenv/versions/3.9.7/envs/cp_base/lib/python3.9/site-packages/sphinx/cmd/build.py", line 284, in build_main
app.build(args.force_all, filenames)
File "/Users/snip/.pyenv/versions/3.9.7/envs/cp_base/lib/python3.9/site-packages/sphinx/application.py", line 337, in build
self.builder.build_update()
File "/Users/snip/.pyenv/versions/3.9.7/envs/cp_base/lib/python3.9/site-packages/sphinx/builders/__init__.py", line 294, in build_update
self.build(to_build,
File "/Users/snip/.pyenv/versions/3.9.7/envs/cp_base/lib/python3.9/site-packages/sphinx/builders/__init__.py", line 308, in build
updated_docnames = set(self.read())
File "/Users/snip/.pyenv/versions/3.9.7/lib/python3.9/contextlib.py", line 126, in __exit__
next(self.gen)
File "/Users/snip/.pyenv/versions/3.9.7/envs/cp_base/lib/python3.9/site-packages/sphinx/util/logging.py", line 225, in pending_warnings
memhandler.flushTo(logger)
File "/Users/snip/.pyenv/versions/3.9.7/envs/cp_base/lib/python3.9/site-packages/sphinx/util/logging.py", line 190, in flushTo
logger.handle(record)
File "/Users/snip/.pyenv/versions/3.9.7/lib/python3.9/logging/__init__.py", line 1599, in handle
self.callHandlers(record)
File "/Users/snip/.pyenv/versions/3.9.7/lib/python3.9/logging/__init__.py", line 1661, in callHandlers
hdlr.handle(record)
File "/Users/snip/.pyenv/versions/3.9.7/lib/python3.9/logging/__init__.py", line 948, in handle
rv = self.filter(record)
File "/Users/snip/.pyenv/versions/3.9.7/lib/python3.9/logging/__init__.py", line 806, in filter
result = f.filter(record)
File "/Users/snip/.pyenv/versions/3.9.7/envs/cp_base/lib/python3.9/site-packages/sphinx/util/logging.py", line 433, in filter
raise exc
sphinx.errors.SphinxWarning: error while formatting arguments for adafruit_azureiot.IoTCentralDevice: can only concatenate str (not "__qualname__") to str
Warning, treated as error:
error while formatting arguments for adafruit_azureiot.IoTCentralDevice: can only concatenate str (not "__qualname__") to str
OS
Mac, Ubuntu
Python version
3.9.7, 3.10.2
Sphinx version
4.latest
Sphinx extensions
"sphinx.ext.autodoc", "sphinx.ext.intersphinx", "sphinx.ext.napoleon", "sphinx.ext.todo",
Extra tools
n\a