[Image-SIG] version maze

Richard Jennings zaphod.beeblebrox at freesurf.ch
Thu May 6 06:28:56 EDT 2004


Hi,

I have been using Python 2.2 & PIL 1.1.3 on SusE 8.2 to develop a solution for 
an application and it works fine. However, this app. needs to run in the Zope 
environment (Zope 2.6.1 & Python 2.1.3).

SuSE8.2 seems determined to install PIL in python2.2/site-packages and I have 
not found a means of getting it to install PIL in python2.1/site-packages.
Worse, although my default 'python' is 2.1, when my code imports 'Image' it 
finds the 2.2 version, the result is:

File "./overTest.py", line 48, in ?
    overlayUpdate(sys.argv[1], pos)
  File "./overTest.py", line 19, in overlayUpdate
    overlay = Image.open(OVERLAY_FILE)
  File "//usr/lib/python2.2/site-packages/PIL/Image.py", line 977, in open
    preinit()
  File "//usr/lib/python2.2/site-packages/PIL/Image.py", line 192, in preinit
    __import__("%sImagePlugin" % m, globals(), locals(), [])
  File "//usr/lib/python2.2/site-packages/PIL/BmpImagePlugin.py", line 28, in 
?
    import Image, ImageFile, ImagePalette
  File "/opt/zope/lib/python/ImageFile.py", line 25, in ?
    from App.ImageFile import ImageFile
  File "/opt/zope/lib/python/App/ImageFile.py", line 17, in ?
    from OFS.content_types import guess_content_type
  File "/opt/zope/lib/python/OFS/content_types.py", line 16, in ?
    import re, mimetypes
  File "/usr/lib/python/re.py", line 28, in ?
    from sre import *
  File "/usr/lib/python/sre.py", line 17, in ?
    import sre_compile
  File "/usr/lib/python/sre_compile.py", line 15, in ?
    assert _sre.MAGIC == MAGIC, "SRE module mismatch"

The 'bad magic', I guess, is because of the incompatible python versions 
required by zope (zope 2.6.1 is reputed to run under python 2.2.2, but I 
don't know how stable this would be).

I do not want to jeopardise my zope installation.

My question: would a manual installation of PIL in the python2.1/site-packages 
work or would I damage something by this installation?

I googled but not found anything which helps me resolve this dilemma.

please help,
TIA





More information about the Image-SIG mailing list