You are not logged in Log in Join
You are here: Home » Members » P3B » ZPhotoSlides » ZPhotoSlides FAQ

Log in
Name

Password

 

ZPhotoSlides FAQ

This are the main questions that are frequently asked:

Question 1: Troubles with PIL under Windows

ZphotoSlides gives me the following error:

Traceback (most recent call last):
File "C:\Program Files\Plone\Zope\lib\python\OFS\Application.py", line 531, in import_product
product=__import__(pname, global_dict, global_dict, silly)
File "C:\Program Files\Plone\Zope\lib\python\Products\ZPhotoSlides\__init__.py", line 11, in ?
import ZPhotoSlides
File "C:\Program Files\Plone\Zope\lib\python\Products\ZPhotoSlides\ZPhotoSlides.py", line 43, in ?
from image_modif import Image_modif
File "C:\Program Files\Plone\Zope\lib\python\Products\ZPhotoSlides\image_modif.py", line 9, in ?
from PIL import ImageOps
ImportError: cannot import name ImageOps

In fact it seems that python imaging (aka python PIL) isn't correctly installed with your python distribution. Are you sure that PIL is installed? Did you install it for the right version of Python? PIL must be installed with the python which execute your Zope server. If you are using Python 2.1 try this file: http://effbot.org/downloads/PIL-1.1.3.win32-py2.1.exe. More informations about how to install PIL with windows can be found on this page: http://www.zope.org/Members/SmileyChris/howto/pil_for_windows


Question 2: PIL and Linux

Some users had more or less the same problems with PIL and Linux:

Traceback:
Traceback (most recent call last): File "/usr/local/www/Zope-2.5.1/lib/python/OFS/Application.py", line 531, in import_product
product=__import__(pname, global_dict, global_dict, silly)
File "/usr/local/www/Zope/lib/python/Products/ZPhotoSlides/__init__.py", line 11, in ?
import ZPhotoSlides
File "/usr/local/www/Zope/lib/python/Products/ZPhotoSlides/ZPhotoSlides.py", line 43, in ?
from image_modif import Image_modif
File "/usr/local/www/Zope/lib/python/Products/ZPhotoSlides/image_modif.py", line 9, in ?
from PIL import ImageOps
ImportError: cannot import name ImageOps

Some users told me that python-imaging was installed inside /site-packages and not to /site-packages/PIL (inside their python library folder) so that they don't have to import PIL like that from PIL import ImageOps but like that import ImageOps. The easiest would be to save all the PIL library inside it's own site-packages folder (which is in this case: /site-packages/PIL).

Question 3: PIL and Python

My Zope is running with Python 2.1 which version of PIL should i install?

It's right, you must install PIL for the version that runs Zope! To know more about which python version run Zope just go to the Zope Control Panel

Question 4: ZPhotoSlides not available to Add

I expanded the files inside /opt/zope/lib/python/Products but after restart of zope ZPhotoSlides isn't availabe to add in the management screen.

This means that ZPhotoSlides is broken inside your Zope. Go to Control_Panel/Products/ZPhotoSlides/manage_main to get more informations about why ZPhotoSlides is broken.

Back to the Product Page