ermongroup / MA-AIRL

Multi-Agent Adversarial Inverse Reinforcement Learning, ICML 2019.
196 stars 27 forks source link

Problem in Running Multi-Agent ACKTR #2

Open LTGgeek opened 4 years ago

LTGgeek commented 4 years ago

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?

XuandongZhao commented 4 years ago

have the same problem on mac os

moonsh commented 4 years ago

I got the same error

to1a commented 3 years ago

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

pythlang commented 2 years ago

image

pythlang commented 2 years ago

I then ran into make_env.get_identical() was missing.