From: rik <ri...@co...> - 2008-08-08 21:51:53
|
another reprise on approx the same theme: I am also on an i386 mac, running 10.4, had a zope/plone working from the universal installer. but i am trying to get modern using buildout, generic easy_setup, etc, ala: $ sudo python ez_setup.py -U setuptools $ sudo easy_install -U ZopeSkel $ paster create -t plone3_buildout zopebo $ cd zopebo $ python bootstrap.py $ ./bin/buildout $ ./bin/instance fg * generated errors like: > 2008-08-08 13:31:17 ERROR PortalTransforms Problem importing module > image_to_png : No module named PIL.Image > 2008-08-08 13:31:17 ERROR PortalTransforms Problem importing module > image_to_gif : No module named PIL.Image > ... * attempting to use easy_install for PIL > $ sudo easy_install --find-links http://www.pythonware.com/products/pil/ > Imaging > Searching for Imaging > Reading http://www.pythonware.com/products/pil/ > Best match: Imaging 1.1.6 > Downloading http://effbot.org/downloads/Imaging-1.1.6.tar.gz > Processing Imaging-1.1.6.tar.gz > Running Imaging-1.1.6/setup.py -q bdist_egg --dist-dir > /tmp/easy_install-LbkblS/Imaging-1.1.6/egg-dist-tmp-Rhmn0H > --- using frameworks at /System/Library/Frameworks > /usr/bin/ld: for architecture ppc > /usr/bin/ld: warning /sw/lib/libjpeg.dylib cputype (7, architecture i386) > does not match cputype (18) for specified -arch flag: ppc (file not > loaded) * so there seems to be some PPC/i386 library conflict? but i knew i had the (i386-compile version of) PIL that came as part of Plone's universal distribution, and that worked fine. so, i simply COPIED the PILwoTk-1.1.6.3-py2.4-macosx-10.3-i386.egg directory from /opt/Plone-3.1/Python-2.4/lib/python2.4/site-packages/ to /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/ then i also added the line: ./PILwoTk-1.1.6.3-py2.4-macosx-10.3-i386.egg to easy-install.pth (also in .../site-packages) * definitely a hack, and i am bothered by the PPC/i386 library conflict issue. as mentioned above, a better solution may involve explicit inclusion of PIL (and zlib, libjpeg) as part of the buildout.cfg, maybe using Macports (i have been using fink, and don't have experience with macports). and/or more complete insulation of the easy_install/buildout/zope/plone python environment from the OSX python specifics, via chroot (cf. http://transcyberia.info/archives/12-chroot-plone-buildouts.html) virtualenv with the "--no-site-packages" option, ... but it seems to be working! -- View this message in context: http://n2.nabble.com/buildout-and-PIL-on-OS-X-tp337007p681842.html Sent from the General Questions mailing list archive at Nabble.com. |