MA-AIRL icon indicating copy to clipboard operation
MA-AIRL copied to clipboard

Problem in Running Multi-Agent ACKTR

Open LTGgeek opened this issue 5 years ago • 5 comments

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?

LTGgeek avatar Nov 14 '19 06:11 LTGgeek

have the same problem on mac os

XuandongZhao avatar Jan 15 '20 23:01 XuandongZhao

I got the same error

moonsh avatar Jan 18 '20 20:01 moonsh

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

to1a avatar Mar 02 '21 07:03 to1a

image

pythlang avatar Sep 30 '22 13:09 pythlang

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

pythlang avatar Sep 30 '22 14:09 pythlang