Failure error

Ask the community or our support engineers for answers to questions.

File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/scriptrunner/", line 443, in _run_script
    exec(code, module.__dict__)File "/app/streamlit_app/", line 7, in <module>
    from tkinter import Image, Label, ScaleFile "/usr/local/lib/python3.9/tkinter/", line 37, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk

You cannot use Tkinter together with Streamlit, this doesn’t work.

1 Like

Thank you Franky1. It worked. I removed Tkinter from my library.