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 225 forks source link

UnboundLocalError: local variable 'e' referenced before assignment #188

Open anjugopinath opened 3 years ago

anjugopinath commented 3 years ago

Pyrender version : 0.1.45 Python version (python virtual environment) : 3.8.3

I get the below error on executing "python render.py" from path 'tool/MANO_render': (https://github.com/facebookresearch/InterHand2.6M)

Traceback (most recent call last): File "render.py", line 141, in renderer = pyrender.OffscreenRenderer(viewport_width=img_width, viewport_height=img_height, point_size=1.0) File "/s/red/a/nobackup/vision/anju/interhand_venv/lib/python3.8/site-packages/pyrender/offscreen.py", line 31, in init self._create() File "/s/red/a/nobackup/vision/anju/interhand_venv/lib/python3.8/site-packages/pyrender/offscreen.py", line 149, in _create self._platform.init_context() File "/s/red/a/nobackup/vision/anju/interhand_venv/lib/python3.8/site-packages/pyrender/platforms/pyglet_platform.py", line 62, in init_context 'internal error message was "{}"'.format(e) UnboundLocalError: local variable 'e' referenced before assignment

eyllanesc commented 2 years ago

I found a similar error through flake8 so in #216 I have solved it.