-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
服务正常启动,但运行py-demo报错 #23
Labels
bug
Something isn't working
Comments
按照 部署文档里的操作,下载的docker镜像是最新的,但是一部分配置文件不是在docker内,这些配置需要持久化,却不是最新的。稍后会发布新的配置文件为新版本,配合最新的镜像。 之前部署的方式是 clone git,然后启动,每次使用的是bleeding edge,故未遇到这个问题。 部署和升级现在是有考虑的,这部分文档和方法需要更简单。感谢反馈! |
hailiang-wang
pushed a commit
that referenced
this issue
Oct 3, 2020
hailiang-wang
pushed a commit
that referenced
this issue
Oct 3, 2020
hailiang-wang
pushed a commit
that referenced
this issue
Oct 3, 2020
hailiang-wang
pushed a commit
that referenced
this issue
Oct 3, 2020
hailiang-wang
pushed a commit
that referenced
this issue
Oct 3, 2020
hailiang-wang
pushed a commit
that referenced
this issue
Oct 3, 2020
hailiang-wang
pushed a commit
that referenced
this issue
Oct 3, 2020
hailiang-wang
pushed a commit
that referenced
this issue
Oct 3, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
服务端是linux,使用docker部署了clause,启动显示正常。
在windows上,使用vscode运行 clause-py-demo 工程,报错如下:
“UnicodeDecodeError: 'gbk' codec can't decode byte 0x85 in position 190: illegal multibyte sequence”
把with open(os.path.join(curdir, "profile.json"), 'r') as f: 中的'r'改成‘rb’后编码的问题解决,又报以下问题:
[connect] clause host 172.16.1.103, port 8056
[clean_up_bot] remove intent take_out
[create] dict name food
[create] dict name phoneNumber
[create] intent name take_out
[create] intent slot time
[create] intent slot loc
[create] intent slot food
[create] intent slot phone
[create] intent utter 我想订一份{food}
[create] intent utter 我想点外卖
[create] intent utter 我想点一份外卖,{time}用餐
[create] intent utter 我想点一份{food},送到{loc}
[train] start to train bot ...
[train] error Data(rc=None, error=None, msg=None, id=None, chatbotID=None, customdicts=None, sysdicts=None, botsysdicts=None, dictwords=None, customdict=None, sysdict=None, botsysdict=None, dictword=None, dictpattern=None, patterncheck=None, patternchecks=None, intents=None, slots=None, utters=None, intent=None, slot=None, utter=None, devvers=None, provers=None, devver=None, prover=None, sessions=None, messages=None, session=None, message=None, currpage=None, totalpage=None, totalrows=None, pagesize=None, page=None, query=None)
Traceback (most recent call last):
File "f:/study/clause-py-demo/bot.py", line 169, in
raise Exception("Unexpected response with training bot request.")
Exception: Unexpected response with training bot request.
在 clause server服务内运行 docker-compose logs -f 查看日志,发现以下内容:
clause_1 | SELECT id, description, createdate, updatedate from cl_intents WHERE chatbotID ='bot007' and name = 'take_out'
clause_1 | ---
clause_1 | I0927 10:15:54.910068 36 maf.hpp:137] getDictDetailByChatbotIDAndName name: @time, chatbotID: @Builtin, isBuiltin: 1
clause_1 | I0927 10:15:54.910094 36 maf.hpp:151] getDictDetailByChatbotIDAndName execute SQL:
clause_1 | ---
clause_1 | SELECT id, name, chatbotID, description, createdate, updatedate, samples, type, vendor, builtin, active from cl_dicts WHERE name ='@time' and chatbotID = '@Builtin'
clause_1 | ---
clause_1 | I0927 10:15:54.910348 36 handler.cpp:3259] # ERR: SQLException in /home/hain/git/clause/src/clause/src/handler.cpp
clause_1 | I0927 10:15:54.910369 36 handler.cpp:3261] # ERR: Unknown column 'type' in 'field list'
The text was updated successfully, but these errors were encountered: