pymike00 / tinychat

🔮 TinyChat is a lightweight Desktop client for modern Language Models designed for straightforward comprehension. Supports OpenAI, Anthropic, Meta, Mistral, Google and Cohere APIs.
MIT License
40 stars 7 forks source link

PhotoImage load doesn't work on MacOS #9

Open Fogli opened 1 month ago

Fogli commented 1 month ago

the error is in line 94 in tinychat/tinychat/ui/chat.py

# TODO: check if it works on Mac OS             
self.call("wm", "iconphoto", self._w, PhotoImage(file=get_icon_path()))

this is the message

_tkinter.TclError: couldn't recognize data in image file "/.../tinychat/tinychat/tinychat.png"

(I am kind of new in github issues, so I hope that's a good way to present a problem)

pymike00 commented 1 week ago

Hello Fogli,

Yes, it absolutely is a good way to present the problem, thanks for your contribution to the project.

I have a MacBook on my way, scheduled for delivery in around 10 days; I will work on the issue then.

In the meantime, if you have found a solution, feel free to share it.

Best regards, Michele