#๐Ÿ”’ Latex program is not installed

10 messages ยท Page 1 of 1 (latest)

native shore
#

I'm trying to make a ai based program that gives me any formula that i want. OpenAI generates the formula corectly, but i always end up with the following error:
Error generating LaTeX image: latex program is not installed. I had installed MikteX btw

flat tartanBOT
#

@native shore

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

stiff turtle
#

show the exact traceback

#

!traceback

flat tartanBOT
#
Traceback

Please provide the full traceback for your exception in order to help us identify your issue.
While the last line of the error message tells us what kind of error you got,
the full traceback will tell us which line, and other critical information to solve your problem.
Please avoid screenshots so we can copy and paste parts of the message.

A full traceback could look like:

Traceback (most recent call last):
  File "my_file.py", line 5, in <module>
    add_three("6")
  File "my_file.py", line 2, in add_three
    a = num + 3
        ~~~~^~~
TypeError: can only concatenate str (not "int") to str

If the traceback is long, use our pastebin.

wicked yew
#

And also pip names of the libs installed would be useful, so we can check docs to see if you missed anything related to configuring the lib

native shore
#
  File "C:\Users\anton\PycharmProjects\Latex Example\app.py", line 38, in index
    preview(latex_code, viewer="BytesIO", outputbuffer=buffer, euler=False, dvioptions=['-D', "300"])
    ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\anton\PycharmProjects\Latex Example\venv\Lib\site-packages\sympy\printing\preview.py", line 308, in preview
    raise RuntimeError("latex program is not installed")
#

annotated-types 0.7.0
anyio 4.7.0
attrs 18.2.0
blinker 1.9.0
certifi 2024.12.14
click 8.1.8
colorama 0.4.6
contourpy 1.3.1
cycler 0.12.1
data 0.4
decorator 5.1.1
distro 1.9.0
Flask 3.1.0
fonttools 4.55.3
funcsigs 1.0.2
future 1.0.0
h11 0.14.0
httpcore 1.0.7
httpx 0.28.1
idna 3.10
itsdangerous 2.2.0
Jinja2 3.1.5
jiter 0.8.2
kiwisolver 1.4.8
latex 0.7.0
MarkupSafe 3.0.2
matplotlib 3.10.0
mpmath 1.3.0
numpy 2.2.1
openai 1.58.1
packaging 24.2
pdf2image 1.17.0
pdflatex 0.1.3
pillow 11.0.0
pip 24.3.1
pydantic 2.10.4
pydantic_core 2.27.2
pyparsing 3.2.0
python-dateutil 2.9.0.post0
python-dotenv 1.0.1
shutilwhich 1.1.0
six 1.17.0
sniffio 1.3.1
sympy 1.13.3
tempdir 0.7.1
tqdm 4.67.1
typing_extensions 4.12.2
Werkzeug 3.1.3

flat tartanBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.