NM512 / dreamerv3-torch

Implementation of Dreamer v3 in pytorch.
MIT License
432 stars 97 forks source link

AttributeError: 'NoneType' object has no attribute 'glGetError' #65

Open xkq1qkx opened 1 month ago

xkq1qkx commented 1 month ago

(dreamerv3) xkq@xkq-Legion:~/Documents/dreamerv3_torch$ python3 dreamer.py --configs dmc_vision --task dmc_walker_walk --logdir ./logdir/dmc_walker_walk

Logdir logdir/dmc_walker_walk Create envs. Traceback (most recent call last): File "/home/xkq/Documents/dreamerv3_torch/dreamer.py", line 365, in main(parser.parse_args(remaining)) File "/home/xkq/Documents/dreamerv3_torch/dreamer.py", line 238, in main train_envs = [make("train", i) for i in range(config.envs)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/xkq/Documents/dreamerv3_torch/dreamer.py", line 238, in train_envs = [make("train", i) for i in range(config.envs)] ^^^^^^^^^^^^^^^^ File "/home/xkq/Documents/dreamerv3_torch/dreamer.py", line 237, in make = lambda mode, id: make_env(config, mode, id) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/xkq/Documents/dreamerv3_torch/dreamer.py", line 151, in make_env env = dmc.DeepMindControl( ^^^^^^^^^^^^^^^^^^^^ File "/home/xkq/Documents/dreamerv3_torch/envs/dmc.py", line 13, in init from dm_control import suite File "/home/xkq/miniconda3/envs/dreamerv3/lib/python3.11/site-packages/dm_control/suite/init.py", line 24, in from dm_control.suite import acrobot File "/home/xkq/miniconda3/envs/dreamerv3/lib/python3.11/site-packages/dm_control/suite/acrobot.py", line 20, in from dm_control import mujoco File "/home/xkq/miniconda3/envs/dreamerv3/lib/python3.11/site-packages/dm_control/mujoco/init.py", line 18, in from dm_control.mujoco.engine import action_spec File "/home/xkq/miniconda3/envs/dreamerv3/lib/python3.11/site-packages/dm_control/mujoco/engine.py", line 41, in from dm_control import _render File "/home/xkq/miniconda3/envs/dreamerv3/lib/python3.11/site-packages/dm_control/_render/init.py", line 86, in Renderer = import_func() ^^^^^^^^^^^^^ File "/home/xkq/miniconda3/envs/dreamerv3/lib/python3.11/site-packages/dm_control/_render/init.py", line 46, in _import_osmesa from dm_control._render.pyopengl.osmesa_renderer import OSMesaContext File "/home/xkq/miniconda3/envs/dreamerv3/lib/python3.11/site-packages/dm_control/_render/pyopengl/osmesa_renderer.py", line 35, in from OpenGL import GL File "/home/xkq/miniconda3/envs/dreamerv3/lib/python3.11/site-packages/OpenGL/GL/init.py", line 4, in from OpenGL.GL.VERSION.GL_1_1 import File "/home/xkq/miniconda3/envs/dreamerv3/lib/python3.11/site-packages/OpenGL/GL/VERSION/GL_1_1.py", line 14, in from OpenGL.raw.GL.VERSION.GL_1_1 import File "/home/xkq/miniconda3/envs/dreamerv3/lib/python3.11/site-packages/OpenGL/raw/GL/VERSION/GL_1_1.py", line 7, in from OpenGL.raw.GL import _errors File "/home/xkq/miniconda3/envs/dreamerv3/lib/python3.11/site-packages/OpenGL/raw/GL/_errors.py", line 4, in _error_checker = _ErrorChecker( _p, _p.GL.glGetError ) ^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'glGetError'

JesusmiCaH commented 1 month ago

Same problem bro, have you found any solutions?

xkq1qkx commented 1 month ago

Sorry, I haven't solve it. But if tensorflow is acceptable , you can try the tensorflow version. I run it successfully.

许焜琦 @.***

Original: From:TownKuku @.>Date:2024-10-17 09:36:41(中国 (GMT+08:00))To:NM512/dreamerv3-torch @.>Cc:xkq1qkx @.> , Author @.>Subject:Re: [NM512/dreamerv3-torch] AttributeError: 'NoneType' object has no attribute 'glGetError' (Issue #65) Same problem bro, have you found any solutions? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

yongzhengqi commented 3 weeks ago

Solved by running conda install -c conda-forge mesalib

See more at: https://github.com/conda-forge/mujoco-feedstock/issues/48