Marine stuck in 'MoveToBeacon'
See original GitHub issueHi there! Thanks for your great work! š But I met some unexpected problem, my environment is Window 10. my code is as follow:
import reaver as rvr
from multiprocessing import Process
if __name__ == '__main__':
p = Process()
p.start()
env = rvr.envs.SC2Env(map_name='MoveToBeacon')
agent = rvr.agents.A2C(env.obs_spec(), env.act_spec()
, rvr.models.build_fully_conv, rvr.models.SC2MultiPolicy, n_envs=1)
agent.run(env)
But I got those Traceback and Marine just will not move to anywhere:
Process Process-2:
Traceback (most recent call last):
File "C:\Users\Saber\Anaconda3\lib\multiprocessing\process.py", line 258, in _bootstrap
self.run()
File "C:\Users\Saber\Anaconda3\lib\multiprocessing\process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Saber\Anaconda3\lib\site-packages\reaver\envs\base\multiproc.py", line 52, in _run
obs = self._env.reset()
File "C:\Users\Saber\Anaconda3\lib\site-packages\reaver\envs\sc2.py", line 69, in reset
obs, reward, done = self.obs_wrapper(self._env.reset())
File "C:\Users\Saber\Anaconda3\lib\site-packages\reaver\envs\sc2.py", line 126, in __call__
obs['feature_screen'][self.feature_masks['screen']],
File "C:\Users\Saber\Anaconda3\lib\site-packages\pysc2\lib\named_array.py", line 145, in __getitem__
index = _get_index(obj, index)
File "C:\Users\Saber\Anaconda3\lib\site-packages\pysc2\lib\named_array.py", line 207, in _get_index
"Can't index by type: %s; only int, string or slice" % type(index))
TypeError: Can't index by type: <class 'list'>; only int, string or slice
and I also got stuck in āCartPole-v0ā. Nothing will be shown after I have wait for quite a few moment and my code is:
import reaver as rvr
from multiprocessing import Process
if __name__ == '__main__':
p = Process()
p.start()
env = rvr.envs.GymEnv('CartPole-v0')
agent = rvr.agents.A2C(env.obs_spec(), env.act_spec())
agent.run(env)
Any idea about this, Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Factbox: FACTBOX Paul Whelan, ex-U.S. Marine jailed in ...
Paul Whelan, a former U.S. Marine serving a 16-year sentence in a Russian penal colony on espionage charges, did not figure in a...
Read more >Who is Paul Whelan, the former U.S. marine held in Russia?
Foreign Minister Sergei Lavrov said Whelan was caught āred-handed,ā during a spy mission. Story continues below advertisement. Whelan, arrestedĀ ...
Read more >sc2_run_config before flags were parsed Ā· Issue #5 Ā· chris ...
I get this error when running any of the scripts. I cant seem to get this fixed. Maybe its a problem with pysc2...
Read more >Who is Paul Whelan? Brittney Griner's freedom draws ...
Paul Whelan, a 52-year-old retired U.S. Marine Corps veteran, has been imprisoned in Russia on espionage charges since his arrest at the endĀ ......
Read more >Who is Paul Whelan, the ex-US Marine jailed in Russia? - BBC
The former US Marine has been sentenced to 16 years of hard labour in Russia on suspicion of spying.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Iāve set up a Windows test bed and debugged the issue for a bit - the problem is neither in StarCraft II nor in PySC2, so good news, kind of!
Iāve narrowed the problem down to differences between Linux and Windows in
multiprocessing
. Iāll close the issue and continue working on the problem in #17 to keep things organized.@King-Of-Knights that error is good news in the sense that you no longer get the
multiprocessing
issue, only the version mismatch.For now I have focused on policy gradients based methods as there is already a very good implementation for value based methods: Dopamine.
After 2.1 I might look into integrating Reaver with Dopamine to add value based methods that way.