[Setup] Re: Migration from Plone 2.1.2. to Plone 2.5.3

Zanotti Michele Michele.Zanotti at apss.tn.it
Wed May 30 14:04:51 UTC 2007


> -----Original Message-----
> From: setup-bounces at lists.plone.org 
> [mailto:setup-bounces at lists.plone.org] On Behalf Of Maurits van Rees
 .........
> But your main error is this:
> 
> Error type: cPickle.PicklingError
> Error value: Can't pickle <class 'App.Product.atoi'>: 
> attribute lookup App.Product.atoi failed
> 
> 
> `Pickling` means storing something in the zope database.  And 
> storing a class in the database, which seems what is being 
> tried here, indeed does not make much sense.
> 
> So it looks like you have a product in your Products folder 
> that is behaving badly.  If you can, try searching for code 
> in your Products folder that contains a line with this text.
> 
> If that does not work, give us a list of the products that 
> are in your Products folder.
  ...............

Thank you Maurits,
I have installed Zope 2.9.7 and I have always this error and searched
without results from product that can contain the code in the error. I
think the problem is in PlonePAS installation, because if I try to
istall PlonePAS from ZMI with quickinstaller I have this traceback:

  File
"C:\Zope\2.9.7\Zope\lib\python\ZServer\PubCore\ZServerPublisher.py",
line 23, in __init__
    response=response)
  File "C:\Zope\2.9.7\Zope\lib\python\ZPublisher\Publish.py", line 395,
in publish_module
    environ, debug, request, response)
  File "C:\Zope\2.9.7\Zope\lib\python\ZPublisher\Publish.py", line 196,
in publish_module_standard
    response = publish(request, module_name, after_list, debug=debug)
  File
"C:\Zope\Instance\2.9.7\Products\PlacelessTranslationService\PatchString
IO.py", line 34, in new_publish
    x = Publish.old_publish(request, module_name, after_list, debug)
  File "C:\Zope\2.9.7\Zope\lib\python\ZPublisher\Publish.py", line 115,
in publish
    request, bind=1)
  File "C:\Zope\2.9.7\Zope\lib\python\ZPublisher\mapply.py", line 88, in
mapply
    if debug is not None: return debug(object,args,context)
  File "C:\Zope\2.9.7\Zope\lib\python\ZPublisher\Publish.py", line 41,
in call_object
    result=apply(object,args) # Type s<cr> to step into published
object.
  File
"C:\Zope\Instance\2.9.7\Products\CMFQuickInstallerTool\QuickInstallerToo
l.py", line 465, in installProducts
    reinstall=reinstall)
  File
"C:\Zope\Instance\2.9.7\Products\CMFQuickInstallerTool\QuickInstallerToo
l.py", line 333, in installProduct
    res=install(portal)
  File
"C:\Zope\2.9.7\Zope\lib\python\Products\ExternalMethod\ExternalMethod.py
", line 225, in __call__
    try: return f(*args, **kw)
  File "C:\Zope\Instance\2.9.7\Products\PlonePAS\Extensions\Install.py",
line 848, in install
    migrate_root_uf(self, out)
  File "C:\Zope\Instance\2.9.7\Products\PlonePAS\Extensions\Install.py",
line 703, in migrate_root_uf
    replace_acl_users(parent, out)
  File
"C:\Zope\Instance\2.9.7\Products\PluggableAuthService\Extensions\upgrade
.py", line 196, in replace_acl_users
    _upgradeLocalRoleAssignments(self, RESPONSE)
  File
"C:\Zope\Instance\2.9.7\Products\PluggableAuthService\Extensions\upgrade
.py", line 188, in _upgradeLocalRoleAssignments
    descend(self.acl_users, self)
  File
"C:\Zope\Instance\2.9.7\Products\PluggableAuthService\Extensions\upgrade
.py", line 180, in descend
    descend(user_folder, o)
  File
"C:\Zope\Instance\2.9.7\Products\PluggableAuthService\Extensions\upgrade
.py", line 180, in descend
    descend(user_folder, o)
  File
"C:\Zope\Instance\2.9.7\Products\PluggableAuthService\Extensions\upgrade
.py", line 180, in descend
    descend(user_folder, o)
  File
"C:\Zope\Instance\2.9.7\Products\PluggableAuthService\Extensions\upgrade
.py", line 180, in descend
    descend(user_folder, o)
  File
"C:\Zope\Instance\2.9.7\Products\PluggableAuthService\Extensions\upgrade
.py", line 180, in descend
    descend(user_folder, o)
  File
"C:\Zope\Instance\2.9.7\Products\PluggableAuthService\Extensions\upgrade
.py", line 180, in descend
    descend(user_folder, o)
  File
"C:\Zope\Instance\2.9.7\Products\PluggableAuthService\Extensions\upgrade
.py", line 174, in descend
    transaction.savepoint(True)
  File "C:\Zope\2.9.7\Zope\lib\python\transaction\_manager.py", line
110, in savepoint
    return self.get().savepoint(optimistic)
  File "C:\Zope\2.9.7\Zope\lib\python\transaction\_transaction.py", line
295, in savepoint
    self._saveCommitishError() # reraises!
  File "C:\Zope\2.9.7\Zope\lib\python\transaction\_transaction.py", line
292, in savepoint
    savepoint = Savepoint(self, optimistic, *self._resources)
  File "C:\Zope\2.9.7\Zope\lib\python\transaction\_transaction.py", line
675, in __init__
    savepoint = savepoint()
  File "C:\Zope\2.9.7\Zope\lib\python\ZODB\Connection.py", line 1012, in
savepoint
    self._commit(None)
  File "C:\Zope\2.9.7\Zope\lib\python\ZODB\Connection.py", line 526, in
_commit
    self._store_objects(ObjectWriter(obj), transaction)
  File "C:\Zope\2.9.7\Zope\lib\python\ZODB\Connection.py", line 553, in
_store_objects
    p = writer.serialize(obj)  # This calls __getstate__ of obj
  File "C:\Zope\2.9.7\Zope\lib\python\ZODB\serialize.py", line 407, in
serialize
    return self._dump(meta, obj.__getstate__())
  File "C:\Zope\2.9.7\Zope\lib\python\ZODB\serialize.py", line 416, in
_dump
    self._p.dump(state)
PicklingError: Can't pickle <class 'App.Product.atoi'>: attribute lookup
App.Product.atoi failed
 (Also, the following error occurred while attempting to render the
standard error message, please see the event log for full details:
isDefaultPageInFolder)Traceback (innermost last): 

That appears to me very similar to the problem I have in upgrade:
....
Error type: cPickle.PicklingError 
Error value: Can't pickle <class 'App.Product.atoi'>: attribute lookup
App.Product.atoi failed 
File "C:\Programmi\Plone 2\Data\Products\CMFPlone\MigrationTool.py",
line 308, in upgrade newv, msgs = self._upgrade(newv) 
File "C:\Programmi\Plone 2\Data\Products\CMFPlone\MigrationTool.py",
line 414, in _upgrade res = function(self.aq_parent) 
File "C:\Programmi\Plone
2\Data\Products\CMFPlone\migrations\v2_5\alphas.py", line 24, in
alpha1_alpha2 installPlonePAS(portal, out) 
File "C:\Programmi\Plone
2\Data\Products\CMFPlone\migrations\v2_5\alphas.py", line 43, in
installPlonePAS installOrReinstallProduct(portal, 'PlonePAS', out) 
File "C:\Programmi\Plone
2\Data\Products\CMFPlone\migrations\migration_util.py", line 82, in
installOrReinstallProduct qi.installProduct(product_name) 
File "C:\Programmi\Plone
2\Data\Products\CMFQuickInstallerTool\QuickInstallerTool.py", line 333,
in installProduct res=install(portal) 
File "C:\Programmi\Plone
2\Zope\lib\python\Products\ExternalMethod\ExternalMethod.py", line 225,
in __call__ try: return f(*args, **kw) 
File "C:\Programmi\Plone
2\Data\Products\PlonePAS\Extensions\Install.py", line 848, in install
migrate_root_uf(self, out) 
File "C:\Programmi\Plone
2\Data\Products\PlonePAS\Extensions\Install.py", line 703, in
migrate_root_uf replace_acl_users(parent, out) 
File "C:\Programmi\Plone
2\Data\Products\PluggableAuthService\Extensions\upgrade.py", line 196,
in replace_acl_users _upgradeLocalRoleAssignments(self, RESPONSE) 
File "C:\Programmi\Plone
2\Data\Products\PluggableAuthService\Extensions\upgrade.py", line 188,
in _upgradeLocalRoleAssignments descend(self.acl_users, self) 
File "C:\Programmi\Plone
2\Data\Products\PluggableAuthService\Extensions\upgrade.py", line 180,
in descend descend(user_folder, o) 
File "C:\Programmi\Plone
2\Data\Products\PluggableAuthService\Extensions\upgrade.py", line 180,
in descend descend(user_folder, o) 
File "C:\Programmi\Plone
2\Data\Products\PluggableAuthService\Extensions\upgrade.py", line 180,
in descend descend(user_folder, o) 
....
 
Do you think I'm on the right way? And if i am, why PlonePAS doesn't
want to install?
Thank you
Michele



More information about the Setup mailing list