Bug#553943: zope-plone3: migrateToCMF21.py doesn't work

Claire Boussard claire.boussard at ujf-grenoble.fr
Mon Nov 2 11:23:15 UTC 2009


Package: zope-plone3
Version: 3.1.3-1
Severity: normal

I'm upgrading from zope2.7 (CMF 1.47) to zope2.10 and 
to upgrade my CMF sites, I try
cd /var/lib/zope2.10/instance/default
./bin/zopectl run Products/CMFCore/Extensions/migrateToCMF21.py

The response is

/usr/lib/zope2.10/lib/python/zope/configuration/xmlconfig.py:323: 
DeprecationWarning: zope.app.annotation has moved to zope.annotation. 
Import of zope.app.annotation will become unsupported in Zope 3.5
  __import__(arguments[0])
/usr/lib/zope2.10/lib/python/zope/configuration/fields.py:417: 
UserWarning: You did not specify an i18n translation domain for the 
'description' field in 
/var/lib/zope2.10/instance/default/Products/CMFSquidTool/configure.zcml
  warnings.warn(
/usr/lib/zope2.10/lib/python/zope/configuration/fields.py:417: 
UserWarning: You did not specify an i18n translation domain for the 
'title' field in 
/var/lib/zope2.10/instance/default/Products/CMFSquidTool/configure.zcml
  warnings.warn(
/var/lib/zope2.10/instance/default/Products/GenericSetup/registry.py:744: 
DeprecationWarning: Version for profile 
Products.CMFActionIcons:actionicons taken from version.txt. This is 
deprecated behaviour and will be removed in GenericSetup 1.5: please 
specify the version in metadata.xml.
  DeprecationWarning)
/var/lib/zope2.10/instance/default/Products/GenericSetup/registry.py:744: 
DeprecationWarning: Version for profile Products.CMFCalendar:default 
taken from version.txt. This is deprecated behaviour and will be removed 
in GenericSetup 1.5: please specify the version in metadata.xml.
  DeprecationWarning)
/var/lib/zope2.10/instance/default/Products/GenericSetup/registry.py:744: 
DeprecationWarning: Version for profile 
Products.CMFCalendar:skins_support taken from version.txt. This is 
deprecated behaviour and will be removed in GenericSetup 1.5: please 
specify the version in metadata.xml.
  DeprecationWarning)
/var/lib/zope2.10/instance/default/Products/GenericSetup/registry.py:744: 
DeprecationWarning: Version for profile Products.CMFDefault:default 
taken from version.txt. This is deprecated behaviour and will be removed 
in GenericSetup 1.5: please specify the version in metadata.xml.
  DeprecationWarning)
/var/lib/zope2.10/instance/default/Products/GenericSetup/registry.py:744: 
DeprecationWarning: Version for profile 
Products.CMFDefault:views_support taken from version.txt. This is 
deprecated behaviour and will be removed in GenericSetup 1.5: please 
specify the version in metadata.xml.
  DeprecationWarning)
/var/lib/zope2.10/instance/default/Products/GenericSetup/registry.py:744: 
DeprecationWarning: Version for profile 
Products.CMFDefault:sample_content taken from version.txt. This is 
deprecated behaviour and will be removed in GenericSetup 1.5: please 
specify the version in metadata.xml.
  DeprecationWarning)
/var/lib/zope2.10/instance/default/Products/GenericSetup/registry.py:744: 
DeprecationWarning: Version for profile Products.CMFTopic:default taken 
from version.txt. This is deprecated behaviour and will be removed in 
GenericSetup 1.5: please specify the version in metadata.xml.
  DeprecationWarning)
/var/lib/zope2.10/instance/default/Products/GenericSetup/registry.py:744: 
DeprecationWarning: Version for profile Products.CMFUid:default taken 
from version.txt. This is deprecated behaviour and will be removed in 
GenericSetup 1.5: please specify the version in metadata.xml.
  DeprecationWarning)
/var/lib/zope2.10/instance/default/Products/GenericSetup/registry.py:744: 
DeprecationWarning: Version for profile Products.DCWorkflow:revision2 
taken from version.txt. This is deprecated behaviour and will be removed 
in GenericSetup 1.5: please specify the version in metadata.xml.
  DeprecationWarning)
/var/lib/zope2.10/instance/default/Products/GenericSetup/registry.py:744: 
DeprecationWarning: Version for profile 
Products.MimetypesRegistry:MimetypesRegistry taken from version.txt. 
This is deprecated behaviour and will be removed in GenericSetup 1.5: 
please specify the version in metadata.xml.
  DeprecationWarning)
/var/lib/zope2.10/instance/default/Products/GenericSetup/registry.py:744: 
DeprecationWarning: Version for profile 
Products.PortalTransforms:PortalTransforms taken from version.txt. This 
is deprecated behaviour and will be removed in GenericSetup 1.5: please 
specify the version in metadata.xml.
  DeprecationWarning)
/var/lib/zope2.10/instance/default/Products/GenericSetup/registry.py:744: 
DeprecationWarning: Version for profile PluggableAuthService:simple 
taken from version.txt. This is deprecated behaviour and will be removed 
in GenericSetup 1.5: please specify the version in metadata.xml.
  DeprecationWarning)
/var/lib/zope2.10/instance/default/Products/GenericSetup/registry.py:744: 
DeprecationWarning: Version for profile PluggableAuthService:empty taken 
from version.txt. This is deprecated behaviour and will be removed in 
GenericSetup 1.5: please specify the version in metadata.xml.
  DeprecationWarning)
/usr/lib/zope2.10/lib/python/OFS/Application.py:833: DeprecationWarning: 
__init__.py of Products.ZPsycopgDA has a long deprecated 'methods' 
attribute. 'methods' support might be removed in Zope 2.11 or a later 
feature release. Please use the 'legacy' argument of registerClass 
instead if the methods are constructors. Or refactor the product using 
adapters.
  DeprecationWarning)
Starting CMF migration.
/var/lib/zope2.10/instance/default/Products/CMFCore/DirectoryView.py:497: 
UserWarning: DirectoryView content refers to a non-existing path 
'CMFDefault/skins/content'
  (self.id, reg_key), UserWarning)
/var/lib/zope2.10/instance/default/Products/CMFCore/DirectoryView.py:497: 
UserWarning: DirectoryView control refers to a non-existing path 
'CMFDefault/skins/control'
  (self.id, reg_key), UserWarning)
/var/lib/zope2.10/instance/default/Products/CMFCore/DirectoryView.py:497: 
UserWarning: DirectoryView generic refers to a non-existing path 
'CMFDefault/skins/generic'
  (self.id, reg_key), UserWarning)
/var/lib/zope2.10/instance/default/Products/CMFCore/DirectoryView.py:497: 
UserWarning: DirectoryView no_css refers to a non-existing path 
'CMFDefault/skins/no_css'
  (self.id, reg_key), UserWarning)
/var/lib/zope2.10/instance/default/Products/CMFCore/DirectoryView.py:497: 
UserWarning: DirectoryView nouvelle refers to a non-existing path 
'CMFDefault/skins/nouvelle'
  (self.id, reg_key), UserWarning)
/var/lib/zope2.10/instance/default/Products/CMFCore/DirectoryView.py:497: 
UserWarning: DirectoryView topic refers to a non-existing path 
'CMFTopic/skins/topic'
  (self.id, reg_key), UserWarning)
 - converting site at /enquete
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "Products/CMFCore/Extensions/migrateToCMF21.py", line 114, in ?
    migrate_site(site)
  File "Products/CMFCore/Extensions/migrateToCMF21.py", line 65, in 
migrate_site
    ps = site.portal_setup
AttributeError: portal_setup

I thought, the script was supposed to work for CMF version 1.3 and after
(cf 
http://svn.zope.org/CMF/tags/2.1.1/INSTALL.txt?rev=82686&view=markup)

-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages zope-plone3 depends on:
ii  libjs-prototype     1.6.0.2-4            JavaScript Framework for dynamic w
ii  lynx                2.8.7dev9-2.1        Text-mode WWW Browser (transitiona
pn  pdftohtml           <none>               (no description available)
ii  poppler-utils [xpdf 0.8.7-2              PDF utilitites (based on libpopple
ii  python-docutils     0.5-2                Utilities for the documentation of
ii  python-elementtree  1.2.6-12             Light-weight toolkit for XML proce
ii  python-imaging      1.1.6-3              Python Imaging Library
ii  python-libxml2      2.6.32.dfsg-5+lenny1 Python bindings for the GNOME XML 
ii  xsltproc            1.1.24-2             XSLT command line processor
ii  zope-common         0.5.45               common settings and scripts for Zo
ii  zope-externaleditor 0.9.3-2              Zope External Editor
ii  zope2.10            2.10.6-1+lenny1      Open Source Web Application Server

Versions of packages zope-plone3 recommends:
ii  python-markdown               1.7-1      text-to-HTML conversion library/to
ii  python-openid                 2.2.1-2    OpenID support for servers and con
ii  python-textile                2.10-3.1.2 Python parser for the Textile mark
ii  zope-cachefu                  1.2-1      suite of Zope products for speedin
ii  zope-linguaplone              2.1.1-1    multilingual and translation solut

zope-plone3 suggests no packages.

-- no debconf information





More information about the pkg-zope-developers mailing list