Skip to content
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

Extension error (sphinx.ext.viewcode) with Sphinx 3.5 #8880

Closed
xqt opened this issue Feb 14, 2021 · 3 comments · Fixed by #8888
Closed

Extension error (sphinx.ext.viewcode) with Sphinx 3.5 #8880

xqt opened this issue Feb 14, 2021 · 3 comments · Fixed by #8888

Comments

@xqt
Copy link

xqt commented Feb 14, 2021

After deployment of Sphinx 3.5.0 our Pywikibot CI-Tests fails with following exception:

11:12:45 Extension error (sphinx.ext.viewcode):
11:12:45 Handler <function env_purge_doc at 0x7fb96305e6a8> for event 'env-purge-doc' threw an exception (exception: 'bool' object is not iterable)
11:12:46 ERROR: InvocationError for command /src/.tox/doc/bin/sphinx-build -M html ./docs ./docs/_build (exited with code 2)

See

Our bug tracker:

@virtuald
Copy link
Contributor

virtuald commented Feb 15, 2021

Looks like modules.items() in viewcode.py: env_purge_doc sometimes returns a bool. Added a print statement:

    x = list(modules.items())
    print(x)

And get

[('wpilib.controller._controller', False)]

@virtuald
Copy link
Contributor

virtuald commented Feb 15, 2021

Pushed a fix at #8888, hopefully they can get a new release out as soon as possible?

@ksunden
Copy link
Contributor

ksunden commented Feb 15, 2021

https://github.com/pyqtgraph/pyqtgraph/runs/1900044069

This is affecting pyqtgraph as well.

@jfbu jfbu added this to the 3.5.1 milestone Feb 15, 2021
potiuk added a commit to potiuk/airflow that referenced this issue Feb 15, 2021
Sphinx 3.5.0 released on 14th of Feb introduced a problem in our
doc builds.

It is documented in sphinx-doc/sphinx#8880

Until this problem is solved we are limiting Sphinx.
ashb pushed a commit to apache/airflow that referenced this issue Feb 15, 2021
Sphinx 3.5.0 released on 14th of Feb introduced a problem in our
doc builds.

It is documented in sphinx-doc/sphinx#8880

Until this problem is solved we are limiting Sphinx.
tk0miya added a commit to tk0miya/sphinx that referenced this issue Feb 15, 2021
…l build

viewcode causes ExtensionError on incremental build after unparsable
python module found for the document on the past build.

Internally, `False` is stored into `env._viewcode_modules[modname]` for
the modules that failed to parse on the past build.  But `env-purge-doc`
does not handle them.
ddn0 added a commit to ddn0/katana that referenced this issue Feb 15, 2021
Workaround upstream issue: sphinx-doc/sphinx#8880
ddn0 added a commit to ddn0/katana that referenced this issue Feb 15, 2021
Workaround upstream issue: sphinx-doc/sphinx#8880
uellue added a commit to uellue/LiberTEM that referenced this issue Feb 15, 2021
uellue added a commit to LiberTEM/LiberTEM that referenced this issue Feb 15, 2021
pllim added a commit to pllim/synphot_refactor that referenced this issue Feb 15, 2021
This was referenced Mar 8, 2021
newling pushed a commit to graphcore/popart that referenced this issue Mar 15, 2021
Summary: Use sphinx version 3.4.3 until resolution of the linked issue: sphinx-doc/sphinx#8880

Reviewers: #popart, #framework_ip_review_-_any_oss_or_third-party_code_use_has_been_approved, samk, shirazb

Reviewed By: #popart, #framework_ip_review_-_any_oss_or_third-party_code_use_has_been_approved, samk, shirazb

Maniphest Tasks: T34329

Differential Revision: https://phabricator.sourcevertex.net/D40590
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants