Closed impulsecorp closed 4 years ago
I switched to using a fresh program-y installation with fresh y-bot AIML files (downloaded via "sudo python3 -m programy.admin.tool download y-bot") but there was still a problem. Some queries, which are statements not questions, like "school is fun" or "cat food" gave a "null" response from the chatbot.
I then downgraded to program-y version 3.9.1 (sudo pip3 install --upgrade programy==3.9.1) and that fixed the problem.
The log file with version 4.1.1 showed this for the errors: 2020-02-16 03:15:30,270 werkzeug INFO - 35.169.63.209 - - [16/Feb/2020 03:15:30] "[37mGET /api/rest/v1.0/ask?question=Cats&userid=7046709 HTTP/1.1[0m" 200 - 2020-02-16 03:15:39,636 root ERROR - [flask] [bot] [brain] [7046709] - No set named [NAME] in sets collection 2020-02-16 03:15:39,648 root ERROR - [flask] [bot] [brain] [7046709] - No set named [NAME] in sets collection 2020-02-16 03:15:39,658 werkzeug INFO - 35.169.63.209 - - [16/Feb/2020 03:15:39] "[37mGET /api/rest/v1.0/ask?question=Cat%20food&userid=7046709 HTTP/1.1[0m" 200 - 2020-02-16 03:15:48,429 root ERROR - [flask] [bot] [brain] [7046709] - No set named [NAME] in sets collection 2020-02-16 03:15:48,441 root ERROR - [flask] [bot] [brain] [7046709] - No set named [NAME] in sets collection 2020-02-16 03:15:48,450 werkzeug INFO - 35.169.63.209 - - [16/Feb/2020 03:15:48] "[37mGET /api/rest/v1.0/ask?question=Love%20sucks&userid=7046709 HTTP/1.1[0m" 200 - 2020-02-16 03:16:02,461 werkzeug INFO - 35.169.63.209 - - [16/Feb/2020 03:16:02] "[37mGET /api/rest/v1.0/ask?question=Are%20you%20there&userid=7046709 HTTP/1.1[0m" 200 - 2020-02-16 03:16:11,143 root ERROR - [flask] [bot] [brain] [7046709] - No set named [NAME] in sets collection 2020-02-16 03:16:11,154 werkzeug INFO - 35.169.63.209 - - [16/Feb/2020 03:16:11] "[37mGET /api/rest/v1.0/ask?question=I%20am%20here&userid=7046709 HTTP/1.1[0m" 200 -
I’ll take a look over the weekend and work out what has happened
Regards
Keith 07771 597630
On 9 Feb 2020, at 23:36, Eric Borgos notifications@github.com wrote:
answer like:
answer | null
The config file for flask ( and a few others ) had a wierd spacing issue which caused the file to fail to be loaded. This is not program-y, rather an issue with y-bot that you download with the admin tool
I have reformatted all yaml files to use 2 spaces for tabbing and all is working, I'm just checking in the files this evening, so should be all good by the morning
Thats all the yaml files reformatted and commit to github, I've ran y-bot-flask-rest.sh and its all working fine, plus swimming is fun and cat food both return a response
Yes, that fixed it.
On my Ubuntu server, I am having a problem with the y-bot AIML files. I am running program-y version 4.1.1. After I download the new y-bot AIML files (downloaded via "sudo python3 -m programy.admin.tool download y-bot") it has a REST API problem, where Flask and Sanic load from port 80 instead of 8989, I assume because it is not loading any of the configuration files. It works fine from the console though. As soon as I switch back to using my old AIML files (I renamed the directory so I could still us it), it works fine again in Flask/Sanic. And, if I use my old AIML files but update only the /storage/* files, it works fine.
I even tried a completely fresh installation of program-y (4.1.1) on a new server using your current AIML files (downloaded via "sudo python3 -m programy.admin.tool download y-bot") and it has the same Flask problem (but works from the console).
For the version that does not work, the log file shows a lot of errors loading Flask:
2020-02-09 23:29:40,750 root DEBUG - [flask] - Console: [No bot root argument set, defaulting to [../../config/xnix]] 2020-02-09 23:29:40,769 root ERROR - Failed to open yaml config file [../../config/xnix/config.flask.rest.yaml] [while parsing a block mapping in "../../config/xnix/config.flask.rest.yaml", line 137, column 5 expected, but found ''
in "../../config/xnix/config.flask.rest.yaml", line 166, column 7]
2020-02-09 23:29:40,770 root ERROR - Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/programy/config/file/yaml_file.py", line 42, in load_from_file
self.yaml_data = yaml.load(yml_data_file, Loader=yaml.FullLoader)
File "/usr/local/lib/python3.6/dist-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 41, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "../../config/xnix/config.flask.rest.yaml", line 137, column 5
expected , but found ''
in "../../config/xnix/config.flask.rest.yaml", line 166, column 7
2020-02-09 23:29:40,770 root ERROR - File "/usr/local/lib/python3.6/dist-packages/programy/config/file/yaml_file.py", line 42, in load_from_file
self.yaml_data = yaml.load(yml_data_file, Loader=yaml.FullLoader)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/programy/config/file/yaml_file.py", line 42, in load_from_file
self.yaml_data = yaml.load(yml_data_file, Loader=yaml.FullLoader)
File "/usr/local/lib/python3.6/dist-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 41, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "../../config/xnix/config.flask.rest.yaml", line 137, column 5
expected , but found ''
in "../../config/xnix/config.flask.rest.yaml", line 166, column 7
2020-02-09 23:29:40,770 root ERROR - File "/usr/local/lib/python3.6/dist-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/programy/config/file/yaml_file.py", line 42, in load_from_file
self.yaml_data = yaml.load(yml_data_file, Loader=yaml.FullLoader)
File "/usr/local/lib/python3.6/dist-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 41, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "../../config/xnix/config.flask.rest.yaml", line 137, column 5
expected , but found ''
in "../../config/xnix/config.flask.rest.yaml", line 166, column 7
2020-02-09 23:29:40,770 root ERROR - File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 41, in get_single_data
node = self.get_single_node()
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/programy/config/file/yaml_file.py", line 42, in load_from_file
self.yaml_data = yaml.load(yml_data_file, Loader=yaml.FullLoader)
File "/usr/local/lib/python3.6/dist-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 41, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "../../config/xnix/config.flask.rest.yaml", line 137, column 5
expected , but found ''
in "../../config/xnix/config.flask.rest.yaml", line 166, column 7
2020-02-09 23:29:40,771 root ERROR - File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/programy/config/file/yaml_file.py", line 42, in load_from_file
self.yaml_data = yaml.load(yml_data_file, Loader=yaml.FullLoader)
File "/usr/local/lib/python3.6/dist-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 41, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "../../config/xnix/config.flask.rest.yaml", line 137, column 5
expected , but found ''
in "../../config/xnix/config.flask.rest.yaml", line 166, column 7
2020-02-09 23:29:40,771 root ERROR - File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/programy/config/file/yaml_file.py", line 42, in load_from_file
self.yaml_data = yaml.load(yml_data_file, Loader=yaml.FullLoader)
File "/usr/local/lib/python3.6/dist-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 41, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "../../config/xnix/config.flask.rest.yaml", line 137, column 5
expected , but found ''
in "../../config/xnix/config.flask.rest.yaml", line 166, column 7
2020-02-09 23:29:40,771 root ERROR - File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/programy/config/file/yaml_file.py", line 42, in load_from_file
self.yaml_data = yaml.load(yml_data_file, Loader=yaml.FullLoader)
File "/usr/local/lib/python3.6/dist-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 41, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "../../config/xnix/config.flask.rest.yaml", line 137, column 5
expected , but found ''
in "../../config/xnix/config.flask.rest.yaml", line 166, column 7
2020-02-09 23:29:40,771 root ERROR - File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/programy/config/file/yaml_file.py", line 42, in load_from_file
self.yaml_data = yaml.load(yml_data_file, Loader=yaml.FullLoader)
File "/usr/local/lib/python3.6/dist-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 41, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "../../config/xnix/config.flask.rest.yaml", line 137, column 5
expected , but found ''
in "../../config/xnix/config.flask.rest.yaml", line 166, column 7
2020-02-09 23:29:40,772 root ERROR - File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/programy/config/file/yaml_file.py", line 42, in load_from_file
self.yaml_data = yaml.load(yml_data_file, Loader=yaml.FullLoader)
File "/usr/local/lib/python3.6/dist-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 41, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "../../config/xnix/config.flask.rest.yaml", line 137, column 5
expected , but found ''
in "../../config/xnix/config.flask.rest.yaml", line 166, column 7
2020-02-09 23:29:40,772 root ERROR - File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/programy/config/file/yaml_file.py", line 42, in load_from_file
self.yaml_data = yaml.load(yml_data_file, Loader=yaml.FullLoader)
File "/usr/local/lib/python3.6/dist-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 41, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "../../config/xnix/config.flask.rest.yaml", line 137, column 5
expected , but found ''
in "../../config/xnix/config.flask.rest.yaml", line 166, column 7
2020-02-09 23:29:40,772 root ERROR - File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/programy/config/file/yaml_file.py", line 42, in load_from_file
self.yaml_data = yaml.load(yml_data_file, Loader=yaml.FullLoader)
File "/usr/local/lib/python3.6/dist-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 41, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "../../config/xnix/config.flask.rest.yaml", line 137, column 5
expected , but found ''
in "../../config/xnix/config.flask.rest.yaml", line 166, column 7
2020-02-09 23:29:40,772 root ERROR - File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/programy/config/file/yaml_file.py", line 42, in load_from_file
self.yaml_data = yaml.load(yml_data_file, Loader=yaml.FullLoader)
File "/usr/local/lib/python3.6/dist-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 41, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "../../config/xnix/config.flask.rest.yaml", line 137, column 5
expected , but found ''
in "../../config/xnix/config.flask.rest.yaml", line 166, column 7
2020-02-09 23:29:40,772 root ERROR - File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/programy/config/file/yaml_file.py", line 42, in load_from_file
self.yaml_data = yaml.load(yml_data_file, Loader=yaml.FullLoader)
File "/usr/local/lib/python3.6/dist-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 41, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "../../config/xnix/config.flask.rest.yaml", line 137, column 5
expected , but found ''
in "../../config/xnix/config.flask.rest.yaml", line 166, column 7
2020-02-09 23:29:40,773 root ERROR - File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/programy/config/file/yaml_file.py", line 42, in load_from_file
self.yaml_data = yaml.load(yml_data_file, Loader=yaml.FullLoader)
File "/usr/local/lib/python3.6/dist-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 41, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "../../config/xnix/config.flask.rest.yaml", line 137, column 5
expected , but found ''
in "../../config/xnix/config.flask.rest.yaml", line 166, column 7
2020-02-09 23:29:40,773 root ERROR - yaml.parser.ParserError: while parsing a block mapping
in "../../config/xnix/config.flask.rest.yaml", line 137, column 5
expected , but found ''
in "../../config/xnix/config.flask.rest.yaml", line 166, column 7
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/programy/config/file/yaml_file.py", line 42, in load_from_file
self.yaml_data = yaml.load(yml_data_file, Loader=yaml.FullLoader)
File "/usr/local/lib/python3.6/dist-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 41, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "../../config/xnix/config.flask.rest.yaml", line 137, column 5
expected , but found ''
in "../../config/xnix/config.flask.rest.yaml", line 166, column 7
2020-02-09 23:29:40,773 root DEBUG - Loading Storage Factory
2020-02-09 23:29:40,773 root ERROR - No storage engine available for pattern_nodes!
2020-02-09 23:29:40,774 root ERROR - No storage engine available for template_nodes!
2020-02-09 23:29:40,774 root DEBUG - Defaulting root to PatternRootNode
2020-02-09 23:29:40,774 root ERROR - Failed to get root pattern node, reverting to default [Invalid node name [root]]
2020-02-09 23:29:40,774 root DEBUG - Processor path [programy.parser.pattern.nodes.root.PatternRootNode]
2020-02-09 23:29:40,774 root DEBUG - Importing module [programy.parser.pattern.nodes.root]
2020-02-09 23:29:40,774 root DEBUG - Instantiating class [PatternRootNode]
2020-02-09 23:29:40,774 root INFO - [flask] [bot] [brain] - Loading aiml source brain
2020-02-09 23:29:40,774 root ERROR - No category storage defined, no aiml loaded!
2020-02-09 23:29:40,775 root INFO - [flask] [bot] [brain] - Loading collections
2020-02-09 23:29:40,775 root DEBUG - Emptying RDF Collection
2020-02-09 23:29:40,775 root DEBUG - Loading RDF Collection
2020-02-09 23:29:40,775 root INFO - [flask] [bot] [brain] - Loading services
2020-02-09 23:29:40,775 root INFO - [flask] [bot] [brain] - Loading openchat bots
2020-02-09 23:29:40,775 root INFO - [flask] [bot] [brain] - Loading security services
2020-02-09 23:29:40,775 root INFO - [flask] [bot] [brain] - Loading oob processors
2020-02-09 23:29:40,775 root ERROR - No storage engine available for pattern_nodes!
2020-02-09 23:29:40,775 root INFO - [flask] [bot] [brain] - Loading regex templates
2020-02-09 23:29:40,775 root INFO - [flask] [bot] [brain] - Loading dynamics sets, maps and vars
2020-02-09 23:29:40,775 root WARNING - Dynamic set NUMBER not defined, adding default implementation
2020-02-09 23:29:40,775 root WARNING - Dynamic set PLURAL not defined, adding default implementation
2020-02-09 23:29:40,776 root WARNING - Dynamic set SINGULAR not defined, adding default implementation
2020-02-09 23:29:40,776 root WARNING - Dynamic set SUCCESSOR not defined, adding default implementation
2020-02-09 23:29:40,776 root WARNING - Dynamic set PREDECESSOR not defined, adding default implementation
2020-02-09 23:29:40,776 root DEBUG - Processor path [programy.brainfactory.DefaultBrainSelector]
2020-02-09 23:29:40,776 root DEBUG - Importing module [programy.brainfactory]
2020-02-09 23:29:40,776 root DEBUG - Instantiating class [DefaultBrainSelector]
2020-02-09 23:29:40,776 root WARNING - No configuration setting for spelling checker!
2020-02-09 23:29:40,776 root INFO - Loading sentence splitter from class [programy.dialog.splitter.regex.RegexSentenceSplitter]
2020-02-09 23:29:40,776 root DEBUG - Processor path [programy.dialog.splitter.regex.RegexSentenceSplitter]
2020-02-09 23:29:40,776 root DEBUG - Importing module [programy.dialog.splitter.regex]
2020-02-09 23:29:40,776 root DEBUG - Instantiating class [RegexSentenceSplitter]
2020-02-09 23:29:40,777 root INFO - Loading sentence joiner from class [programy.dialog.joiner.joiner.SentenceJoiner]
2020-02-09 23:29:40,777 root DEBUG - Processor path [programy.dialog.joiner.joiner.SentenceJoiner]
2020-02-09 23:29:40,777 root DEBUG - Importing module [programy.dialog.joiner.joiner]
2020-02-09 23:29:40,777 root DEBUG - Instantiating class [SentenceJoiner]
2020-02-09 23:29:40,777 root WARNING - No configuration setting for translator!
2020-02-09 23:29:40,777 root WARNING - No configuration setting for translator!
2020-02-09 23:29:40,777 root WARNING - No configuration setting for sentiment analyser!
2020-02-09 23:29:40,777 root DEBUG - Processor path [programy.clients.botfactory.DefaultBotSelector]
2020-02-09 23:29:40,777 root DEBUG - Importing module [programy.clients.botfactory]
2020-02-09 23:29:40,777 root DEBUG - Instantiating class [DefaultBotSelector]
2020-02-09 23:29:40,777 root WARNING - [flask] - No storage factory setting for license_keys
2020-02-09 23:29:40,777 root DEBUG - Loading Scheduler
2020-02-09 23:29:40,778 root DEBUG - Creating Background Scheduler WITHOUT config
2020-02-09 23:29:40,791 root DEBUG - Scheduler initiated...
2020-02-09 23:29:40,791 root DEBUG - Scheduler starting...
2020-02-09 23:29:40,791 apscheduler.scheduler INFO - Scheduler started
2020-02-09 23:29:40,792 apscheduler.scheduler DEBUG - Looking for jobs to run
2020-02-09 23:29:40,792 root DEBUG - Loading Renderer
2020-02-09 23:29:40,792 apscheduler.scheduler DEBUG - No jobs; waiting until a job is added
2020-02-09 23:29:40,792 root DEBUG - Processor path [programy.clients.render.text.TextRenderer]
2020-02-09 23:29:40,792 root DEBUG - Importing module [programy.clients.render.text]
2020-02-09 23:29:40,792 root DEBUG - Instantiating class [TextRenderer]
2020-02-09 23:29:40,792 root DEBUG - Loading Email Manager
2020-02-09 23:29:40,793 root DEBUG - Loading Trigger Manager
2020-02-09 23:29:40,793 root DEBUG - Processor path [programy.triggers.local.LocalTriggerManager]
2020-02-09 23:29:40,793 root DEBUG - Importing module [programy.triggers.local]
2020-02-09 23:29:40,793 root DEBUG - Instantiating class [LocalTriggerManager]
2020-02-09 23:29:40,793 root DEBUG - [flask] - Console: [flask Client running on http://0.0.0.0:80]
2020-02-09 23:29:40,793 root DEBUG - Event triggered [SYSTEM_STARTUP]
2020-02-09 23:29:40,793 root INFO - No REST configuration for ping responder
2020-02-09 23:29:40,794 root DEBUG - Console: [Healthcheck now running as part of REST Service...]
2020-02-09 23:29:40,794 root DEBUG - [flask] - Console: [flask Client running in http mode, careful now !]
2020-02-09 23:29:40,798 werkzeug INFO - Running on http://0.0.0.0:80/ (Press CTRL+C to quit)
2020-02-09 23:31:34,802 root DEBUG - [flask] [bot] [brain] [123456789] - ##########################################################################################
2020-02-09 23:31:34,803 root DEBUG - [flask] [bot] [brain] [123456789] - Question (flask): cats
2020-02-09 23:31:34,803 root DEBUG - [flask] [bot] [brain] [123456789] - Pre Processed (123456789): cats
2020-02-09 23:31:34,803 root INFO - [flask] [bot] [brain] [123456789] - Creating new conversation for client 123456789
2020-02-09 23:31:34,803 root DEBUG - [flask] [bot] [brain] [123456789] - Event triggered [CONVERSATION_START]
2020-02-09 23:31:34,803 root DEBUG - [flask] [bot] [brain] [123456789] - Retrieving conversation for client 123456789
2020-02-09 23:31:34,803 root INFO - [flask] [bot] [brain] [123456789] - Topic pattern = []
2020-02-09 23:31:34,803 root ERROR - [flask] [bot] [brain] [123456789] - No That pattern default to [] [list index out of range]
2020-02-09 23:31:34,803 root DEBUG - [flask] [bot] [brain] [123456789] - AIML Parser matching sentence [cats], topic=[], that=[]
2020-02-09 23:31:34,803 root DEBUG - [flask] [bot] [brain] [123456789] - Matching [cats TOPIC THAT ]
2020-02-09 23:31:34,803 root DEBUG - [flask] [bot] [brain] [123456789] - No match for cats, trying another path
2020-02-09 23:31:34,804 root DEBUG - [flask] [bot] [brain] [123456789] - Retrieving conversation for client 123456789
2020-02-09 23:31:34,804 root INFO - [flask] [bot] [brain] [123456789] - Topic pattern = []
2020-02-09 23:31:34,804 root ERROR - [flask] [bot] [brain] [123456789] - No That pattern default to [] [list index out of range]
2020-02-09 23:31:34,804 root DEBUG - [flask] [bot] [brain] [123456789] - AIML Parser matching sentence [], topic=[], that=[]
2020-02-09 23:31:34,804 root DEBUG - [flask] [bot] [brain] [123456789] - Matching [TOPIC THAT *]
2020-02-09 23:31:34,804 root DEBUG - [flask] [bot] [brain] [123456789] - No match for TOPIC, trying another path
2020-02-09 23:31:34,804 root DEBUG - [flask] [bot] [brain] [123456789] - Event triggered [QUESTION_ASKED]
2020-02-09 23:31:34,805 werkzeug INFO - 108.20.144.68 - - [09/Feb/2020 23:31:34] "[37mGET /api/rest/v1.0/ask?question=cats&userid=123456789 HTTP/1.1[0m" 200 -