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

Upgrade to Sphinx7 runs into circular import? #335

Closed
hf-kklein opened this issue Aug 29, 2023 · 1 comment · Fixed by #384
Closed

Upgrade to Sphinx7 runs into circular import? #335

hf-kklein opened this issue Aug 29, 2023 · 1 comment · Fixed by #384
Assignees

Comments

@hf-kklein
Copy link
Contributor

Running Sphinx v7.2.4
Creating file /home/runner/work/ahbicht/ahbicht/docs/api/ahbicht.rst.
Creating file /home/runner/work/ahbicht/ahbicht/docs/api/ahbicht.content_evaluation.rst.
Creating file /home/runner/work/ahbicht/ahbicht/docs/api/ahbicht.expressions.rst.
Creating file /home/runner/work/ahbicht/ahbicht/docs/api/ahbicht.json_serialization.rst.
Creating file /home/runner/work/ahbicht/ahbicht/docs/api/ahbicht.validation.rst.
Creating file /home/runner/work/ahbicht/ahbicht/docs/api/modules.rst.
loading intersphinx inventory from http://www.sphinx-doc.org/en/stable/objects.inv...
loading intersphinx inventory from https://docs.python.org/3.10/objects.inv...
intersphinx inventory has moved: http://www.sphinx-doc.org/en/stable/objects.inv -> https://www.sphinx-doc.org/en/master/objects.inv
[autosummary] generating autosummary for: api/ahbicht.content_evaluation.rst, api/ahbicht.expressions.rst, api/ahbicht.json_serialization.rst, api/ahbicht.rst, api/ahbicht.validation.rst, api/modules.rst, index.rst

Warning, treated as error:
Failed to import ahbicht.expressions.ahb_expression_evaluation.
Possible hints:

  • AttributeError: module 'ahbicht.expressions' has no attribute 'ahb_expression_evaluation'
  • ImportError: cannot import name 'evaluate_ahb_expression_tree' from partially initialized module 'ahbicht.expressions.ahb_expression_evaluation' (most likely due to a circular import) (/home/runner/work/ahbicht/ahbicht/docs/../src/ahbicht/expressions/ahb_expression_evaluation.py)

#334

I can reproduce locally but do not know how to fix.

@hf-kklein
Copy link
Contributor Author

to reproduce:

tox -re docs

This problem was introduced in e9b73d2 (my fault)

@DeltaDaniel DeltaDaniel linked a pull request Dec 19, 2023 that will close this issue
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.

2 participants