mmatl / pyrender

Easy-to-use glTF 2.0-compliant OpenGL renderer for visualization of 3D scenes.
http://pyrender.readthedocs.io/
MIT License
1.31k stars 226 forks source link

ValueError: Invalid device ID(0) #151

Closed SLTK1 closed 3 years ago

SLTK1 commented 4 years ago

Firstly I tried my programme directly on a physical computer with NVIDIA GPU, it works.

Then I tried to use pyrender in docker with egl but I got this error, File 'xxx/pyrender/platforms/egl/py', line 83, in get_device_by_index raise ValueError('Invalid device ID ({})'.format(device_id, len(devices))) ValueError: Invalid device ID(0)

It seems that NVIDIA GPU cannot be found by opengl. but nvidia-smi can show the GPU information.

ShuangjunLiu commented 3 years ago

Same here.

SLTK1 commented 3 years ago

My docker is OK but GPU dont support OPENGL

lllllialois commented 2 years ago

did u fix it?

My docker is OK but GPU doesn't support OpenGL

trancelestial commented 1 year ago

@SLTK1 Any updates?

lunalulu commented 1 year ago

Any updates?

Leestronger commented 1 year ago

Any updates?

try this? https://github.com/mmatl/pyrender/issues/247#issuecomment-1486423328