On Tue, Feb 15, 2011 at 5:16 PM, Adam GROSZER <agros...@gmail.com> wrote:
> Hello, > > You got to use python 2.6, at least for zodbupdate. > > Thanks. I'd managed to get it going with 2.5 but I was getting this warning.. Warning: Missing factory for Persistence PersistentMapping Now, using python 2.6, I'm still getting the same warning. Looks like I need to get this missing factory because the resulting zodb.fs still gives the same error AttributeError: 'PersistentMapping' object has no attribute 'has_key' How do I install/configure this? Thanks. Chris. > On Tue, 15 Feb 2011 17:10:23 +0100 you wrote: > > > > > > > > On Tue, Feb 15, 2011 at 5:03 PM, Chris Fanning > > <christopher.fann...@gmail.com <mailto:christopher.fann...@gmail.com>> > > wrote: > > > > Hi, > > > > I've been using zodb as the database on a homebrew cms since 2004 > > without one single problem. :) > > Now we're changing hardware so we're upgrading software too. > > I'm running into problems. > > > > The client starts like this. > > > > from Persistence import PersistentMapping > > def __init__(self): > > ..... > > if not dbroot.has_key('pages'): > > dbroot['pages'] = PersistentMapping() > > > > So I changed the Persistence to > > from persistent.mapping import PersistentMapping > > > > And now I get the error > > 'PersistentMapping' object has no attribute 'has_key' > > > > From what I understand the objects are Broken and I need to upgrade > > the zodb. > > > > So I did > > #easy_install zodbupdate > > > > However I get this error. > > > > Running zodbupdate-0.5/setup.py -q bdist_egg --dist-dir > > /tmp/easy_install-iNI2JT/zodbupdate-0.5/egg-dist-tmp-AstNfF > > File "build/bdist.linux-x86_64/egg/zodbupdate/serialize.py", line > 165 > > > > > > symb = find_global(*symb_info, Broken=ZODBBroken) > > ^ > > SyntaxError: invalid syntax > > > > > > I'm at a real loss here. > > Any help please? > > > > Chris. > > > > > > > > > > _______________________________________________ > > For more information about ZODB, see the ZODB Wiki: > > http://www.zope.org/Wikis/ZODB/ > > > > ZODB-Dev mailing list - ZODB-Dev@zope.org > > https://mail.zope.org/mailman/listinfo/zodb-dev > > _______________________________________________ > For more information about ZODB, see the ZODB Wiki: > http://www.zope.org/Wikis/ZODB/ > > ZODB-Dev mailing list - ZODB-Dev@zope.org > https://mail.zope.org/mailman/listinfo/zodb-dev >
_______________________________________________ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org https://mail.zope.org/mailman/listinfo/zodb-dev