MA-AIRL
MA-AIRL copied to clipboard
Problem in Running Multi-Agent ACKTR
Hi author!
Here is a problem when I were running python -m sandbox.mack.run_simple
.
Here is the log:
logging to: /atlas/u/lantaoyu
Traceback (most recent call last):
File "/home/teng/anaconda3/envs/tensorflow/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/teng/anaconda3/envs/tensorflow/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/teng/Desktop/MA-AIRL-master/multi-agent-irl/sandbox/mack/run_simple.py", line 63, in <module>
main()
File "/home/teng/.local/lib/python3.6/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/teng/.local/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/teng/.local/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/teng/.local/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/teng/Desktop/MA-AIRL-master/multi-agent-irl/sandbox/mack/run_simple.py", line 58, in main
train(logdir + '/exps/mack/' + env_id + '/l-{}-b-{}/seed-{}'.format(lr, batch_size, seed),
TypeError: must be str, not NoneType
What's wrong with it?
have the same problem on mac os
I got the same error
I think the reason is that they use the click
module to pass parameters to the script, and the parameter env
does not have a default value, then the env
got a NoneType. Simply add a default value like other parameters would solve this issue, or manually set a value for the parameter env
when starting the program:
python -m sandbox.mack.run_simple --env simple #an example
I then ran into make_env.get_identical()
was missing.