Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302532 - net-zope/plone-3.1.7 needs dev-python/imaging-1.1.7, but Imaging gets installed for wrong python version
Summary: net-zope/plone-3.1.7 needs dev-python/imaging-1.1.7, but Imaging gets install...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: net-zope (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-27 21:18 UTC by Stefan
Modified: 2012-03-01 16:00 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan 2010-01-27 21:18:50 UTC
net-zope/plone-3.1.7 depends on dev-lang/python-2.4 and dev-python/imaging-1.1.7 but imaging gets installed for dev-lang/python-2.6 only. So if you follow the guides on various gentoo howtos and start the zope-server, you are not able to choose a Plone-Site to set up the CMS in the zope ZMI.

If you start the zope server in foreground by using zopectl you get an error:
ImportError: No module named PIL



Reproducible: Always

Steps to Reproduce:
1. emerge plone
2. zope-config
3. zprod-manager add
4. cd /var/lib/zope/zope-INSTANCE/bin
5. ./zopectl -i
6. fg

Actual Results:  
ImportError: No module named PIL

Expected Results:  
Install dev-python/imaging-1.1.7 as a python-2.4 site-package

Workaround:
Download source-code from http://www.pythonware.com/products/pil/ and unpack. Use

eselect python set VERSION

to switch python version, type

python setup.py install

to install imaging as python-2.4 package. Don't forget to reset you python version by running eselct again.
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2010-01-29 10:34:18 UTC
@python: what is the common approach to resolve this issue?
Comment 2 Dirkjan Ochtman (RETIRED) gentoo-dev 2010-01-29 10:36:37 UTC
I think you can do USE_PYTHON="2.4" emerge imaging.
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-30 19:06:44 UTC
(In reply to comment #2)
> I think you can do USE_PYTHON="2.4" emerge imaging.

dev-python/imaging might be required by some packages installed for Python 2.6, so USE_PYTHON="2.4 2.6" might be better.
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-31 19:41:23 UTC
The next version of Plone will support Python 2.6.

(In reply to comment #3)

Also it's generally recommended to set USE_PYTHON variable in /etc/make.conf, so that all packages are built for the same versions of Python.
Please remember to run python-updater after setting/changing USE_PYTHON variable.
Comment 5 Kevin Mulhern 2010-04-04 17:04:37 UTC
Has there been any move to make an ebuild using the Plone Unified Installer.

This seems to be the recommended way to install plone.
Comment 6 Dirkjan Ochtman (RETIRED) gentoo-dev 2012-03-01 16:00:55 UTC
net-zope packages have been removed from the tree.