OiO.lk Blog python This probably means that Tcl wasn't installed properly
python

This probably means that Tcl wasn't installed properly


I am importing FreeSimpleGUI and when i run i get the below errors:

import FreeSimpleGUI

error:

Traceback (most recent call last):
File "D:\PYTHON\todo_app\gui.py", line 3, in
import FreeSimpleGUI
File "D:\PYTHON\todo_app.venv\Lib\site-packages\FreeSimpleGUI_init_.py", line 41, in
tclversion_detailed = tkinter.Tcl().eval(‘info patchlevel’)
~~~~~~~~~~~^^
File "C:\Users\Ravindra\AppData\Local\Programs\Python\Python313\Lib\tkinter_init_.py", line 2572, in Tcl
return Tk(screenName, baseName, className, useTk)
File "C:\Users\Ravindra\AppData\Local\Programs\Python\Python313\Lib\tkinter_init_.py", line 2459, in init
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_tkinter.TclError: Can’t find a usable init.tcl in the following directories:
C:/Users/Ravindra/AppData/Local/Programs/Python/Python313/lib/tcl8.6 D:/PYTHON/todo_app/.venv/lib/tcl8.6 D:/PYTHON/todo_app/lib/tcl8.6 D:/PYTHON/todo_app/.venv/library D:/PYTHON/todo_app/library D:/PYTHON/todo_app/tcl8.6.14/library D:/PYTHON/tcl8.6.14/library

This probably means that Tcl wasn’t installed properly.

Process finished with exit code 1

I am working on Pycharm and new to python. I am trying to import the FreeSimpleGUI for making the GUI for one of the projects but stuck due to above error.



You need to sign in to view this answers

Exit mobile version