-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Python 3.7 failures in sphinx/ext/napoleon/iterators.py: RuntimeError: generator raised StopIteration #5076
Comments
BTW even if I replace
|
Note: Reproduced with 3.7.0b5.
But this is not raised with 3.6.5
|
In my short investigation, this bug comes from PEP-479. Certainly, napoleon throws
@RobRuana Could you check this please? |
That is related. But see also #5076 (comment) |
Per PEP 479, Python 3.7 no longer allows bubbling up StopIteration outside of a generator. Instead, wrap attribute parsing in a try block and provide a sane default in case it raises an exception ([]).
* Closes #5076: [ext/napoleon] explicitly catch StopIteration Per PEP 479, Python 3.7 no longer allows bubbling up StopIteration outside of a generator. Instead, wrap attribute parsing in a try block and provide a sane default in case it raises an exception ([]). * Fix mypy and flake8 issues
I noted this problem too. ProblemFor my project, doc generation is run by Gitlab CI into the a python:3 docker container. Two days ago, it started failing with the following message:
Two days ago, the docker image python:3.7 has became the target of the python:3 tag and restricting used python image to 3.6 fixed my problem. Procedure to reproduce the problemRun Error logs / resultsBelow is the content of the
Environment info
|
Fixed by #5119. |
This bug: sphinx-doc/sphinx#5076 Was fixed in this PR: sphinx-doc/sphinx#5119 And released with Sphinx 3.0.0: https://pypi.org/project/Sphinx/3.0.0/
Problem
Building docs for fedmsg in Fedora with Python 3.7:
Full log: build.log.gz
Procedure to reproduce the problem
Error logs / results
Expected results
The generator should return instead.
Reproducible project / your project
Environment info
The text was updated successfully, but these errors were encountered: