Skip to content

Exception occurred: File "[...]/enum_tools/autoenum.py", line 324, in import_object // self._datadescriptor = False // AttributeError: can't set attribute #46

@1kastner

Description

@1kastner

Description

The docs stopped building without a change in the code files.

Steps to Reproduce

I am not sure why the error showed up in https://github.com/1kastner/conflowgen/runs/4546078790?check_suite_focus=true but did work in https://github.com/1kastner/conflowgen/actions/runs/1580338713 because since then no code has changed. Only static files have been added since then.

Actual result:

Run cd ./docs/ && make html SPHINXOPTS="-W --keep-going"
Running Sphinx v4.3.1
making output directory... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 4 source files that are out of date
updating environment: [new config] 4 added, 0 changed, 0 removed
reading sources... [ 25%] api

Exception occurred:
  File "/home/runner/.local/lib/python3.9/site-packages/enum_tools/autoenum.py", line 324, in import_object
    self._datadescriptor = False
AttributeError: can't set attribute
The full traceback has been saved in /tmp/sphinx-err-e_37qs4r.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make: *** [Makefile:20: html] Error 2

Expected result:

The docs build just like before

Reproduces how often:

Always as a GitHub action but never locally.

Version

  • Operating System: Ubuntu
  • Python: 3.9
  • enum_tools: newest (fresh install for each CI pipeline)

Installation source

PyPI

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions