8000 Could not import extension sphinx_toolbox.more_autodoc.autonamedtuple · Issue #119 · sphinx-toolbox/sphinx-toolbox · GitHub
[go: up one dir, main page]

Skip to content

Could not import extension sphinx_toolbox.more_autodoc.autonamedtuple #119

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

Closed
1kastner opened this issue Jul 31, 2022 · 4 comments
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@1kastner
Copy link
1kastner commented Jul 31, 2022

Description

When building my docs, they fail with the message Could not import extension sphinx_toolbox.more_autodoc.autonamedtuple (exception: cannot import name 'RemovedInSphinx50Warning' from 'sphinx.deprecation' (/home/runner/.local/lib/python3.10/site-packages/sphinx/deprecation.py)).

Steps to Reproduce

Run cd ./docs/ && make html SPHINXOPTS="-W --keep-going", see, e.g., https://github.com/1kastner/conflowgen/runs/7601083543?check_suite_focus=true for reference.

Expected result:

At this stage, this faulty import should not happen I guess?

Reproduces how often:

Every time.

Version

  • Operating System: Linux
  • Python: 3.8, 3.10
  • sphinx-toolbox: 3.1.2 (newest version is installed in pipeline, currently no fixed version)
  • sphinx: 5.1.1 (newest version is installed in pipeline, currently no fixed version)

Installation source

pip

@1kastner 1kastner added the bug Something isn't working label Jul 31, 2022
@1kastner 1kastner changed the title Could not import extension sphinx_toolbox.more_autodoc.autonamedtuple (exception: cannot import name 'RemovedInSphinx50Warning' from 'sphinx.deprecation' (/home/runner/.local/lib/python3.10/site-packages/sphinx/deprecation.py)) Could not import extension sphinx_toolbox.more_autodoc.autonamedtuple Jul 31, 2022
1kastner added a commit to 1kastner/conflowgen that referenced this issue Aug 1, 2022
@Sharpz7
Copy link
Sharpz7 commented Aug 1, 2022

I have this issue now to, and didn't seem to have it before the 27th of July, which is strange

@1kastner
Copy link
Author
1kastner commented Aug 1, 2022

Well, a new sphinx version is out. I downgraded Sphinx to v4.5 to avoid this issue for the meantime

@domdfcoding domdfcoding added this to the v3.2.0 milestone Aug 3, 2022
@domdfcoding
Copy link
Member

This and a few other issues should be resolved by #120. Can you test with v3.2.0b1?

@1kastner
Copy link
Author
1kastner commented Aug 4, 2022

The solution works for me, thank you very much for the quick fix!

@1kastner 1kastner closed this as completed Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
0