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

RuntimeError: Failed to process string with tex because dvipng could not be found #87

Closed
dongj17 opened this issue Aug 20, 2024 · 2 comments

Comments

@dongj17
Copy link

dongj17 commented Aug 20, 2024

Hi! I'm new to Bagpipes. When I run Example 1 and use fig=model.plot(), fig=model.sfh.plot(), I get the following error: RuntimeError: Failed to process string with TeX because dvipng could not be found. Since I don't have administrator rights, I can't install dvipng via sudo yum install dvipng. Is there any other way to solve this problem?

@ACCarnall
Copy link
Owner

Hi, this is related to your matplotlib configuration options, you can read more here: https://matplotlib.org/stable/users/explain/text/usetex.html

You can also take a look at #14 for discussion of this, bagpipes doesn't interact as well as it could with the matplotlib config options. The guaranteed solution is to set tex_on=False on line 18 of bagpipes/plotting/general.py

@dongj17
Copy link
Author

dongj17 commented Aug 20, 2024

Hi, After I set tex_on=False, error disappeared. Thank you very much!

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

2 participants