[Image-SIG] installation problem

K Schutte schutte@fel.tno.nl
Fri, 04 Apr 2003 08:45:43 +0200


Except .dll files there also should be .py files in the PIL distribution.
Place those files at a place where python looks for them; that is in
PYTHONPATH (set in environment) and in standard locations. For my python22
distribution this is in c:\Python22\Lib\site-packages.

Given what you describe it is my guess that it works when you move the
stuff in c:\Py22\Lib to c:\python22\lib.

Good luck,

Klamer

jef.mangelschots@invensys.com wrote:
> 
> I have a problem installing PIL (typicall for a newbee)
> 
> I have installed Python 2.2.1 in c:\python22  using ActiveState's
> ActivePython-2.2.1-222.msi
> 
> I have downloaded PIL version 1.2 (py22b1-pil-1.1.2-20011022.exe) and ran
> the installation. Everything was ok. It installed PIL in C:\Py22
> 
> I followed the instruction from ReportLab to copy the files in c:\py22\DLLs
> into c:\python22\DLLs
> these were the files _imaging.pyd and _imagingtk.pyd (there were no other
> files)
> 
> I tested whether the operation was ok with ">>>from PIL import Image"
> but got the following error message:  "ImportError: No module named PIL"
> 
> I also tried: ">>>import Image"
> I got the following error message:  "ImportError: No module named Image"
> 
> I then tried ">>>import _imaging"
> and got the following response (I started python with parameter -v):
> import _imaging # dynamically loaded from c:\python22\DLLs\_imaging.pyd
> 
> I assume I am missing some libraries or DLL's or am having the wrong ones.
> Who knows what I am doing wrong ?
> 
> Regards
> Jef mangelschots
> 
> _______________________________________________
> Image-SIG maillist  -  Image-SIG@python.org
> http://mail.python.org/mailman/listinfo/image-sig

-- 
Klamer Schutte, E-mail: Schutte@fel.tno.nl
Electro-Optical Systems, TNO Physics and Electronics Laboratory
Tel: +31-70-3740469 -- Fax: +31-70-3740654 -- Mobile: +31-6-51316671