ttkbootstrap icon indicating copy to clipboard operation
ttkbootstrap copied to clipboard

ModuleNotFoundError when importing ttkbootstrap on Win 11 & python 3.10.10

Open Solanaar opened this issue 1 year ago • 0 comments

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

Solanaar avatar May 26 '24 13:05 Solanaar