chris-chris / pysc2-examples

StarCraft II - pysc2 Deep Reinforcement Learning Examples
Apache License 2.0
755 stars 356 forks source link

gflags.exceptions.UnparsedFlagAccessError: Trying to access flag sc2_run_config before flags were parsed. #8

Closed SoyGema closed 6 years ago

SoyGema commented 6 years ago

Hi there! Thanks for adding this useful project for pysc2 .

After cloning the repo and solve some requirement and installation issues, It appears the following error when training the map, in both deepq and acktr.

Can you point what to do here? Many thanks !

SoyGema commented 6 years ago

It raises the same error for defeat_zearlings however it seems to work in the training phase

yilei commented 6 years ago

Try the latest code? Did https://github.com/chris-chris/pysc2-examples/pull/7 fix the issue?

chris-chris commented 6 years ago

Try install the latest library from git.

$ pip install git+https://github.com/deepmind/pysc2

$ pip install git+https://github.com/openai/baselines

chris-chris commented 6 years ago

@SoyGema I found and fixed a bug due to pysc2 version mismatch! Please pull the latest master branch code :)

ViktorM commented 6 years ago

Have the same error. Just installed pysc2 and have everything the latest.

SoyGema commented 6 years ago

Thanks.