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 and I 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 a simple PIL coding I could use? --------------------------------- What are the most popular cars? Find out at Yahoo! Autos
Allen Huang schrieb:
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 and I 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 dont know why people like it so complicated :-) You simply install windows python in the same version your zope uses (also add win32 extensions with the nice IDE at will) as well as your PIL package. Then just change the path to the python interpreter in your Zope installation to the system python and viola.
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?
I'd go to the examples section. On the PIL website.
Does anyone have a simple PIL coding I could use?
I believe the zope book, section advanced scripting has some examples. Regards Tino
Hi... I assume that you mean to make modification to the path to the python interpreter in Zope at the \etc\zope.conf right? what lines should I add or modify? Tino Wildenhain <tino@wildenhain.de> wrote: Allen Huang schrieb:
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 and I 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 dont know why people like it so complicated :-) You simply install windows python in the same version your zope uses (also add win32 extensions with the nice IDE at will) as well as your PIL package. Then just change the path to the python interpreter in your Zope installation to the system python and viola.
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?
I'd go to the examples section. On the PIL website.
Does anyone have a simple PIL coding I could use?
I believe the zope book, section advanced scripting has some examples. Regards Tino --------------------------------- Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
Allen Huang wrote:
Hi... I assume that you mean to make modification to the path to the python interpreter in Zope at the \etc\zope.conf right?
No, you need to make the changes in runzope.bat, zope.conf is too late in the startup process... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Hi Allen
I started importing External Script using PIL but all I get is -- 'module' object has no attribute 'Image' 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. Regards, Josef
Josef Meile schrieb:
Hi Allen
I started importing External Script using PIL but all I get is -- 'module' object has no attribute 'Image'
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. Regards Tino
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
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@yahoo.com> wrote in message news:20060216083854.68208.qmail@web30205.mail.mud.yahoo.com... 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 and I 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 a simple PIL coding I could use? ------------------------------------------------------------------------------ What are the most popular cars? Find out at Yahoo! Autos ------------------------------------------------------------------------------ _______________________________________________ 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 )
participants (5)
-
Allen Huang -
Chris Withers -
Josef Meile -
Owen K -
Tino Wildenhain