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
sphinxcontrib.youtube incompatibility at 6.1.2: can only concatenate str (not "PosixPath") to str #11115
Comments
Reproduced with this trace:
It appears a1cd19e is the first bad commit |
A |
@AA-Turner removed label and milestone for now |
@AA-Turner perhaps there is also other potential problem because I applied diff --git a/sphinx/util/display.py b/sphinx/util/display.py
index 99b76599a..274c107e1 100644
--- a/sphinx/util/display.py
+++ b/sphinx/util/display.py
@@ -35,7 +35,11 @@ def status_iterator(
if length == 0:
logger.info(bold(summary), nonl=True)
for i, item in enumerate(iterable, start=1):
- item_str = colorize(color, stringify_func(item))
+ if not isinstance(item, str):
+ logger.info(f"class {type(item)} but expected a 'str' object")
+ item_str = colorize(color, stringify_func(str(item)))
+ else:
+ item_str = colorize(color, stringify_func(item))
if length == 0:
logger.info(item_str, nonl=True)
logger.info(' ', nonl=True) only for the
so far so good but then
It looks for the file Or perhaps this is only indicative of more extensive change needed at sphinxcontrib.youtube? |
All, With version 6.1.1, Build is successful with the following logs, so for our release, we have pinned the version to 6.1.1
|
Minimal reproducer index.rst:
and in conf.py:
|
I have released v6.1.3 which should fix this by reverting the parallel image changes. A |
Describe the bug
Hi
We are getting the 'can only concatenate str (not "PosixPath") to str' error when building pgAdmin's documentation. Till 6.1.1 everything is working fine, but with the latest version 6.1.2, our builds are started failing with below error:
copying images... [ 58%] images/procedure_sql.png
Exception occurred:
File "/Users/akshayjoshi/Developement/venv_psy2/lib/python3.10/site-packages/sphinx/util/console.py", line 86, in colorize
return escseq(name) + text + escseq('reset')
TypeError: can only concatenate str (not "PosixPath") to str
The full traceback has been saved in /var/folders/31/fyp66yh91vb7vys5xypw10qc0000gn/T/sphinx-err-wm4y0m72.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!
make[1]: *** [html] Error 2
make: *** [docs] Error 2
How to Reproduce
Environment Information
Sphinx extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: