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

Fix RTD build #386

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Fix RTD build #386

merged 2 commits into from
Sep 16, 2024

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Sep 16, 2024

  • Require nbconvert>=7.1.0

    Fixes:

      File "/home/docs/checkouts/readthedocs.org/user_builds/parpe/envs/385/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 25, in <module>
        from lxml.html.clean import clean_html
      File "/home/docs/checkouts/readthedocs.org/user_builds/parpe/envs/385/lib/python3.11/site-packages/lxml/html/clean.py", line 18, in <module>
        raise ImportError(
    ImportError: lxml.html.clean module is now a separate project lxml_html_clean.
    Install lxml[html_clean] or lxml_html_clean directly.
    
  • m2r2 -> myst-parser

    Fixes:

      File "/home/docs/checkouts/readthedocs.org/user_builds/parpe/envs/386/lib/python3.11/site-packages/m2r2.py", line 14, in <module>
        from docutils.core import ErrorString
    ImportError: cannot import name 'ErrorString' from 'docutils.core' (/home/docs/checkouts/readthedocs.org/user_builds/parpe/envs/386/lib/python3.11/site-packages/docutils/core.py)
    

Fixes:
```
  File "/home/docs/checkouts/readthedocs.org/user_builds/parpe/envs/385/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 25, in <module>
    from lxml.html.clean import clean_html
  File "/home/docs/checkouts/readthedocs.org/user_builds/parpe/envs/385/lib/python3.11/site-packages/lxml/html/clean.py", line 18, in <module>
    raise ImportError(
ImportError: lxml.html.clean module is now a separate project lxml_html_clean.
Install lxml[html_clean] or lxml_html_clean directly.
```
Fixes:
```
  File "/home/docs/checkouts/readthedocs.org/user_builds/parpe/envs/386/lib/python3.11/site-packages/m2r2.py", line 14, in <module>
    from docutils.core import ErrorString
ImportError: cannot import name 'ErrorString' from 'docutils.core' (/home/docs/checkouts/readthedocs.org/user_builds/parpe/envs/386/lib/python3.11/site-packages/docutils/core.py)
```
@dweindl dweindl merged commit d2c341f into develop Sep 16, 2024
6 checks passed
@dweindl dweindl deleted the fix_rtd_build branch September 16, 2024 14:49
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 this pull request may close these issues.

1 participant