ImportError: cannot import name register_default_jsonb

36 views
Skip to first unread message

Carlos Ibrahim Arias

unread,
Apr 13, 2018, 7:50:06 AM4/13/18
to tryton-dev
Hello,

I'm testing tryton version 4.6 on a centos 7 host. I did the installation with no errors using the following script https://bitbucket.org/carlos_ia/trytoninstall/src/454963514b8270619c948c376a2318dcfb86c3cc/tryton-install?at=default&fileviewer=file-view-default based on nantic tools.

When trying to the init setup I got the following error:

[tryton@trytontest ~]$ /home/tryton/trytonERP/trytond/bin/trytond-admin --config /etc/trytond.conf -d cialDB --logconf /etc/trytond_log.conf --all
[Fri Apr 13 08:51:01 2018] INFO:server:using /etc/trytond_log.conf as logging configuration file
Traceback (most recent call last):
File "/home/tryton/trytonERP/trytond/bin/trytond-admin", line 21, in <module>
admin.run(options)
File "/home/tryton/trytonERP/trytond/trytond/admin.py", line 20, in run
Database = backend.get('Database')
File "/home/tryton/trytonERP/trytond/trytond/backend/__init__.py", line 34, in get
raise exception
ImportError: cannot import name register_default_jsonb

I disabled firewalld and SElinux is on permissive mode so the issue does not have anything to do them.

Anyone can help?

Thanks in advanced,

Carlos

Sergi Almacellas Abellana

unread,
Apr 13, 2018, 10:20:11 AM4/13/18
to tryto...@googlegroups.com
El 13/04/18 a les 10:59, Carlos Ibrahim Arias ha escrit:
> Hello,
>
> I'm testing tryton version 4.6 on a centos 7 host. I did the installation with no errors using the following script https://bitbucket.org/carlos_ia/trytoninstall/src/454963514b8270619c948c376a2318dcfb86c3cc/tryton-install?at=default&fileviewer=file-view-default based on nantic tools.
>
> When trying to the init setup I got the following error:
>
> [tryton@trytontest ~]$ /home/tryton/trytonERP/trytond/bin/trytond-admin --config /etc/trytond.conf -d cialDB --logconf /etc/trytond_log.conf --all
> [Fri Apr 13 08:51:01 2018] INFO:server:using /etc/trytond_log.conf as logging configuration file
> Traceback (most recent call last):
> File "/home/tryton/trytonERP/trytond/bin/trytond-admin", line 21, in <module>
> admin.run(options)
> File "/home/tryton/trytonERP/trytond/trytond/admin.py", line 20, in run
> Database = backend.get('Database')
> File "/home/tryton/trytonERP/trytond/trytond/backend/__init__.py", line 34, in get
> raise exception
> ImportError: cannot import name register_default_jsonb

The error is due to this changeset:

http://hg.tryton.org/trytond/rev/5eb2714a75da

which raised the required version of psycopg2 to 2.5.4

It seems that you have an older version. You should upgrade pyscopg2 in
order to fix it.

Hope it helps.

--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Carlos Ibrahim Arias

unread,
Apr 13, 2018, 4:05:06 PM4/13/18
to tryton-dev
It works. Gracias!
Reply all
Reply to author
Forward
0 new messages