Tcl issue --> _tkinter.TclError: Can't find a usable init.tc
FredrikHj opened this issue · 0 comments
Hi
I am newby on Python not i programming :)
I am trying to start a Python project in VSC. I have Python 3.13.0 installed and the Python extension with Code
Runner in vsc. When running the GUI app with code:
import customtkinter
app = customtkinter.CTk()
app.mainloop()
Just to get up a Window frame. I get the fault:
"
PS C:\Projekt - Lokalt\737FSPanel MTU\737MTUControl - Python> & "c:/Projekt - Lokalt/737FSPanel MTU/737MTUControl - Python/.venv/Scripts/python.exe" "c:/Projekt - Lokalt/737FSPanel MTU/737MTUControl - Python/MTUStart.py"
Traceback (most recent call last):
File "c:\Projekt - Lokalt\737FSPanel MTU\737MTUControl - Python\MTUStart.py", line 3, in
app = customtkinter.CTk()
File "C:\Projekt - Lokalt\737FSPanel MTU\737MTUControl - Python.venv\Lib\site-packages\customtkinter\windows\ctk_tk.py", line 40, in init
CTK_PARENT_CLASS.init(self, **pop_from_dict_by_set(kwargs, self.valid_tk_constructor_arguments))
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Fredrik.Hjarpe\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/Fredrik.Hjarpe/AppData/Local/Programs/Python/Python313/lib/tcl8.6 C:/Users/Fredrik.Hjarpe/AppData/Local/Programs/Python/lib/tcl8.6 C:/Users/Fredrik.Hjarpe/AppData/Local/Programs/lib/tcl8.6 C:/Users/Fredrik.Hjarpe/AppData/Local/Programs/Python/library C:/Users/Fredrik.Hjarpe/AppData/Local/Programs/library C:/Users/Fredrik.Hjarpe/AppData/Local/Programs/tcl8.6.14/library C:/Users/Fredrik.Hjarpe/AppData/Local/tcl8.6.14/library
This probably means that Tcl wasn't installed properly."
I will give you the information you need to help me :)
Running Wiindows 11.
Best regards Fredrik