[Image-SIG] Only just now getting on the PIL

Fredrik Lundh fredrik@pythonware.com
Thu, 8 Feb 2001 20:46:11 +0100


Kent Tenney wrote:
> My path is wrong, it has 'E:' drive for the \python20\dlls directory

But the others are correct?

Under Windows, Python sets the path based on the location
of the Python core DLL, information from the registry, and the
PYTHONPATH environment variable.

Quick workaround 1: figure out where the standard PYDs/DLLs are:

>>> import _socket
>>> _socket.__file__
'c:\\py20\\dlls\\_socket.pyd'

and put the _imaging.dll in the same directory.

(if the _socket import gives you an import error, your installation is
broken. consider reinstalling...)

Quick workaround 2: move the _imaging.dll to the same directory
as PIL's python library files (e.g. c:\python20\PIL).

Cheers /F