On Wednesday, May 28, 2014 3:04:16 PM UTC-5, Cédric Krier wrote:
>
> On 28 May 11:58, Fabyc wrote: 
> > I'm trying to migrate from Trytond 3.0.4 to Trytond 3.2.1 
> > 
> > I backed up the database from the Tryton client 3.0.4 
> > and then I'm trying to restore it in Tryton 3.2.1 
> > 
> > After the database is restored, I get the next error: 
> > 
> > Traceback (most recent call last): 
> >   File "/trytond/protocols/jsonrpc.py", line 125, in _marshaled_dispatch 
> >     response['result'] = dispatch_method(method, params) 
> >   File "/trytond/protocols/jsonrpc.py", line 158, in _dispatch 
> >     res = dispatch(*args) 
> >   File "/trytond/protocols/dispatcher.py", line 42, in dispatch 
> >     res = security.login(database_name, user, session) 
> >   File "/trytond/security.py", line 19, in login 
> >     pool = _get_pool(dbname) 
> >   File "/trytond/security.py", line 13, in _get_pool 
> >     pool.init() 
> >   File "/trytond/pool.py", line 151, in init 
> >     lang=lang) 
> >   File "/trytond/modules/__init__.py", line 433, in load_modules 
> >     _load_modules() 
> >   File "/trytond/modules/__init__.py", line 393, in _load_modules 
> >     graph = create_graph(module_list)[0] 
> >   File "/trytond/modules/__init__.py", line 192, in create_graph 
> >     - set((p[0] for p in packages)))) 
> > Exception: Missing dependencies: ['account_invoice_stock'] 
> > 
> > 
> > The module account_invoice_stock is copied in trytond/modules 
> > in Trytond 3.2.1 
> > 
> > I don't know why the message about is missing that module. 
>
> Some modules depend now on this new module so you have to install it. 
>

I tried to install [1] account_invoice_stock an I get this error:

Traceback (most recent call last):
  File "/bin/trytond", line 113, in <module>
    trytond.server.TrytonServer(options).run()
  File "/trytond/server.py", line 123, in run
    Pool(db_name).init(update=update, lang=lang)
  File "/trytond/pool.py", line 151, in init
    lang=lang)
  File "/trytond/modules/__init__.py", line 428, in load_modules
    _load_modules()
  File "/trytond/modules/__init__.py", line 396, in _load_modules
    load_module_graph(graph, pool, lang)
  File "/trytond/modules/__init__.py", line 223, in load_module_graph
    classes = pool.setup(module)
  File "/trytond/pool.py", line 225, in setup
    cls.__setup__()
  File "/trytond/modules/purchase/invoice.py", line 40, in __setup__
    super(Invoice, cls).__setup__()
  File "/trytond/modules/account_invoice/invoice.py", line 169, in __setup__
    super(Invoice, cls).__setup__()
  File "/trytond/model/workflow.py", line 14, in __setup__
    super(Workflow, cls).__setup__()
  File "/trytond/model/modelsql.py", line 39, in __setup__
    super(ModelSQL, cls).__setup__()
  File "/trytond/model/modelstorage.py", line 47, in __setup__
    super(ModelStorage, cls).__setup__()
  File "/trytond/model/modelview.py", line 101, in __setup__
    super(ModelView, cls).__setup__()
  File "/trytond/model/model.py", line 67, in __setup__
    getattr(field, attribute) | function.depends)
TypeError: unsupported operand type(s) for |: 'list' and 'set'


[1] server/bin/trytond -c /etc/trytond.conf -d test -i account_invoice_stock
 


> -- 
> Cédric Krier - B2CK SPRL 
> Email/Jabber: [email protected] <javascript:> 
> Tel: +32 472 54 46 59 
> Website: http://www.b2ck.com/ 
>

Reply via email to