Configuration error

63 views
Skip to first unread message

Alan Langford

unread,
Apr 15, 2016, 9:00:30 PM4/15/16
to tryton
I'm trying to set up tryton on CENTOS7 with MariaDB. I installed tryton with PIP. No modules are installed.

I have set up a database "trytondb" and a user of the same name. 

My database URI is (password replaced)

uri = mysql://trytondb:long_alphanumeric_pass@localhost:3306/

I've verified that I can connect to the database in a PHP script.

When I run tryton I get this error

$ trytond -c /etc/trytond/trytond.conf -d trytondb --all
Traceback (most recent call last):
  File "/usr/local/bin/trytond", line 80, in <module>
    server.TrytonServer(options).run()
  File "/usr/local/lib/python2.7/site-packages/trytond/server.py", line 84, in run
    with Transaction().start(db_name, 0) as transaction:
  File "/usr/local/lib/python2.7/site-packages/trytond/transaction.py", line 75, in start
    Database = backend.get('Database')
  File "/usr/local/lib/python2.7/site-packages/trytond/backend/__init__.py", line 30, in get
    ep, = pkg_resources.iter_entry_points('trytond.backend', db_type)
ValueError: need more than 0 values to unpack


Any advice as to what I've got wrong here is much appreciated.

Raimon Esteve

unread,
Apr 16, 2016, 2:16:12 AM4/16/16
to try...@googlegroups.com


El dia 16/04/2016 3.00, "Alan Langford" <abivi...@gmail.com> va escriure:

Are you installed python requeriments? MySQL-python?

Raimon

Alan Langford

unread,
Apr 16, 2016, 1:51:35 PM4/16/16
to tryton
That was part of the problem. For anyone else doing this, you need:

yum install mariadb-devel
pip install MySQL-python

Then, MySQL needs timezone tables to be loaded:

mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql

and now I have a database. Thanks, Raimon!
Reply all
Reply to author
Forward
0 new messages