[GH-ISSUE #180] error: couldn't recognize data in image file #162

Open
opened 2026-02-25 20:34:48 +03:00 by kerem · 1 comment
Owner

Originally created by @broche0 on GitHub (Aug 4, 2022).
Original GitHub issue: https://github.com/B16f00t/whapa/issues/180

DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning.
Traceback (most recent call last):
File "whapa-gui.py", line 1543, in
Whapa(img_folder, icons)
File "whapa-gui.py", line 70, in init
self.iconlogo = PhotoImage(file=self.icons[0])
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/tkinter/init.py", line 4064, in init
Image.init(self, 'photo', name, cnf, master, **kw)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/tkinter/init.py", line 4009, in init
self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't recognize data in image file "/whapa-master/images/logo.png"

Originally created by @broche0 on GitHub (Aug 4, 2022). Original GitHub issue: https://github.com/B16f00t/whapa/issues/180 DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning. Traceback (most recent call last): File "whapa-gui.py", line 1543, in <module> Whapa(img_folder, icons) File "whapa-gui.py", line 70, in __init__ self.iconlogo = PhotoImage(file=self.icons[0]) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/tkinter/__init__.py", line 4064, in __init__ Image.__init__(self, 'photo', name, cnf, master, **kw) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/tkinter/__init__.py", line 4009, in __init__ self.tk.call(('image', 'create', imgtype, name,) + options) _tkinter.TclError: couldn't recognize data in image file "/whapa-master/images/logo.png"
Author
Owner

@hyperdregon commented on GitHub (Jul 31, 2024):

hey, did you fix this issue?

<!-- gh-comment-id:2260844170 --> @hyperdregon commented on GitHub (Jul 31, 2024): hey, did you fix this issue?
Sign in to join this conversation.
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
starred/whapa#162
No description provided.