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

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

Open
anjugopinath opened this issue May 20, 2021 · 1 comment · May be fixed by #216
Open

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

anjugopinath opened this issue May 20, 2021 · 1 comment · May be fixed by #216

Comments

@anjugopinath
Copy link

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
Copy link

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

@eyllanesc eyllanesc linked a pull request Mar 17, 2022 that will close this issue
8 tasks
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

Successfully merging a pull request may close this issue.

2 participants