Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: GNUser on March 04, 2025, 01:36:07 PM

Title: python3.9-pillow will not load due to missing dependency
Post by: GNUser on March 04, 2025, 01:36:07 PM
This is on TCL16.0beta1 x86_64:

Code: [Select]
$ tce-load -wil python3.9-pillow
python3.9-pillow.tcz.dep OK
Downloading: python3.9-olefile.tcz
Connecting to repo.tinycorelinux.net (128.127.66.77:80)
wget: server returned error: HTTP/1.1 404 Not Found
md5sum: python3.9-olefile.tcz.md5.txt: No such file or directory
Error on python3.9-olefile.tcz
It's not just that the md5.txt file is missing. python3.9-olefile.tcz does not exist in the repo.

Title: Re: python3.9-pillow will not load due to missing dependency
Post by: Rich on March 04, 2025, 01:57:15 PM
Hi GNUser
python3.9-olefile.tcz  is in the TC15 x86_64 repo. See if that
works. Not copying it over may just have been an oversight.
Title: Re: python3.9-pillow will not load due to missing dependency
Post by: Juanito on March 04, 2025, 02:00:37 PM
It should be fixed now - thanks for pointing this out
Title: Re: python3.9-pillow will not load due to missing dependency
Post by: GNUser on March 04, 2025, 02:18:20 PM
Yes, now it loads but seems to be too old for my application:

Code: [Select]
...
  File "/usr/local/lib/python3.9/site-packages/PIL/ImageCms.py", line 33, in <module>
    from . import _imagingcms as core
ImportError: cannot import name '_imagingcms' from 'PIL' (/usr/local/lib/python3.9/site-packages/PIL/__init__.py)

There are some commits to Pillow in late 2024 having to do with this file (ImageCms.py). It would be nice if python3.9-pillow.tcz could be updated for TCL16. If there's no time, no worries--I'll find a workaround.

Ref: https://github.com/python-pillow/Pillow/blob/main/src/PIL/ImageCms.py
Title: Re: python3.9-pillow will not load due to missing dependency
Post by: Juanito on March 08, 2025, 09:22:28 AM
python3.9-pillow updated, but not tested
Title: Re: python3.9-pillow will not load due to missing dependency
Post by: GNUser on March 08, 2025, 09:56:48 AM
Thanks, Juanito. Works well in my tests. I submitted an update to img2pdf.tcz now that it can use the python3.9-pillow.tcz extension (rather than bundle everything that it needs).