-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code error when running the test code #27
Comments
which PySC2 version do you have? |
PySC2 version is 2.0.2. and the examples at https://github.com/deepmind/pysc2 can be run correctly. |
I can confirm the first one, though it's actually a While not a good idea in general, but as a temporary workaround, you can suppress these warnings inside your code, like so: import warnings
warnings.simplefilter(action='ignore', category=FutureWarning) I'm unable to replicate the second error, even in a clean environment install. For reference, here is packages dump from the env:
|
I just found this happening to me when incorrectly using Pysc2 2.0.1. |
@EvanWilliams thank you for the kind words! I'm happy to hear you've found reaver useful :) |
import reaver as rvr
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)
1st error :..pysc2/lib/features.py:737: FutureWarning: arrays to stack must be passed as a "sequence" type such as list or tuple. Support for non-sequence iterables such as generators is deprecated as of NumPy 1.16 and will raise an error in the future.
2ed error:
.../pysc2/lib/named_array.py", line 208, in _get_index
"Can't index by type: %s; only int, string or slice" % type(index))
The text was updated successfully, but these errors were encountered: