LINUX.ORG.RU
решено ФорумAdmin

zope plone python & dev-python/imaging


0

0

Такая вот проблема, не могу установить Plone:

[ebuild R ] net-zope/zope-2.10.11 0 kB
[ebuild R ] dev-lang/python-3.1.2-r4 USE=«gdbm ncurses readline ssl threads (wide-unicode) xml -build -doc -examples -ipv6 -sqlite -tk -wininst» 0 kB
[ebuild R ] dev-python/imaging-1.1.7 USE="-X -doc -examples -scanner -tk" 0 kB
[ebuild R ] net-zope/plone-3.1.7 0 kB

lrwxrwxrwx 1 root root 14 Авг 20 17:04 /usr/bin/python -> python-wrapper
lrwxrwxrwx 1 root root 9 Авг 20 17:04 /usr/bin/python2 -> python2.6
-rwxr-xr-x 1 root root 5292 Авг 20 17:04 /usr/bin/python2.4
-rwxr-xr-x 1 root root 5292 Авг 9 16:03 /usr/bin/python2.6
lrwxrwxrwx 1 root root 9 Авг 9 16:18 /usr/bin/python3 -> python3.1
-rwxr-xr-x 1 root root 9388 Авг 9 16:17 /usr/bin/python3.1
-rwxr-xr-x 1 root root 217 Авг 20 17:04 /usr/bin/python-config
-rwxr-xr-x 1 root root 1624 Авг 20 17:04 /usr/bin/python-config-2.4
-rwxr-xr-x 1 root root 1200 Авг 9 16:02 /usr/bin/python-config-2.6
-rwxr-xr-x 1 root root 1177 Авг 9 16:16 /usr/bin/python-config-3.1
-rwxr-xr-x 1 root root 9388 Июн 23 09:23 /usr/bin/python-wrapper

python-updater -p
* Starting Python Updater...
* Main active version of Python: 2.6
* Active version of Python 2: 2.6
* Active version of Python 3: 3.1
* No packages need to be reinstalled.

net-zope/zope-2.10.11 зависит от RDEPEND=«=dev-lang/python-2.4*»
а dev-python/imaging-1.1.7 собирается dev-lang/python-2.6.5-r3

В системе установлены:
[ebuild R ] dev-lang/python-2.4.6 USE=«berkdb cxx gdbm ncurses readline ssl threads (wide-unicode) xml -bootstrap -build -doc -examples -ipv6 -tk -wininst» 0 kB
[ebuild R ] dev-lang/python-2.6.5-r3 USE=«berkdb gdbm ncurses readline ssl threads (wide-unicode) xml -build -doc -examples -ipv6 -sqlite -tk -wininst» 0 kB
[ebuild R ] dev-lang/python-3.1.2-r4 USE=«gdbm ncurses readline ssl threads (wide-unicode) xml -build -doc -examples -ipv6 -sqlite -tk -wininst» 0 kB


Не вижу в меню add «Plone Site»

cat event.log

------
2010-08-24T17:57:57 INFO ZServer HTTP server started at Tue Aug 24 17:57:57 2010
Hostname: 0.0.0.0
Port: 8080
------
2010-08-24T17:57:57 INFO Zope Set effective user to «tehnokom»
------
2010-08-24T17:57:59 ERROR PortalTransforms Problem importing module image_to_png : No module named PIL.Image
------
2010-08-24T17:57:59 ERROR PortalTransforms Problem importing module image_to_gif : No module named PIL.Image
------
2010-08-24T17:57:59 ERROR PortalTransforms Problem importing module image_to_jpeg : No module named PIL.Image
------
2010-08-24T17:57:59 ERROR PortalTransforms Problem importing module image_to_pcx : No module named PIL.Image
------
2010-08-24T17:57:59 ERROR PortalTransforms Problem importing module image_to_ppm : No module named PIL.Image
------
2010-08-24T17:57:59 ERROR PortalTransforms Problem importing module image_to_tiff : No module named PIL.Image
------
2010-08-24T17:57:59 ERROR PortalTransforms Problem importing module image_to_bmp : No module named PIL.Image
------
2010-08-24T17:57:59 INFO Archetypes Products/Archetypes/Field.py[102]:?
Warning: no Python Imaging Libraries (PIL) found.Archetypes based ImageField's don't scale if neccessary.

------
2010-08-24T17:58:00 ERROR Application Could not import Products.ATContentTypes
Traceback (most recent call last):
File «/var/tmp/portage/net-zope/zope-2.10.11/image/usr/lib/zope-2.10.11/lib/python/OFS/Application.py», line 709, in import_product
File «/var/lib/zope/zope-/Products/ATContentTypes/__init__.py», line 64, in ?
import Products.ATContentTypes.content
File «/var/lib/zope/zope-/Products/ATContentTypes/content/__init__.py», line 26, in ?
import Products.ATContentTypes.content.link
File «/var/lib/zope/zope-/Products/ATContentTypes/content/link.py», line 39, in ?
from Products.ATContentTypes.content.base import registerATCT
File «/var/lib/zope/zope-/Products/ATContentTypes/content/base.py», line 63, in ?
from Products.CMFPlone.PloneFolder import ReplaceableWrapper
File «/var/lib/zope/zope-/Products/CMFPlone/__init__.py», line 215, in ?
from browser import ploneview
File «/var/lib/zope/zope-/Products/CMFPlone/browser/ploneview.py», line 12, in ?
from Products.CMFPlone import utils
File «/var/lib/zope/zope-/Products/CMFPlone/utils.py», line 6, in ?
from PIL import Image
ImportError: No module named PIL
------
2010-08-24T17:58:00 ERROR Application Could not import Products.CMFPlacefulWorkflow
Traceback (most recent call last):
File «/var/tmp/portage/net-zope/zope-2.10.11/image/usr/lib/zope-2.10.11/lib/python/OFS/Application.py», line 709, in import_product
File «/var/lib/zope/zope-/Products/CMFPlacefulWorkflow/__init__.py», line 26, in ?
import PlacefulWorkflowTool
File «/var/lib/zope/zope-/Products/CMFPlacefulWorkflow/PlacefulWorkflowTool.py», line 41, in ?
from Products.CMFPlone.migrations.migration_util import safeEditProperty
File «/var/lib/zope/zope-/Products/CMFPlone/__init__.py», line 215, in ?
from browser import ploneview
File «/var/lib/zope/zope-/Products/CMFPlone/browser/ploneview.py», line 12, in ?
from Products.CMFPlone import utils
File «/var/lib/zope/zope-/Products/CMFPlone/utils.py», line 6, in ?
from PIL import Image
ImportError: No module named PIL
------
2010-08-24T17:58:00 ERROR Application Could not import Products.CMFPlone
Traceback (most recent call last):
File «/var/tmp/portage/net-zope/zope-2.10.11/image/usr/lib/zope-2.10.11/lib/python/OFS/Application.py», line 709, in import_product
File «/var/lib/zope/zope-/Products/CMFPlone/__init__.py», line 215, in ?
from browser import ploneview
File «/var/lib/zope/zope-/Products/CMFPlone/browser/ploneview.py», line 12, in ?
from Products.CMFPlone import utils
File «/var/lib/zope/zope-/Products/CMFPlone/utils.py», line 6, in ?
from PIL import Image
ImportError: No module named PIL

............................

Ответ на: комментарий от JonSmith

Решение: USE_PYTHON="2.4 2.6"

echo USE_PYTHON=«2.4 2.6» >> /etc/make.conf && python-updater

Помогает!!!

Надо это прописать в документацию, а ещё лучше в ебылд.

JonSmith
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.