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

AttributeError: can't set attribute #852

Closed
joamatab opened this issue Jul 30, 2022 · 1 comment
Closed

AttributeError: can't set attribute #852

joamatab opened this issue Jul 30, 2022 · 1 comment

Comments

@joamatab
Copy link

Describe the bug

Im getting some strange error when building the sphinx documentation for a project that I maintain

I tried different versions of the package, removing extensions ...

writing output... [  0%] CHANGELOG
/usr/share/miniconda/lib/python3.9/site-packages/pydata_sphinx_theme/bootstrap_html_translator.py:27: RemovedInSphinx60Warning: generate_targets_for_table() is deprecated
  self.generate_targets_for_table(node)
/home/runner/work/gdsfactory/gdsfactory/docs/CHANGELOG.md:688: WARNING: None:myst reference target not found: CrossSection

Exception occurred:
  File "/usr/share/miniconda/lib/python3.9/site-packages/pydata_sphinx_theme/bootstrap_html_translator.py", line 29, in visit_table
    self._table_row_index = 0
AttributeError: can't set attribute
The full traceback has been saved in /tmp/sphinx-err-bcb2whfa.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!

gdsfactory/gdsfactory#553

How to Reproduce

You can see the error here

https://github.com/gdsfactory/gdsfactory/runs/7584210854?check_suite_focus=true

git clone https://github.com/gdsfactory/gdsfactory.git
cd gdsfactory
pip install -r requirements.txt
pip install -r requirements.txt
cd docs
make html
open build/html/index

OS

Linux

Python version

3.10 from mambaforge

Sphinx version

5.1.1

Sphinx extensions

    "matplotlib.sphinxext.plot_directive",
    "myst_parser",
    "nbsphinx",
    "sphinx.ext.autodoc",
    "sphinx.ext.doctest",
    "sphinx.ext.mathjax",
    "sphinx.ext.napoleon",
    "sphinx.ext.todo",
    "sphinx.ext.viewcode",
    "sphinx_autodoc_typehints",
    "sphinx_click",
    # "sphinx_markdown_tables",
    "sphinx_copybutton",
    "sphinxcontrib.autodoc_pydantic",
    "sphinx.ext.autosummary",
    "sphinx.ext.extlinks",
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

No branches or pull requests

1 participant