This repository was archived by the owner on Aug 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
example/slime_volley.py - canvas display - how to start over ssh? #85
Copy link
Copy link
Open
Description
I am connecting to a server via ssh. Probably, the game cannot be displayed, right? Are there other ways around?
I am using VSCode
Reproduce the error by connecting to server via ssh and vscode. Run the following commands in the shell:
python
import python
window = pyglet.window.Window(500,500)Then, this error is displayed:
SlimeVolley: 2025-06-28 12:22:31,423 [INFO] Start to test the parameters.
SlimeVolley: 2025-06-28 12:22:31,517 [INFO] [TEST] #tests=100, max=3.0000, avg=0.5800, min=-1.0000, std=0.8268
Traceback (most recent call last):
File "/home/user/projects/aml/part1/evojax/examples/train_slimevolley.py", line 154, in <module>
main(configs)
File "/home/user/projects/aml/part1/evojax/examples/train_slimevolley.py", line 142, in main
screens.append(SlimeVolley.render(task_state))
File "/home/user/anaconda3/envs/sd2/lib/python3.10/site-packages/evojax/task/slimevolley.py", line 901, in render
canvas = game.display()
File "/home/user/anaconda3/envs/sd2/lib/python3.10/site-packages/evojax/task/slimevolley.py", line 759, in display
canvas = self.agent_left.display(canvas, self.ball.p.x, self.ball.p.y)
File "/home/user/anaconda3/envs/sd2/lib/python3.10/site-packages/evojax/task/slimevolley.py", line 594, in display
bx = float(ball_x)
File "/home/user/anaconda3/envs/sd2/lib/python3.10/site-packages/jax/_src/array.py", line 309, in __float__
core.check_scalar_conversion(self)
File "/home/user/anaconda3/envs/sd2/lib/python3.10/site-packages/jax/_src/core.py", line 751, in check_scalar_conversion
raise TypeError("Only scalar arrays can be converted to Python scalars; "
TypeError: Only scalar arrays can be converted to Python scalars; got arr.ndim=1I have found a thread where someone wants to fix it: https://github.com/2017-fall-DL-training-program/Setup_tutorial/blob/master/OpenAI-gym-install.md
Unfortunaetly, this tutorial is outdated because I cannot finish this line
Download the file [dfp-edid.bin](https://1drv.ms/u/s!AiF_YAjgP2iqmUKHkH7t8lzlz9aO) & move it to /etc/
The link does not exist anymore ...
Metadata
Metadata
Assignees
Labels
No labels