Open LeeSword12 opened 1 year ago
a compatibility bug in Windows
can be fixed by changing "UnixTcpClientP2P"->"TcpClientP2P" in "THIRDPARTY/pymarl2/pymarl2src/runners/efficient_parallel_runner.py"
later we'll find a Windows environment to test it.
just fixed after hmp2g/commit/d0a032ad672976f6781222780d5f95a83efa35f0 and pymarl-hmap-compat/commit/9a8fca0a92ec4fac4b7f2d0ddb4bd7cddea8c521
Traceback (most recent call last): File "D:\Program Files\JetBrains\PyCharm Community Edition 2019.3.5\plugins\python-ce\helpers\pydev\pydevd.py", line 1434, in _exec pydev_imports.execfile(file, globals, locals) # execute the script File "D:\Program Files\JetBrains\PyCharm Community Edition 2019.3.5\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "./THIRDPARTY/pymarl2/pymarl2src/main.py", line 126, in
my_main(None, config_dict, None)
File "./THIRDPARTY/pymarl2/pymarl2src/main.py", line 52, in my_main
run_REGISTRY[_config['run']](_run, config, _log)
File "D:\2023Work\1IntelligentBattle\hmp2g-master\THIRDPARTY\pymarl2\pymarl2src\run\run.py", line 52, in run
run_sequential(args=args, logger=logger)
File "D:\2023Work\1IntelligentBattle\hmp2g-master\THIRDPARTY\pymarl2\pymarl2src\run\run.py", line 85, in run_sequential
runner = r_REGISTRY[args.runner](args=args, logger=logger)
File "D:\2023Work\1IntelligentBattle\hmp2g-master\THIRDPARTY\pymarl2\pymarl2src\runners\efficient_parallel_runner.py", line 82, in init
self.remote_link_client = UnixTcpClientP2P(unix_path, obj='pickle')
File "D:\2023Work\1IntelligentBattle\hmp2g-master\UTIL\network.py", line 413, in init
self.self_unix_path = target_unix_path+'client'+uuid.uuid1().hex[:5]
TypeError: can only concatenate tuple (not "str") to tuple
target_unix_path = ('localhost', 12235)