[Cubicweb] Migration Script / Pyro / load_appobjects method.
carlos.balderas at gmail.com
Tue Dec 11 17:33:28 CET 2012
Aurelian, Sylvain, thank you for your quick answer.
Aurelian, I was doing some cleaning to paste the code in pastebin, then, I
realized that I had called twice the load_appobjects, this duplicity is the
one making throwing the exception.
I fix that and I got rid of the error. :)
Sylvain, I am sorry to make a confusion about the "migration" cubicweb
concept, I am doing a transformation data script to export/import data from
one cubicweb instance to another one with a different schema.
On Tue, Dec 11, 2012 at 10:13 AM, Sylvain Thénault <
sylvain.thenault at logilab.fr> wrote:
> Hi Carlos,
> On 11 décembre 09:34, Carlos Balderas wrote:
> > Hi List, I am running a migration script between 2 cubicweb instances,
> > using Pyro server.
> > I am getting an error when I try to use the method "load_appobjects()" to
> > take advantage of cubicweb objects.
> > The error I am getting is about missing cubes:
> > File "/home/carlos/src/fcubicweb/cubicweb/cwconfig.py", line 824, in init
> > _cubes
> > assert self._cubes is None, repr(self._cubes)
> > AssertionError: (u'platypus', u'email', u'addressbook', u'comment',
> > u'file', u'link', u'orbui', u'tag', u'zone')
> > All cubes are accessible by the cubicweb web application which is running
> > smooth.
> > Does anybody know what could be happening?
> It's not clear to me what are you trying to achieve: migration can't be
> through pyro, you need a in-memory repo. If you've two instances for an
> application, you should shutdown both of them, upgrade one then the other
> (the second migration being quicker as the data model has already been
> Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse
> Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
> Développement logiciel sur mesure: http://www.logilab.fr/services
> CubicWeb, the semantic web framework: http://www.cubicweb.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Cubicweb