ParthJadhav / Tkinter-Designer

An easy and fast way to create a Python GUI 🐍
BSD 3-Clause "New" or "Revised" License
9.26k stars 849 forks source link

Report bug :_tkinter.TclError: couldn't recognize data in image file #253

Open qyzxg opened 2 years ago

qyzxg commented 2 years ago

thanks

ParthJadhav commented 2 years ago

Can u try using a different image ?

rdbende commented 2 years ago

Tcl/Tk 8.5 doesn't support png images

ParthJadhav commented 2 years ago

I don't think that's the issue @rdbende , TkinterDesigner itself uses Png files

rdbende commented 2 years ago

@ParthJadhav Based on the error message he tries to run TkinterDesigner itself.

LucaJaich commented 1 year ago

Same issue here.

Rakitic07 commented 2 months ago

Earlier, I was using Python 3.9.6 and upon checking the tkinter version, this was the output:

~ python3
Python 3.9.6 (default, Feb  3 2024, 15:58:27)
[Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter as tk
>>> tk.TkVersion
8.5

Then, I had to switched to a more recent version of Python, version 3.12.5

Additionally, I had to install Tcl/Tk using Homebrew:

brew install tcl-tk

And, this was the result:

~ python3.12
Python 3.12.5 (main, Aug  6 2024, 19:08:49) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter as tk
>>> tk.TkVersion
8.6