Re: [tryton-dev] ImportError: cannot import name register_default_jsonb
El viernes, 13 de abril de 2018, 15:20:11 (UTC+1), Sergi Almacellas Abellana escribió: > 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=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 > > > > 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 It works. Gracias! -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/114fff7a-7aaf-470b-84c2-e72b2407ecda%40googlegroups.com.
Re: [tryton-dev] Package release announce
El 01/04/18 a les 14:39, Cédric Krier ha escrit: > Hi, > > The package release announce on tryton-annou...@googlegroups.com relies > on rss2email [1] and farmhouse [2], a service that B2CK is running to > generate RSS feeds. > farmhouse relies on the XML-RPC API of the now legacy PyPI website. But > it is going to be deprecated [3]. There is no planned date yet but I > think it is better to act before. > There is a service that provides also RSS feed of packages on PyPI (and > also npm): https://libraries.io/ > It is based on AGPL code: https://github.com/librariesio > I think we could use this feed instead of farmhouse. > Here is an example of the RSS feed: > https://libraries.io/pypi/trytond/versions.atom > The only different is about the text and title. It is limited to just > the version number. So the email will contain only the version number, > the sender name will be " versions - Libraries.io" and the link > will point to libraries.io page. > But I think it is only minor changes compare to the benefit of not > having to run farmhouse and have continuous plan after the close of > XML-RPC API. Looks as a good plan for me. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/bdeab37d-8edd-fe2f-441b-f728299bec9b%40koolpi.com.
Re: [tryton-dev] ImportError: cannot import name register_default_jsonb
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=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 > > 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 -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/6fe89384-6d15-c9db-a78c-1dad2def6669%40koolpi.com.
[tryton-dev] ImportError: cannot import name register_default_jsonb
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=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 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 -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/cd27cb71-cf3b-417e-8e58-bb7971c6361b%40googlegroups.com.
Re: [tryton-dev] Error on tax in Chart of account localisation
El 13/04/18 a les 00:32, Richmond Fiko ha escrit: > Hello, > > I try to make a localisation for West africa COA but I have this error on > taxes. > > > 1576 139907134330624 [2018-04-12 17:57:32,659] INFO trytond.modules > syscohada_2018:loading account.xml > 1576 139907134330624 [2018-04-12 17:57:56,624] INFO trytond.modules > syscohada_2018:loading tax.xml > 1576 139907134330624 [2018-04-12 17:57:57,349] ERROR trytond.convert Error > while parsing xml file: > In tag record: model account.tax.template with id vat_tax_4. > Traceback (most recent call last): > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", > line 447, in parse_xmlstream > self.sax_parser.parse(source) > File "/usr/lib/python3.5/xml/sax/expatreader.py", line 110, in parse > xmlreader.IncrementalParser.parse(self, source) > File "/usr/lib/python3.5/xml/sax/xmlreader.py", line 125, in parse > self.feed(buffer) > File "/usr/lib/python3.5/xml/sax/expatreader.py", line 210, in feed > self._parser.Parse(data, isFinal) > File "../Modules/pyexpat.c", line 468, in EndElement > File "/usr/lib/python3.5/xml/sax/expatreader.py", line 325, in end_element > self._cont_handler.endElement(name) > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", > line 507, in endElement > self.taghandler = self.taghandler.endElement(name) > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", > line 289, in endElement > self.model.__name__, self.values, self.xml_id) > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", > line 693, in import_record > self.create_records(model, [values], [fs_id]) > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", > line 699, in create_records > records = Model.create(vlist) > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/model/modelsql.py", > line 533, in create > insert_values.append(field.sql_format(value)) > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/model/fields/numeric.py", > line 32, in sql_format > assert isinstance(value, Decimal) > AssertionError > Traceback (most recent call last): > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/bin/trytond-admin", > line 21, in > admin.run(options) > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/admin.py", > line 53, in run > pool.init(update=options.update, lang=list(lang)) > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/pool.py", > line 153, in init > lang=lang) > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/modules/__init__.py", > line 453, in load_modules > _load_modules() > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/modules/__init__.py", > line 422, in _load_modules > load_module_graph(graph, pool, update, lang) > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/modules/__init__.py", > line 259, in load_module_graph > tryton_parser.parse_xmlstream(fp) > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", > line 447, in parse_xmlstream > self.sax_parser.parse(source) > File "/usr/lib/python3.5/xml/sax/expatreader.py", line 110, in parse > xmlreader.IncrementalParser.parse(self, source) > File "/usr/lib/python3.5/xml/sax/xmlreader.py", line 125, in parse > self.feed(buffer) > File "/usr/lib/python3.5/xml/sax/expatreader.py", line 210, in feed > self._parser.Parse(data, isFinal) > File "../Modules/pyexpat.c", line 468, in EndElement > File "/usr/lib/python3.5/xml/sax/expatreader.py", line 325, in end_element > self._cont_handler.endElement(name) > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", > line 507, in endElement > self.taghandler = self.taghandler.endElement(name) > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", > line 289, in endElement > self.model.__name__, self.values, self.xml_id) > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", > line 693, in import_record > self.create_records(model, [values], [fs_id]) > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", > line 699, in create_records > records = Model.create(vlist) > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/model/modelsql.py", > line 533, in create > insert_values.append(field.sql_format(value)) > File > "/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/model/fields/numeric.py", > line 32, in sql_format > assert isinstance(value, Decimal) > AssertionError > The problem is that you are setting a non decimal value for a Numeric field which