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

Graphviz dot files stopped being converted to png #8800

Closed
fniessink opened this issue Jan 6, 2022 · 2 comments
Closed

Graphviz dot files stopped being converted to png #8800

fniessink opened this issue Jan 6, 2022 · 2 comments
Labels
Support Support question

Comments

@fniessink
Copy link

fniessink commented Jan 6, 2022

Recently, Graphviz dot files in the documentation of Quality-time (https://quality-time.readthedocs.io/en/latest/) stopped being converted to png images on RTD. Running sphinx locally works fine, and the dot files are converted to png as expected.

This version of the docs, created Jan 2, 2022, has the dot files converted: https://quality-time.readthedocs.io/en/v3.31.0-rc.4/software.html.

This version of the docs, created Jan 6, 2022, has the dot files not being converted: https://quality-time.readthedocs.io/en/v3.31.0-rc.5/software.html. Instead, the text of the dot file contents are displayed.

The only documentation-related dependency updated between these two dates in the Quality-time project was furo (bumped from 2021.11.23 to 2022.1.2), but reverting furo did not solve the issue.

Details

Expected Result

Graphviz dot files being converted to png and being displayed.

Docs with converted dot file: https://quality-time.readthedocs.io/en/v3.31.0-rc.4/software.html

Actual Result

The text of the dot file is shown instead of the png image.

Docs without conversion of dot file: https://quality-time.readthedocs.io/en/v3.31.0-rc.5/software.html

@stsewd
Copy link
Member

stsewd commented Jan 6, 2022

Hi, looks like the config file was updated to make use of the new builder option ICTU/quality-time@cbfed80#diff-03efc769b870804394632e45d7885272b44c16939517fb31c9d7c614d2ffae57, the new builders don't include several pre-installed packages like the older ones, you must install them with https://docs.readthedocs.io/en/stable/config-file/v2.html#build-apt-packages. I think you only need to install the graphviz-dev and/or libgraphviz-dev packages.

@stsewd stsewd added the Support Support question label Jan 6, 2022
@fniessink
Copy link
Author

Thanks so much, installing graphviz did the trick. This is how the build part of the .readthedocs.yaml now looks:

build:
  os: ubuntu-20.04
  tools:
    python: "3.10"
  apt_packages:
    - graphviz

tensionhead added a commit to esi-neuroscience/syncopy that referenced this issue Jan 5, 2023
- apparently now one has to specifically install those packages
readthedocs/readthedocs.org#8800

Changes to be committed:
	modified:   .readthedocs.yml
tomasfarias added a commit to tomasfarias/airflow-dbt-python that referenced this issue Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support question
Projects
None yet
Development

No branches or pull requests

2 participants