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

Invalid device ID (0), Pyrender NOT working on Python 3.10 #262

Closed smandava98 closed 1 year ago

smandava98 commented 1 year ago

Hi,

lib/python3.10/site-packages/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)

I keep getting the above error when running this code:

from pyrender.platforms import egl import os device_id = int(os.environ.get('EGL_DEVICE_ID', '0')) egl_device = egl.get_device_by_index(device_id) print(egl_device) print("DONE")

I am on a conda created python 3.10 env on a cloud server from Lambda Labs that has a A10 GPU. Can someone please help? I've tried so many things and have been stuck for many days.

wwwpkol commented 1 year ago

Have you solved this problem now? I have the same problem now, what should I do?

smandava98 commented 1 year ago

I reinstalled my graphics drivers and it worked for me.

On Wed, Nov 8, 2023 at 11:12 PM wwwpkol @.***> wrote:

Have you solved this problem now? I have the same problem now, what should I do?

— Reply to this email directly, view it on GitHub https://github.com/mmatl/pyrender/issues/262#issuecomment-1803275445, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFNOJP2QW5GEAXVTSWFVJ63YDR65LAVCNFSM6AAAAAA2JWAX7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBTGI3TKNBUGU . You are receiving this because you modified the open/close state.Message ID: @.***>

wwwpkol commented 1 year ago

OK, thanks. This seems a bit difficult for me. I also use a server, but I don’t have such high permissions to uninstall and reinstall some drivers.

glorioushonor commented 10 months ago

I reinstalled my graphics drivers and it worked for me. On Wed, Nov 8, 2023 at 11:12 PM wwwpkol @.> wrote: Have you solved this problem now? I have the same problem now, what should I do? — Reply to this email directly, view it on GitHub <#262 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFNOJP2QW5GEAXVTSWFVJ63YDR65LAVCNFSM6AAAAAA2JWAX7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBTGI3TKNBUGU . You are receiving this because you modified the open/close state.Message ID: @.>

Hello, can you tell me your new graphics driver version? Or did you just re-download and install the same driver? Looking forward to your reply.

smandava98 commented 10 months ago

Hi,

Sorry, I don’t remember the graphics driver version as I don’t have access to that GPU anymore.

I believe it was the same version as before as I do remember having to search for a specific version that was compatible with my GPU and not wanting to download the latest.

On Sun, Jan 21, 2024 at 7:06 PM 林杰 @.***> wrote:

I reinstalled my graphics drivers and it worked for me. … <#m-4714170747429229852> On Wed, Nov 8, 2023 at 11:12 PM wwwpkol @.> wrote: Have you solved this problem now? I have the same problem now, what should I do? — Reply to this email directly, view it on GitHub <#262 (comment) https://github.com/mmatl/pyrender/issues/262#issuecomment-1803275445>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFNOJP2QW5GEAXVTSWFVJ63YDR65LAVCNFSM6AAAAAA2JWAX7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBTGI3TKNBUGU https://github.com/notifications/unsubscribe-auth/AFNOJP2QW5GEAXVTSWFVJ63YDR65LAVCNFSM6AAAAAA2JWAX7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBTGI3TKNBUGU . You are receiving this because you modified the open/close state.Message ID: @.>

Hello, can you tell me your new graphics driver version? Or did you just re-download and install the same driver? Looking forward to your reply.

— Reply to this email directly, view it on GitHub https://github.com/mmatl/pyrender/issues/262#issuecomment-1903040116, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFNOJP2TGUHOBMTROCEF3YTYPXJSFAVCNFSM6AAAAAA2JWAX7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBTGA2DAMJRGY . You are receiving this because you modified the open/close state.Message ID: @.***>