I recently upgraded our Plone 3.0.5 site to Plone 4.0.2, running on Mac OS X Server 10.6 (using the Mac OS X binary installer, not the Unified installer), and I am running into a problem.
The installation went OK, and the site is up, but all images on the site that need scaling are not displayed, apparently due to Plone being unable to find the _imaging C library. Here is a representative entry from the log: 2011-01-03T15:37:48 ERROR root could not scale ImageField "image" of http://csdl.ics.hawaii.edu/Plone/images-1/RobertBrewer.jpg Traceback (most recent call last): File "/Applications/Plone/buildout-cache/eggs/plone.app.imaging-1.0-py2.6.egg/plone/app/imaging/traverse.py", line 73, in createScale imgdata, format = field.scale(data, width, height) File "/Applications/Plone/buildout-cache/eggs/Products.Archetypes-1.6.4-py2.6.egg/Products/Archetypes/Field.py", line 2492, in scale image.save(thumbnail_file, format, quality=self.pil_quality) File "/Applications/Plone/buildout-cache/eggs/PIL-1.1.6-py2.6-macosx-10.4-x86_64.egg/PIL/Image.py", line 1372, in save self.load() File "/Applications/Plone/buildout-cache/eggs/PIL-1.1.6-py2.6-macosx-10.4-x86_64.egg/PIL/ImageFile.py", line 155, in load self.load_prepare() File "/Applications/Plone/buildout-cache/eggs/PIL-1.1.6-py2.6-macosx-10.4-x86_64.egg/PIL/ImageFile.py", line 223, in load_prepare self.im = Image.core.new(self.mode, self.size) File "/Applications/Plone/buildout-cache/eggs/PIL-1.1.6-py2.6-macosx-10.4-x86_ 64.egg/PIL/Image.py", line 36, in __getattr__ raise ImportError("The _imaging C module is not installed")ImportError: The _imaging C module is not installed I've spent a couple hours Googling on this, and while I have found a fair amount of discussion of PIL-related problems, I haven't found any satisfactory solution. The _imaging.so library is present in the /Applications/Plone/buildout-cache/eggs/PIL-1.1.6-py2.6-macosx-10.4-x86_64.egg directory, but Plone is not finding it for some reason. I have tried to modify the LD_LIBRARY_PATH manually in buildout.cfg (as suggested in some mailing list threads I found, see links below), but that doesn't seem to help, and is a bit of a slimey hack anyway. http://collective-docs.plone.org/tutorials/buildout/additional.html#setting-ld-library-path http://web.archiveorange.com/archive/v/FPm17R3yY4VWT4bbsexe I'm finding this all somewhat surprising, since I used the native installer, which I assumed would set everything up for me. Does anyone know what I can do to fix this? Is this an issue with the Mac installer? I'm fairly knowledgeable wrt Mac OS X and Unix, but I'm basically a Plone newbie. Mahalo! -- View this message in context: http://plone.293351.n2.nabble.com/imaging-so-not-found-tp5887646p5887646.html Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com. _______________________________________________ Setup mailing list [email protected] http://lists.plone.org/mailman/listinfo/setup
