That was it. Need to remember and cleanup pyc when switching between branches.
Thanks to you both !
-Jonan
On Friday, October 28, 2016 at 3:35:03 PM UTC+8, Sergio Morillo wrote:
> El jueves, 27 de octubre de 2016, 19:00:11 (UTC+2), Jonan escribió:
> Hello,
>
> Currently running 3.6 and trying to upgrade to 3.8. Is there any upgrade
> guide like previous releases ?
>
> So far I am running into the following two problems when updating with:
> trytond --all. Any suggestions to fix ?
>
> The first is a warning about constraint. This constraint already exists and
> dropping or recreating does not make any difference:
> ----------------------------------------
>
> 17535 140673640511232 [2016-10-27 16:15:42,473] INFO trytond.modules
> ir:register ir.module.module
> 17535 140673640511232 [2016-10-27 16:15:42,841] WARNING
> trytond.backend.postgresql.table unable to add 'unique (name)'
> constraint on table ir_module_module !
> If you want to have it, you should update the records and execute manually:
> ALTER table "ir_module_module" ADD CONSTRAINT "ir_module_module_name_uniq"
> unique (name)
>
>
> The second is the following exception:
> ---------------------------------------------------
>
> 17535 140673640511232 [2016-10-27 16:15:44,354] INFO trytond.modules
> ir:register ir.module.module.config
> Traceback (most recent call last):
> File "./trytond/bin/trytond", line 80, in <module>
> server.TrytonServer(options).run()
> File "/home/dev/tryton-hg/3.8/trytond/trytond/server.py", line 112, in run
> Pool(db_name).init(update=self.options.update, lang=lang)
> File "/home/dev/tryton-hg/3.8/trytond/trytond/pool.py", line 155, in init
> lang=lang)
> File "/home/dev/tryton-hg/3.8/trytond/trytond/modules/__init__.py", line
> 427, in load_modules
> _load_modules()
> File "/home/dev/tryton-hg/3.8/trytond/trytond/modules/__init__.py", line
> 394, in _load_modules
> load_module_graph(graph, pool, update, lang)
> File "/home/dev/tryton-hg/3.8/trytond/trytond/modules/__init__.py", line
> 241, in load_module_graph
> module_state=package_state)
> File "/home/dev/tryton-hg/3.8/trytond/trytond/convert.py", line 417, in
> __init__
> Module = pool.get('ir.module')
> File "/home/dev/tryton-hg/3.8/trytond/trytond/pool.py", line 172, in get
> return self._pool[self.database_name][type][name]
> KeyError: 'ir.module'
>
>
>
>
> Seems there is some conflict with the versions you are working with. Model
> "ir.module.module" becomes "ir.module" in version 3.8.
> Could be an old trytond installed on python path/virtualenv?
>
>
> -Jonan
--
You received this message because you are subscribed to the Google Groups
"tryton" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton/b99d0d27-3159-4215-80dd-11a1183475dc%40googlegroups.com.