Failure error

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

File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/scriptrunner/script_runner.py", line 443, in _run_script
    exec(code, module.__dict__)File "/app/streamlit_app/project_perso.py", line 7, in <module>
    from tkinter import Image, Label, ScaleFile "/usr/local/lib/python3.9/tkinter/__init__.py", 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.