pysc2
pysc2 copied to clipboard
findCaller from absl crashing and rendering crash on linux
Hello here,
I have started to work on pysc2 game environment and I am encountering two issues.
First, after an install on a windows 10 computer of pysc2 via pip on a 3.8 python version, launching the simple command : 'python -m pysc2.bin.play --map Simple64'
Crashes with the following error:
'Traceback (most recent call last):
File "C:\Users\Thibaud\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Thibaud\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\Thibaud\AppData\Local\Programs\Python\Python38\lib\site-packages\pysc2\bin\play.py", line 234, in
Second, I have also made an install of pysc2 in a docker, on a linux version. And if the training works fine, but the rendering of pygames crashes with the following error message:
'Exception in thread Renderer:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.6/dist-packages/pysc2/lib/renderer_human.py", line 1706, in render_thread
self.render_obs(obs)
File "/usr/local/lib/python3.6/dist-packages/pysc2/lib/renderer_human.py", line 69, in _with_lock
return func(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/pysc2/lib/stopwatch.py", line 212, in _stopwatch
return func(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/pysc2/lib/renderer_human.py", line 1724, in render_obs
surf.draw(surf)
File "/usr/local/lib/python3.6/dist-packages/pysc2/lib/renderer_human.py", line 658, in
The second error, made me try, the simple install on windows to try to have some access to a visualisation. I tryied to look for those crashes but didn't find any related subject. Any help or fix would be much appreciated.
Regards,
First problem should be fixed now, but you need to install latest absl-py
, e.g. via
pip install absl-py --upgrade
any update on second error? I got the same issue.
Thank you for the fix, I'll try it as soon as I can spare a bit of time.
Regards