When executing python3 streamdeck.py get the the error No module named 'tkinter' #3

Closed
opened 2024-06-11 15:30:19 -04:00 by ralphrabelo · 2 comments
ralphrabelo commented 2024-06-11 15:30:19 -04:00 (Migrated from github.com)
import tkinter

python3 streamdeck.py
Traceback (most recent call last):
File "/home//streamdeck-plus-software/streamdeck.py", line 13, in
from PIL import Image, ImageDraw, ImageFont, ImageTk
File "/home/
/.local/lib/python3.10/site-packages/PIL/ImageTk.py", line 29, in
import tkinter
ModuleNotFoundError: No module named 'tkinter'

import tkinter python3 streamdeck.py Traceback (most recent call last): File "/home/***/streamdeck-plus-software/streamdeck.py", line 13, in <module> from PIL import Image, ImageDraw, ImageFont, ImageTk File "/home/***/.local/lib/python3.10/site-packages/PIL/ImageTk.py", line 29, in <module> import tkinter ModuleNotFoundError: No module named 'tkinter'
ralphrabelo commented 2024-06-11 15:36:23 -04:00 (Migrated from github.com)

Solved the problem with this:

For Ubuntu or other distros with Apt:
sudo apt-get install python3-tk

For Fedora:
sudo dnf install python3-tkinter

Solved the problem with this: For Ubuntu or other distros with Apt: sudo apt-get install python3-tk For Fedora: sudo dnf install python3-tkinter
goglesquirmintontheiii commented 2024-06-20 18:53:15 -04:00 (Migrated from github.com)

Glad to hear you fixed it, let me know if you need help with anything else ^

Glad to hear you fixed it, let me know if you need help with anything else ^
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
goglesquirmintontheiii/streamdeck-plus-software#3
No description provided.