I'm an experienced Python developer and these are my first steps with Python for Inkscape. I'm on Windows 11 with Inkscape 1.4.2.
I was testing the Simple Python Scripting extension (aside: the extension manager throws many errors, and I wasn't able to use it, but the extension loads fine) and I stumbled into the following error:
Traceback (most recent call last): File "C:\Users\giohappy\AppData\Roaming\inkscape\extensions\simpinkscr\simple_inkscape_scripting.py", line 35, in <module> import PIL.Image File "C:\Program Files\Inkscape\lib\python3.12\site-packages\PIL\Image.py", line 97, in <module> from . import _imaging as core ImportError: DLL load failed while importing _imaging: The specified module could not be found.
After inspecting the DLL dependencies of the imaging binary module (_imaging.cp312-mingw_x86_64_ucrt_gnu.pyd) I see that it searches for libimagequant.dll. I wasn't able to find it anywhere inside the Inkscape installed binaries.
I'm facing the same also on a different machine, so it doesn't seem an issue with my local setup. Maybe an issue with the Python libs shpped with Inkscape?
I'm an experienced Python developer and these are my first steps with Python for Inkscape.
I'm on Windows 11 with Inkscape 1.4.2.
I was testing the Simple Python Scripting extension (aside: the extension manager throws many errors, and I wasn't able to use it, but the extension loads fine) and I stumbled into the following error:
Traceback (most recent call last):
File "C:\Users\giohappy\AppData\Roaming\inkscape\extensions\simpinkscr\simple_inkscape_scripting.py", line 35, in <module>
import PIL.Image
File "C:\Program Files\Inkscape\lib\python3.12\site-packages\PIL\Image.py", line 97, in <module>
from . import _imaging as core
ImportError: DLL load failed while importing _imaging: The specified module could not be found.
After inspecting the DLL dependencies of the imaging binary module (_imaging.cp312-mingw_x86_64_ucrt_gnu.pyd) I see that it searches for libimagequant.dll. I wasn't able to find it anywhere inside the Inkscape installed binaries.
I'm facing the same also on a different machine, so it doesn't seem an issue with my local setup.
Maybe an issue with the Python libs shpped with Inkscape?
https://gitlab.com/inkscape/inkscape/-/issues/5728
Hopefully it will be fixed soon
Thanks. I've built branch 1.4.x from source and the error seems gone indeed.