List Info

Thread: RE: Re: Migration from Plone 2.1.2. to Plone 2.5.3




RE: Re: Migration from Plone 2.1.2. to Plone 2.5.3
country flaguser name
Italy
2007-05-30 09:04:51
> -----Original Message-----
> From: setup-bounceslists.plone.org 
> [mailto:setup-bounceslists.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:Zope2.9.7ZopelibpythonZServerPubCoreZServerP
ublisher.py",
line 23, in __init__
    response=response)
  File
"C:Zope2.9.7ZopelibpythonZPublisherPublish.py&qu
ot;, line 395,
in publish_module
    environ, debug, request, response)
  File
"C:Zope2.9.7ZopelibpythonZPublisherPublish.py&qu
ot;, line 196,
in publish_module_standard
    response = publish(request, module_name, after_list,
debug=debug)
  File
"C:ZopeInstance2.9.7ProductsPlacelessTranslationSe
rvicePatchString
IO.py", line 34, in new_publish
    x = Publish.old_publish(request, module_name,
after_list, debug)
  File
"C:Zope2.9.7ZopelibpythonZPublisherPublish.py&qu
ot;, line 115,
in publish
    request, bind=1)
  File
"C:Zope2.9.7ZopelibpythonZPublishermapply.py&quo
t;, line 88, in
mapply
    if debug is not None: return debug(object,args,context)
  File
"C:Zope2.9.7ZopelibpythonZPublisherPublish.py&qu
ot;, line 41,
in call_object
    result=apply(object,args) # Type s<cr> to step
into published
object.
  File
"C:ZopeInstance2.9.7ProductsCMFQuickInstallerTool
QuickInstallerToo
l.py", line 465, in installProducts
    reinstall=reinstall)
  File
"C:ZopeInstance2.9.7ProductsCMFQuickInstallerTool
QuickInstallerToo
l.py", line 333, in installProduct
    res=install(portal)
  File
"C:Zope2.9.7ZopelibpythonProductsExternalMethod
ExternalMethod.py
", line 225, in __call__
    try: return f(*args, **kw)
  File
"C:ZopeInstance2.9.7ProductsPlonePASExtensionsIn
stall.py",
line 848, in install
    migrate_root_uf(self, out)
  File
"C:ZopeInstance2.9.7ProductsPlonePASExtensionsIn
stall.py",
line 703, in migrate_root_uf
    replace_acl_users(parent, out)
  File
"C:ZopeInstance2.9.7ProductsPluggableAuthServiceE
xtensionsupgrade
.py", line 196, in replace_acl_users
    _upgradeLocalRoleAssignments(self, RESPONSE)
  File
"C:ZopeInstance2.9.7ProductsPluggableAuthServiceE
xtensionsupgrade
.py", line 188, in _upgradeLocalRoleAssignments
    descend(self.acl_users, self)
  File
"C:ZopeInstance2.9.7ProductsPluggableAuthServiceE
xtensionsupgrade
.py", line 180, in descend
    descend(user_folder, o)
  File
"C:ZopeInstance2.9.7ProductsPluggableAuthServiceE
xtensionsupgrade
.py", line 180, in descend
    descend(user_folder, o)
  File
"C:ZopeInstance2.9.7ProductsPluggableAuthServiceE
xtensionsupgrade
.py", line 180, in descend
    descend(user_folder, o)
  File
"C:ZopeInstance2.9.7ProductsPluggableAuthServiceE
xtensionsupgrade
.py", line 180, in descend
    descend(user_folder, o)
  File
"C:ZopeInstance2.9.7ProductsPluggableAuthServiceE
xtensionsupgrade
.py", line 180, in descend
    descend(user_folder, o)
  File
"C:ZopeInstance2.9.7ProductsPluggableAuthServiceE
xtensionsupgrade
.py", line 180, in descend
    descend(user_folder, o)
  File
"C:ZopeInstance2.9.7ProductsPluggableAuthServiceE
xtensionsupgrade
.py", line 174, in descend
    transaction.savepoint(True)
  File
"C:Zope2.9.7Zopelibpythontransaction_manager.py&
quot;, line
110, in savepoint
    return self.get().savepoint(optimistic)
  File
"C:Zope2.9.7Zopelibpythontransaction_transaction
.py", line
295, in savepoint
    self._saveCommitishError() # reraises!
  File
"C:Zope2.9.7Zopelibpythontransaction_transaction
.py", line
292, in savepoint
    savepoint = Savepoint(self, optimistic,
*self._resources)
  File
"C:Zope2.9.7Zopelibpythontransaction_transaction
.py", line
675, in __init__
    savepoint = savepoint()
  File
"C:Zope2.9.7ZopelibpythonZODBConnection.py"
, line 1012, in
savepoint
    self._commit(None)
  File
"C:Zope2.9.7ZopelibpythonZODBConnection.py"
, line 526, in
_commit
    self._store_objects(ObjectWriter(obj), transaction)
  File
"C:Zope2.9.7ZopelibpythonZODBConnection.py"
, line 553, in
_store_objects
    p = writer.serialize(obj)  # This calls __getstate__ of
obj
  File
"C:Zope2.9.7ZopelibpythonZODBserialize.py",
line 407, in
serialize
    return self._dump(meta, obj.__getstate__())
  File
"C:Zope2.9.7ZopelibpythonZODBserialize.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:ProgrammiPlone
2DataProductsCMFPloneMigrationTool.py",
line 308, in upgrade newv, msgs = self._upgrade(newv) 
File "C:ProgrammiPlone
2DataProductsCMFPloneMigrationTool.py",
line 414, in _upgrade res = function(self.aq_parent) 
File "C:ProgrammiPlone
2DataProductsCMFPlonemigrationsv2_5alphas.py",
line 24, in
alpha1_alpha2 installPlonePAS(portal, out) 
File "C:ProgrammiPlone
2DataProductsCMFPlonemigrationsv2_5alphas.py",
line 43, in
installPlonePAS installOrReinstallProduct(portal,
'PlonePAS', out) 
File "C:ProgrammiPlone
2DataProductsCMFPlonemigrationsmigration_util.py",
line 82, in
installOrReinstallProduct qi.installProduct(product_name) 
File "C:ProgrammiPlone
2DataProductsCMFQuickInstallerToolQuickInstallerTool.py&
quot;, line 333,
in installProduct res=install(portal) 
File "C:ProgrammiPlone
2ZopelibpythonProductsExternalMethodExternalMethod.py&
quot;, line 225,
in __call__ try: return f(*args, **kw) 
File "C:ProgrammiPlone
2DataProductsPlonePASExtensionsInstall.py", line
848, in install
migrate_root_uf(self, out) 
File "C:ProgrammiPlone
2DataProductsPlonePASExtensionsInstall.py", line
703, in
migrate_root_uf replace_acl_users(parent, out) 
File "C:ProgrammiPlone
2DataProductsPluggableAuthServiceExtensionsupgrade.py&q
uot;, line 196,
in replace_acl_users _upgradeLocalRoleAssignments(self,
RESPONSE) 
File "C:ProgrammiPlone
2DataProductsPluggableAuthServiceExtensionsupgrade.py&q
uot;, line 188,
in _upgradeLocalRoleAssignments descend(self.acl_users,
self) 
File "C:ProgrammiPlone
2DataProductsPluggableAuthServiceExtensionsupgrade.py&q
uot;, line 180,
in descend descend(user_folder, o) 
File "C:ProgrammiPlone
2DataProductsPluggableAuthServiceExtensionsupgrade.py&q
uot;, line 180,
in descend descend(user_folder, o) 
File "C:ProgrammiPlone
2DataProductsPluggableAuthServiceExtensionsupgrade.py&q
uot;, 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

_______________________________________________
Setup mailing list
Setuplists.plone.org
http://
lists.plone.org/mailman/listinfo/setup

Re: Migration from Plone 2.1.2. to Plone 2.5.3
country flaguser name
Germany
2007-05-30 09:59:43
Zanotti Michele, on 2007-05-30:
>   File
>
"C:ZopeInstance2.9.7ProductsPluggableAuthServiceE
xtensionsupgrade
> .py", line 174, in descend
>     transaction.savepoint(True)
(...)
>   File
"C:Zope2.9.7ZopelibpythonZODBserialize.py",
line 416, in
> _dump
>     self._p.dump(state)
> PicklingError: Can't pickle <class
'App.Product.atoi'>: attribute lookup
> App.Product.atoi failed
(...)
> Do you think I'm on the right way? And if i am, why
PlonePAS doesn't
> want to install?
> Thank you
> Michele

Yes, something goes wrong in the PlonePAS install while
updating local
role assignments.  But why?  You could search for the string
'atoi' in
the member and groups search form and in the search form of
the site.
Maybe a strange username or some content is in the way. 
That would
surprise me though.

-- 
Maurits van Rees | http://maurits.vanrees.or
g/ [NL]
            Work | http://zestsoftware.nl/
"Do not worry about your difficulties in computers,
 I can assure you mine are still greater."


_______________________________________________
Setup mailing list
Setuplists.plone.org
http://
lists.plone.org/mailman/listinfo/setup

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )