Page 1 of 1

Getting Python Pillow to work with in-built python.

Posted: 18 Apr 2017, 21:08
by Fabian
Hi,
I've gotten Pillow installed via pip and all is fine except the _imaging module refuses to load. I assume it is some sort of binary incompatibility. Any advice to narrow down the problem. Other parts of Pillow that are not dependent on a binary module import just fine. I have a lot of VS redist packages installed too.

>>> from PIL import Image
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files\Autodesk\Softimage 2015 SP2\Application\python\Lib\site-packages\PIL\Image.py", line 67, in <module>
from PIL import _imaging as core
ImportError: DLL load failed: The specified module could not be found.

Best regards,
Fabian

Re: Getting Python Pillow to work with in-built python.

Posted: 19 Apr 2017, 19:43
by Daniel Brassard
I will assume you have loaded the most recent update.

from the installation site

https://pillow.readthedocs.io/en/latest ... ation.html
Warning

Pillow >= 2.1.0 no longer supports “import _imaging”. Please use “from PIL.Image import core as _imaging” instead.

Re: Getting Python Pillow to work with in-built python.

Posted: 24 Apr 2017, 23:38
by Fabian
Yes, I even tried all the older still available versions. Managed to get 1.7.8 compiled but without the dependencies so it's not very useful. This would take no time on Linux but getting this working on Windows is just painful. Digging through MS websites to find old compilers and SDK that then don't want to install on new windows versions etc. X(

Re: Getting Python Pillow to work with in-built python.

Posted: 26 Apr 2017, 20:11
by Daniel Brassard
I feel your pain and totally agree. Python compiling on Windows suck big time.

Have you tried the solution here:

http://stackoverflow.com/questions/2059 ... on-windows

Did you try one of the wheel package provided by Christoph Gohlke's here:

http://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow