Andereoo / TkinterWeb

Python bindings for Tkhtml.
MIT License
153 stars 16 forks source link

PIL not working. #82

Closed HelikopterX closed 1 year ago

HelikopterX commented 1 year ago

TkinterWeb is clearly bugging right now :skull:.

The error report is here: ModuleNotFoundError: The files required to run TkinterWeb could not be found. This usually occurs when bundling TkinterWeb into an app without forcing the application maker to include all nessessary files or when some of TkinterWeb's dependencies are not installed. See https://github.com/Andereoo/TkinterWeb/blob/main/tkinterweb/docs/FAQ.md for more information.

Error code: Traceback (most recent call last): File "/home/dogcmamere/.local/lib/python3.9/site-packages/tkinterweb/init.py", line 31, in from bindings import TkinterWeb File "/home/dogcmamere/.local/lib/python3.9/site-packages/tkinterweb/bindings.py", line 39, in from imageutils import * File "/home/dogcmamere/.local/lib/python3.9/site-packages/tkinterweb/imageutils.py", line 28, in from PIL.ImageTk import PhotoImage ModuleNotFoundError: No module named 'PIL.ImageTk'

If you think this is a bug, please file a bug report at https://github.com/Andereoo/TkinterWeb.

HelikopterX commented 1 year ago

The error is easy to remove. Pillow must be installed with version 10.0.0 specifically

HelikopterX commented 1 year ago

Or it will crash

Andereoo commented 1 year ago

Thanks for letting me know about this! From the error it looks like you were missing ImageTk. I can't reproduce this issue but I'm glad you figured it out.