This repository was archived by the owner on Nov 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Messenger - qa_data_collection task #1333
Closed
micolspitale93 opened this issue
Jan 8, 2019
· 2 comments
· May be fixed by javakian/ParlAI#5, terrorizer1980/ParlAI#5, rehabstudio/ParlAI#4, rehabstudio/ParlAI#8 or javakian/ParlAI#49
Closed
Messenger - qa_data_collection task #1333
micolspitale93 opened this issue
Jan 8, 2019
· 2 comments
· May be fixed by javakian/ParlAI#5, terrorizer1980/ParlAI#5, rehabstudio/ParlAI#4, rehabstudio/ParlAI#8 or javakian/ParlAI#49
Comments
Will you please share the command you ran to create this error? It looks like |
I just ran the python run.py command. Then I try to interact with my messenger bot, and this is the error shown. I add in ParlAI/parlay/messenger/tasks/qa_data_collection/ run.py at line 31: task_opt[‘task’] = opt[‘task’]. Then I have modify ParlAI/tests/integration/test_downloads.py adding opt[‘task’].
Now it works!
From: Stephen Roller
Sent: 08 January 2019 12:06
To: facebookresearch/ParlAI
Cc: micolspitale93; Author
Subject: Re: [facebookresearch/ParlAI] Messenger - qa_data_collection task(#1333)
Will you please share the command you ran to create this error?
It looks like 'task' isn't being set in the options anywhere. We really just need to figure out where's the right place to set it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Merged
This was referenced Jul 29, 2021
This was referenced Apr 20, 2023
This was referenced Apr 20, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Running the messenger qa_data_collection task, it gives me te following error:
Exception in user code:
Traceback (most recent call last):
File "/home/micol/PycharmProjects/parlai_project/ParlAI/parlai/messenger/core/messenger_manager.py", line 552, in _task_function
task_functions[world_type](self, opt, agents, conversation_id)
File "run.py", line 45, in run_conversation
task = task_class(task_opt)
File "/home/micol/PycharmProjects/parlai_project/ParlAI/parlai/tasks/squad/agents.py", line 114, in init
build(opt)
File "/home/micol/PycharmProjects/parlai_project/ParlAI/parlai/tasks/squad/build.py", line 35, in build
if 'fulldoc' in opt['task']:
KeyError: 'task'
"Facebook response from message send: {'recipient_id': '2172740222785536', 'message_id': 'm_rDniDdXXKp9KY2DDR7nYxf46FEm_jG446gMYoyCBkXQ1qs8d7VUug8eG31SNJbRdWO5T8BAyL5R4_1-p3tHWVQ'}"
Message data received: {'object': 'page', 'entry': [{'id': '336760520259323', 'time': 1546939725227, 'messaging': [{'sender': {'id': '336760520259323'}, 'recipient': {'id': '2172740222785536'}, 'timestamp': 1546939724784, 'message': {'is_echo': True, 'app_id': 322301978494112, 'mid': 'rDniDdXXKp9KY2DDR7nYxf46FEm_jG446gMYoyCBkXQ1qs8d7VUug8eG31SNJbRdWO5T8BAyL5R4_1-p3tHWVQ', 'seq': 32111, 'text': 'Sorry, this world closed. Returning to overworld.'}}]}]}
Message data received: {'object': 'page', 'entry': [{'id': '336760520259323', 'time': 1546939725478, 'messaging': [{'sender': {'id': '2172740222785536'}, 'recipient': {'id': '336760520259323'}, 'timestamp': 1546939725466, 'delivery': {'mids': ['rDniDdXXKp9KY2DDR7nYxf46FEm_jG446gMYoyCBkXQ1qs8d7VUug8eG31SNJbRdWO5T8BAyL5R4_1-p3tHWVQ'], 'watermark': 1546939724784, 'seq': 0}}]}]}
What is the possible solution?
Thank you
The text was updated successfully, but these errors were encountered: