2018-05-30 9:27 GMT+02:00 Cédric Krier <cedric.kr...@b2ck.com>: > On 2018-05-29 23:53, Cato Nano wrote: > > installing Tryton again in a debian machine, I can' t finish the > installation > > > > $ trytond-admin -c ./trytond.conf -d tryton --all > > Traceback (most recent call last): > > File "/usr/local/lib/python3.5/dist-packages/trytond/backend/__init__.py", > line 32, in get > > 'trytond.backend', db_type) > > ValueError: not enough values to unpack (expected 1, got 0) > > You have configured an wrong backend. > > > During handling of the above exception, another exception occurred: > > > > Traceback (most recent call last): > > File "/usr/local/bin/trytond-admin", line 21, in <module> > > admin.run(options) > > File "/usr/local/lib/python3.5/dist-packages/trytond/admin.py", line > 20, in run > > Database = backend.get('Database') > > File "/usr/local/lib/python3.5/dist-packages/trytond/backend/__init__.py", > line 34, in get > > raise exception > > File "/usr/local/lib/python3.5/dist-packages/trytond/backend/__init__.py", > line 26, in get > > __import__(modname) > > File > > "/usr/local/lib/python3.5/dist-packages/trytond/backend/postgresql/__init__.py", > line 4, in <module> > > from .database import * > > File > > "/usr/local/lib/python3.5/dist-packages/trytond/backend/postgresql/database.py", > line 16, in <module> > > from psycopg2 import connect, Binary > > ImportError: No module named 'psycopg2' > > psycopg2 is an optional dependencies only required if you use postgresql > backend. > > > If I install psycopg2 by hand, I get > > > > $ trytond-admin -c ./trytond.conf -d tryton --all > > Traceback (most recent call last): > > File "/usr/local/bin/trytond-admin", line 21, in <module> > > admin.run(options) > > File "/usr/local/lib/python3.5/dist-packages/trytond/admin.py", line > 54, in run > > installdeps=options.installdeps) > > File "/usr/local/lib/python3.5/dist-packages/trytond/pool.py", line > 160, in init > > lang=lang, installdeps=installdeps) > > File "/usr/local/lib/python3.5/dist-packages/trytond/modules/__init__.py", > line 467, in load_modules > > _load_modules(update) > > File "/usr/local/lib/python3.5/dist-packages/trytond/modules/__init__.py", > line 437, in _load_modules > > load_module_graph(graph, pool, update, lang) > > File "/usr/local/lib/python3.5/dist-packages/trytond/modules/__init__.py", > line 216, in load_module_graph > > code = get_parent_language(code) > > File "/usr/local/lib/python3.5/dist-packages/trytond/ir/lang.py", > line 499, in get_parent_language > > cursor.execute(*lang.select(lang.code, lang.parent)) > > File > > "/usr/local/lib/python3.5/dist-packages/trytond/backend/postgresql/database.py", > line 61, in execute > > cursor.execute(self, sql, args) > > psycopg2.ProgrammingError: column a.parent does not exist > > LINE 1: SELECT "a"."code", "a"."parent" FROM "ir_lang" AS "a" > > Did you launch on an empty database? It seems the database was already > filled by a previous version. >
The db was not empty It worked Thanks -- 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/CAJ98PDxadFhgPv%2BqZiYy0SqnR7_BuF8fEgRgJHEAbAjycUsnSg%40mail.gmail.com.