Skip to content
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

The version of ParlAI? #2

Closed
RenzeLou opened this issue Oct 20, 2021 · 2 comments
Closed

The version of ParlAI? #2

RenzeLou opened this issue Oct 20, 2021 · 2 comments

Comments

@RenzeLou
Copy link

Dear authors,

Thank you for your amazing work. However, some problems occurred when I tried to use your code:
`Job is running on ps
Traceback (most recent call last):
File "/data/lourenze/ECD/baseline/focused-empathy/parlai/core/params.py", line 852, in add_task_args
agent.add_cmdline_args(self, partial)
│ │ └ {'init_opt': None, 'allow_missing_init_opts': False, 'task': 'tasks.emocause', 'download_path': None, 'loglevel': 'info', 'datat...
│ └ ParlaiParser(prog='eval_emocause.py', usage=None, description='Evaluate a model', formatter_class=<class 'parlai.core.params.Cus...
└ <class 'tasks.emocause.DefaultTeacher'>
TypeError: add_cmdline_args() takes 2 positional arguments but 3 were given

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "eval_emocause.py", line 30, in
opt = parser.parse_args()
└ ParlaiParser(prog='eval_emocause.py', usage=None, description='Evaluate a model', formatter_class=<class 'parlai.core.params.Cus...
File "/data/lourenze/ECD/baseline/focused-empathy/parlai/core/params.py", line 1163, in parse_args
self.add_extra_args(args)
│ └ None
└ ParlaiParser(prog='eval_emocause.py', usage=None, description='Evaluate a model', formatter_class=<class 'parlai.core.params.Cus...
File "/data/lourenze/ECD/baseline/focused-empathy/parlai/core/params.py", line 940, in add_extra_args
self.add_task_args(task, partial)
│ │ └ {'init_opt': None, 'allow_missing_init_opts': False, 'task': 'tasks.emocause', 'download_path': None, 'loglevel': 'info', 'datat...
│ └ 'tasks.emocause'
└ ParlaiParser(prog='eval_emocause.py', usage=None, description='Evaluate a model', formatter_class=<class 'parlai.core.params.Cus...
File "/data/lourenze/ECD/baseline/focused-empathy/parlai/core/params.py", line 859, in add_task_args
) from typ
TypeError: Task 'tasks.emocause' appears to have signature add_cmdline_args(argparser) but we have updated the signature to add_cmdline_args(argparser, partial_opt). For details, see https://github.com/facebookresearch/ParlAI/pull/3328.`

It seems like the ParlAI had updated some signatures for 'add_cmdline_args', as can be seen at:
image

So, my question is what version of ParlAI did your work use? I try to use the latest version and v 1.0.0, it still didn't work.

Best regard

@skywalker023
Copy link
Owner

skywalker023 commented Oct 20, 2021

Hello Renze!
Thank you for taking interest in our paper!
Actually, if you follow the environment setup guide in the README, the required ParlAI version will be automatically installed!
The exact version of ParlAI we used is written here:

- git+https://github.com/facebookresearch/ParlAI.git@db7086c7b6fad98a2e4c5ef2423f805359661cd2

@RenzeLou
Copy link
Author

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants