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

Not compatible with Sphinx 4: AttributeError: 'Automodsumm' object has no attribute 'warn' #128

Closed
JWCook opened this issue May 15, 2021 · 0 comments · Fixed by #129
Closed

Comments

@JWCook
Copy link
Contributor

JWCook commented May 15, 2021

Autosummary.warn() has been deprecated since Sphinx 2 (reference) and was removed in Sphinx 4. The self.warn() statements should be replaced with logger.warning().

Example traceback:

Exception occurred:
  File ".venv/lib/python3.8/site-packages/sphinx_automodapi/automodsumm.py", line 159, in run
    self.warn('Tried to skip objects {objs} in module {mod}, '
AttributeError: 'Automodsumm' object has no attribute 'warn'

This can be reproduced by installing Sphinx>=4.0.0 and then, for example, :skip:ing a member that doesn't exist:

.. automodsumm:: my_module
    :skip: some_nonexistent_member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant