question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RuntimeError: Failed to process string with tex because latex could not be found

See original GitHub issue

I tried with this code snippet to draw a sample graph.

with plt.style.context('science'):     
    plt.figure()     
    plt.plot(x, y)     
    plt.show()

But I amm getting the following error. is it because of matplotlib latest version problem? RuntimeError: Failed to process string with tex because latex could not be found.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
HinnyTsangcommented, May 19, 2022

@rajeshkalakoti

I did,I installed it with pip latek package. it didn’t work. but I managed to make it work with some manjaro libraries. thank you.

Maybe you should install latex in your computer directly such that latex can be directly called as a command. I have fixed the same issue by the following command.

sudo apt-get install texlive-latex-extra texlive-fonts-recommended dvipng cm-super

while the cm-super is used for this error latex was not able to process the following string: b'lp'.

0reactions
echedey-lscommented, Dec 3, 2022

@Dimple10 that issue is with the installation of Latex in your system. Check out this FAQ as said garrettj403.

If it does not work, tell us what your errors are copied from the clipboard, and try to run the command latex or pdflatex in the command prompt, as well as your OS and versions of the installed software.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to process string with tex because latex could not be ...
RuntimeError : Failed to process string with tex because latex could not be found · 1. Open a console / cmd prompt and...
Read more >
RuntimeError: Failed to process string with tex because latex ...
Hello again guys,. I'm facing a really simple problem. I just want to plot some scores. It is a list with float entries....
Read more >
Failed to process string with tex because latex could not be ...
(matplotlib LaTex)RuntimeError: Failed to process string with tex because latex could not be found_Beisi_x的博客-CSDN博客.
Read more >
Same error after following the suggested solution : r/learnpython
RuntimeError : Failed to process string with tex because latex could not be found. This happens eventhough I already have Latex installed as ......
Read more >
Latex + matplotlib + google colab - learnsharewithdp
RuntimeError : Failed to process string with tex because latex could not be found ! LaTeX Error: File `type1ec.sty' not found.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found