Sublime Forum

Previous file keep showing errors

#1

I just want to open a new file, using Tkinter, and an error from several files ago keep coming up

Traceback (most recent call last):
File “C:\Users\lenej\python\tkinter4.py”, line 1, in
import tkinter as tk
File “C:\Users\lenej\python\tkinter.py”, line 2, in
import ttkbootstrap as ttk
ModuleNotFoundError: No module named ‘ttkbootstrap’
[Finished in 96ms]

Please help
Thanks
Lene J’rgensen

0 Likes

#3

Whenn hitting ctrl+b ST executes py launcher on Windows, which uses the default (newest) python interpreter installed.

It executes py c:\Users\...\tkinter4.py

The exception indicates “Python for Windows” is missing the module “ttkbootstrap”, which may in turn point to TK not being installed or python not being correctly configured to use it, both of which python community might be able to provide more support for.

FWIW, I can’t even find such import in python 3.13.5’s tkinter package.

1 Like

#4

Thank you so much.

0 Likes