我正在尝试使用 MySQL 作为数据库安装 Tryton ERP。目前还不太清楚你打算做什么。
从配置文档中,您只需将 uri 提供给 [database] 部分下的数据库:
[数据库] uri = mysql://user:pass@localhost:3306
但是运行trytond -v -c /home/user/.config/tryton/3.8/tryton.conf似乎并没有让它工作。当尝试访问运行 Tryton 的 127.0.0.1:8050 时,我只是得到127.0.0.1 - - [23/Nov/2015 16:55:10] 代码 404,找不到消息文件
有人会假设,Tryton 要么自行安装数据库,要么您需要以某种方式创建自己,但我没有看到任何相关文档。
我还尝试通过 Tryton GUI 添加数据库,但遇到以下错误:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tryton/gui/window/dbcreate.py", line 65, in server_change
common.refresh_langlist(self.combo_language, host, port)
File "/usr/local/lib/python2.7/dist-packages/tryton/common/common.py", line 253, in refresh_langlist
lang_list = rpc.db_exec(host, port, 'list_lang')
File "/usr/local/lib/python2.7/dist-packages/tryton/rpc.py", line 57, in db_exec
result = getattr(connection.common.db, method)(None, None, *args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1233, in __call__
return self.__send(self.__name, args)
File "/usr/local/lib/python2.7/dist-packages/tryton/jsonrpc.py", line 271, in __request
verbose=self.__verbose
File "/usr/lib/python2.7/xmlrpclib.py", line 1273, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python2.7/xmlrpclib.py", line 1306, in single_request
return self.parse_response(response)
File "/usr/lib/python2.7/xmlrpclib.py", line 1482, in parse_response
return u.close()
File "/usr/local/lib/python2.7/dist-packages/tryton/jsonrpc.py", line 134, in close
return json.loads(self.data, object_hook=object_hook)
File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 505, in loads
return cls(encoding=encoding, **kw).decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 389, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting value: line 1 column 2 (char 1)
我已经安装了此处列出的先决条件并安装了 MySQL-python 包,还有其他的吗?