[Zope] Re: installing PIL on Window Zope

2006-02-16 Thread Josef Meile

Yes, I got that too long time ago when working with Zope 2.7.2 and
python 2.3.3. At that time I did the following in the python shell:

import PIL
PIL.Image

But I got as well:
AttributeError: 'module' object has no attribute 'Image'

Then I tried this:

from PIL import Image as PilImage

and it worked. Perhaps you are having the same problem.



import PIL.Image works too.

Image is the module in the package PIL.

Yes, I know that too. I used the as PilImage sintax in order to avoid
conflicts between the PIL Image and the Zope Image modules

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: installing PIL on Window Zope

2006-02-16 Thread Owen K



If you want to register your python in the Windows 
registry, try this URL
http://effbot.org/zone/python-register.htm

I just installed PIL this afternoon using the 
script above, then using the PIL installer. No complaints/errors. But I have not 
verified PIL function.

Regards,
Owen

  "Allen Huang" swapp0-/[EMAIL PROTECTED] 
  wrote in message news:[EMAIL PROTECTED]...
  I want to install PIL into zope but I couldn't use the installation 
  package since python that came with zope isn't register on windows. 
  
  so I installed python 2.3 seperately andI found some artical on the 
  zope website and it said to 
  - decompress and PIL package and move
  - Copy the PIL folder and the pil.pth file 
  from your Python folder 
  into:YourZopeFolder/lib/python 
  - Copy _imaging.pyd, _imagingtk.pyd, 
  tk83.dll and tcl83.dll into 
  YourZopeFolder/bin/DLLs
  - Copy PIL folder in 
  Zope\lib\python\PIL
  
  I did all that but I'm not sure if PIL now work with zope or not...
  
  I started importing External Script using PIL but all I get is -- 
  'module' object has no attribute 'Image'
  
  Can someone tell me how I can check if PIL works?
  Does anyone have asimple PILcoding I could use?
   
   
  
  
  What are the most popular cars? Find out at Yahoo! 
  Autos 
  
  

  ___Zope maillist 
  - 
  Zope@zope.orghttp://mail.zope.org/mailman/listinfo/zope** 
  No cross posts or HTML encoding! **(Related lists - 
  http://mail.zope.org/mailman/listinfo/zope-announcehttp://mail.zope.org/mailman/listinfo/zope-dev 
  )
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )