israel-dryer / ttkbootstrap

A supercharged theme extension for tkinter that enables on-demand modern flat style themes inspired by Bootstrap.
MIT License
1.78k stars 358 forks source link

ModuleNotFoundError when importing ttkbootstrap on Win 11 & python 3.10.10 #578

Open Solanaar opened 1 month ago

Solanaar commented 1 month ago

Desktop (please complete the following information):

ttkbootstrap Version 1.10.1 OS: Win 11

Describe the bug

Imported ttkbootstrap inside a venv using

python -m pip install ttkbootstrap.

Any file importing ttkbootstrap returns this error: ModuleNotFoundError: No module named 'ttkbootstrap'

It happens both, when I run a file from a folder inside the root directory of the environment, as well as when running it from the root directory itself. I'm getting it on multiple projects. I am also getting it on a clean environment.

To Reproduce

  1. Setup venv in VSC
  2. import ttkbootstrap with python -m pip install ttkbootstrap
  3. create [filename].py with this code.
    import tkinter as tk
    import ttkbootstrap

Expected behavior

"It just works."

Screenshots

No response

Additional context

Python 3.10.10 Visual Studio Code


Package Version
pillow 10.3.0
pip 24.0
setuptools 65.5.0
ttkbootstrap 1.10.1