showyourwork / showyourwork

A workflow for reproducible and open scientific articles

Home Page:https://show-your.work

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`dvipng` not being found during github build

mkenworthy opened this issue · comments

My paper builds on my computer, but fails when pushed to github. I have figures that have latex in them, so I have put in tinytex into the build process. Based on previous conversations, my build.yml and build-pull-request.yml have:

    - name: Install TinyTex for matplotlib LaTeX rendering
       id: tinytex
       shell: bash -l {0}
       run: |
         wget -qO- "https://yihui.org/tinytex/install-bin-unix.sh" | sh
         sudo ~/bin/tlmgr install type1cm cm-super underscore dvipng

...and I've added the PATH into my plotting scripts.

However, dvipng does not seem to be found during the build process on gihub, I get an error of

  File "/home/runner/work/yses2b_orbit/yses2b_orbit/.snakemake/conda/d3e94cc67be7e36e11d5525cc948392a_/lib/python3.11/site-packages/matplotlib/texmanager.py", line 259, in _run_checked_subprocess
    raise RuntimeError(
RuntimeError: Failed to process string with tex because dvipng could not be found

...any ideas as to what's going on?

I'm sorry for the delayed response! Unfortunately I'm not too sure what the problem is here, or if you're still running into issues. Please let us know if you found a solution, or we can try to iterate on it now that I'm back from leave.