RASA X:UnicodeEncode错误:'charmap' 编解码器在运行 Rasa X 时无法编码字符



我正在使用Rasa Open Source构建一个聊天机器人应用程序,它运行得很好。我想使用Rasa X来更多地利用它的功能。但每次运行命令rasa x:时,我都会遇到这个问题

Traceback (most recent call last):
File "c:usersadminanaconda3envschatbot3libsite-packagesrasaxcommunityservicesstory_service.py", line 212, in get_story_steps
return StoryService._reader_read_from_string(reader, story_string)
File "c:usersadminanaconda3envschatbot3libsite-packagesrasaxcommunityservicesstory_service.py", line 130, in _reader_read_from_string
f.write(story_string)
File "c:usersadminanaconda3envschatbot3libtempfile.py", line 481, in func_wrapper
return func(*args, **kwargs)
File "c:usersadminanaconda3envschatbot3libencodingscp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character 'u1ee7' in position 25: character maps to <undefined>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:usersadminanaconda3envschatbot3libsite-packagesrasaclix.py", line 500, in run_locally
domain_path=domain_path,
File "c:usersadminanaconda3envschatbot3libsite-packagesrasaxcommunitylocal.py", line 242, in main
project_path, data_path, session, args.port, config_path, domain_path
File "c:usersadminanaconda3envschatbot3libsite-packagesrasaxcommunitylocal.py", line 169, in _initialize_with_local_data
domain_path=domain_path,
File "c:usersadminanaconda3envschatbot3libasynciobase_events.py", line 579, in run_until_complete
return future.result()
File "c:usersadminanaconda3envschatbot3libsite-packagesrasaxcommunityinitialise.py", line 375, in inject_files_from_disk
username,
File "c:usersadminanaconda3envschatbot3libsite-packagesrasaxcommunityinitialise.py", line 135, in inject_stories
story_files, team, project_id, username
File "c:usersadminanaconda3envschatbot3libsite-packagesrasaxcommunityservicesstory_service.py", line 553, in save_stories_from_files
is_test=is_test,
File "c:usersadminanaconda3envschatbot3libsite-packagesrasaxcommunityservicesstory_service.py", line 434, in save_stories
story_string, filename, domain, is_test
File "c:usersadminanaconda3envschatbot3libsite-packagesrasaxcommunityservicesstory_service.py", line 332, in _extract_stories_markdown
test_stories=is_test,
File "c:usersadminanaconda3envschatbot3libsite-packagesrasaxcommunityservicesstory_service.py", line 216, in get_story_steps
"'{}'nError: {}".format(story_string, e)
rasa.shared.core.training_data.story_reader.story_reader.StoryParseError

我试过用rasa x,它似乎非常适合英语。但我现在的语言是越南语。rasa x有问题吗?

有人请帮帮我!

更新

我修复了charmap错误并成功启动了机器人,但出现了问题,使对话变得不那么顺利。

WARNING:rasax.community.services.event_consumers.event_consumer:Saving event failed due to an 'IntegrityError'.
An error occured when trying to send the telemetry event: HTTPSConnectionPool(host='api.segment.io', port=443): Max retries exceeded with url: /v1/track (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 500 Internal Server Error')))

此警告:

An error occured when trying to send the telemetry event: HTTPSConnectionPool(host='api.segment.io', port=443): Max retries exceeded with url: /v1/track (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 500 Internal Server Error')))

不是应该影响机器人的问题;它只是说它试图发送遥测事件,但不能。遥测事件不是你的机器人/Rasa X需要操作的东西。除非它导致了机器人的实际问题,否则你可以忽略它

最新更新