Error in migration from 3.0.4 to Trytond 3.2.1

134 views
Skip to first unread message

Fabyc

unread,
May 28, 2014, 2:58:57 PM5/28/14
to try...@googlegroups.com
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.

In the previous version of Trytond (3.0.4) I have installed the next 
modules (with dependencies of course):

- sale
- purchase
- sale_opportunity
- project
- dashboard
- product_attribute
- product_price_list
- sale_price_list
- timesheet

After the database was restored I get the same message is reported here [1]

Fabyc

unread,
May 28, 2014, 3:08:38 PM5/28/14
to try...@googlegroups.com
I tried one more time to restore and now I got this 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 384, in _load_modules
    'to remove'))))
  File "/trytond/backend/postgresql/database.py", line 309, in execute
    return self.cursor.execute(sql, params)
ProgrammingError: relation "ir_module_module" does not exist
LINE 1: SELECT "a"."name" FROM "ir_module_module" AS "a" WHERE ("a"....
                               ^ 

Cédric Krier

unread,
May 28, 2014, 4:04:16 PM5/28/14
to try...@googlegroups.com
Some modules depend now on this new module so you have to install it.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Fabyc

unread,
May 28, 2014, 4:29:20 PM5/28/14
to try...@googlegroups.com
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

unread,
May 28, 2014, 4:44:46 PM5/28/14
to try...@googlegroups.com
Mixing series.

Fabyc

unread,
May 28, 2014, 6:07:23 PM5/28/14
to try...@googlegroups.com
I thought my mistake was when I cloned trytond I did it like this[1], it downloaded the 
version 3.2.1 of trytond and modules too, then I cloned again but this time with the current 
release (3.2.0) [2]. I tried to install account_invoice_stock [3] and I got the same error again:

TypeError: unsupported operand type(s) for |: 'list' and 'set' 


[1] hg nclone http://hg.trytond.org/trytond -r 3.2
[2] hg nclone http://hg.trytond.org/trytond -r 3.2.0
[3] server/bin/trytond -c /etc/trytond.conf -d test -i account_invoice_stock


Thanks

Cédric Krier

unread,
May 28, 2014, 6:33:49 PM5/28/14
to try...@googlegroups.com
On 28 May 15:07, Fabyc wrote:
> > Mixing series.
> >
>
> I thought my mistake was when I cloned trytond I did it like this[1], it
> downloaded the
> version 3.2.1 of trytond and modules too, then I cloned again but this time
> with the current
> release (3.2.0) [2]. I tried to install account_invoice_stock [3] and I got
> the same error again:
>
> TypeError: unsupported operand type(s) for |: 'list' and 'set'
>
>
> [1] hg nclone http://hg.trytond.org/trytond -r 3.2
> [2] hg nclone http://hg.trytond.org/trytond -r 3.2.0

Boths are wrong. "-r" is for revision, use -b for branch.

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

Fabyc

unread,
May 29, 2014, 12:52:50 PM5/29/14
to try...@googlegroups.com
On Wednesday, May 28, 2014 5:33:49 PM UTC-5, Cédric Krier wrote:
On 28 May 15:07, Fabyc wrote:
> > Mixing series.
> >
>
> I thought my mistake was when I cloned trytond I did it like this[1], it
> downloaded the
> version 3.2.1 of trytond and modules too, then I cloned again but this time
> with the current
> release (3.2.0) [2]. I tried to install account_invoice_stock [3] and I got
> the same error again:
>
> TypeError: unsupported operand type(s) for |: 'list' and 'set'
>
>
> [1] hg nclone http://hg.trytond.org/trytond -r 3.2
> [2] hg nclone http://hg.trytond.org/trytond -r 3.2.0

Boths are wrong. "-r" is for revision, use -b for branch.

Ok.

Thank you very much.
Reply all
Reply to author
Forward
0 new messages