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)
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'
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"
^