google-deepmind / pysc2

StarCraft II Learning Environment
Apache License 2.0
7.96k stars 1.15k forks source link

Cannot pass render test in Mac Big Sur 11.1 #324

Closed drmeerkat closed 1 year ago

drmeerkat commented 3 years ago

Hi guys,

I'm trying to render rgb_screen on my mac. But when I try to run the pysc2/tests/render_test.py, the error message is like this,

`[ FAILED ] TestRender.test_render

FAIL: test_render (main.TestRender) test_render (main.TestRender)

Traceback (most recent call last): File "/Applications/anaconda3/envs/tf/lib/python3.7/site-packages/pysc2/tests/render_test.py", line 96, in test_render self.assertEqual(rgb_screen.shape, (256, 256, 3)) AssertionError: Tuples differ: (480, 400, 3) != (256, 256, 3)

First differing element 0: 480 256


Ran 1 test in 32.925s

FAILED (failures=1)`

It seems that if I change the window size manually, the (480, 400) will also change and nothing is rendered.

I'm in pysc 3.0.

tewalds commented 1 year ago

I suspect the mac SC2 build doesn't support rgb rendering?