Skip to content
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

Problem of Pyglet in Visualization of Simulation #85

Open
minglou1984 opened this issue Dec 20, 2024 · 1 comment
Open

Problem of Pyglet in Visualization of Simulation #85

minglou1984 opened this issue Dec 20, 2024 · 1 comment

Comments

@minglou1984
Copy link

When i visualize the simulation, i meet the follow problems of Pyglet. How can i do it?

IMPORTING OPENGL RENDERING MODULE. THIS SHOULD NOT BE IMPORTED IN HEADLESS MODE!
Traceback (most recent call last):
File "/home/madrl/code/quad-swarm-rl-master/swarm_rl/enjoy.py", line 34, in
sys.exit(main())
File "/home/madrl/code/quad-swarm-rl-master/swarm_rl/enjoy.py", line 12, in main
status = enjoy(cfg)
File "/home/madrl/.conda/envs/madrl/lib/python3.8/site-packages/sample_factory/enjoy.py", line 169, in enjoy
last_render_start = render_frame(cfg, env, video_frames, num_episodes, last_render_start)
File "/home/madrl/.conda/envs/madrl/lib/python3.8/site-packages/sample_factory/enjoy.py", line 78, in render_frame
env.render()
File "/home/madrl/.conda/envs/madrl/lib/python3.8/site-packages/gymnasium/core.py", line 418, in render
return self.env.render()
File "/home/madrl/.conda/envs/madrl/lib/python3.8/site-packages/gymnasium/core.py", line 418, in render
return self.env.render()
File "/home/madrl/.conda/envs/madrl/lib/python3.8/site-packages/gymnasium/core.py", line 418, in render
return self.env.render()
File "/home/madrl/code/quad-swarm-rl-master/swarm_rl/env_wrappers/compatibility.py", line 57, in render
return self.env.render()
File "/home/madrl/.conda/envs/madrl/lib/python3.8/site-packages/gymnasium/core.py", line 418, in render
return self.env.render()
File "/home/madrl/code/quad-swarm-rl-master/gym_art/quadrotor_multi/quadrotor_multi.py", line 736, in render
self.scenes[i].update_env(self.room_dims)
File "/home/madrl/code/quad-swarm-rl-master/gym_art/quadrotor_multi/quadrotor_multi_visualization.py", line 211, in update_env
self._make_scene()
File "/home/madrl/code/quad-swarm-rl-master/gym_art/quadrotor_multi/quadrotor_multi_visualization.py", line 289, in _make_scene
world.build(batch)
File "/home/madrl/code/quad-swarm-rl-master/gym_art/quadrotor_multi/rendering3d.py", line 273, in build
self._build_children(batch)
File "/home/madrl/code/quad-swarm-rl-master/gym_art/quadrotor_multi/rendering3d.py", line 260, in _build_children
c.build(batch, self.pyg_grp)
File "/home/madrl/code/quad-swarm-rl-master/gym_art/quadrotor_multi/rendering3d.py", line 312, in build
c.build(batch, ordering)
File "/home/madrl/code/quad-swarm-rl-master/gym_art/quadrotor_multi/rendering3d.py", line 402, in build
self.pyg_grp = _PygTexture(tex=self.tex,
File "/home/madrl/code/quad-swarm-rl-master/gym_art/quadrotor_multi/rendering3d.py", line 503, in init
glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, anisotropy)
File "/home/madrl/.conda/envs/madrl/lib/python3.8/site-packages/pyglet/gl/lib.py", line 107, in errcheck
raise GLException(msg)
pyglet.gl.lib.GLException: b'invalid enumerant'

@ali-kosemen
Copy link

I got a similar error. The error was about ogenGL library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants