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

[Bug]: AttributeError: 'NoneType' object has no attribute 'set_current' #655

Open
zhjc2014 opened this issue Jan 30, 2025 · 1 comment
Open
Labels
bug Something isn't working

Comments

@zhjc2014
Copy link

Bug Description

Exception in thread Thread-2:
Traceback (most recent call last):
File "D:\ProgramData\miniconda3\envs\genesis\lib\threading.py", line 980, in _bootstrap_inner
self.run()
File "D:\ProgramData\miniconda3\envs\genesis\lib\threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "D:\myfile\src\Genesis\genesis\ext\pyrender\viewer.py", line 1169, in init_and_start_app
self.switch_to()
File "D:\ProgramData\miniconda3\envs\genesis\lib\site-packages\pyglet\window\win32_init
.py", line 385, in switch_to
self.context.set_current()
AttributeError: 'NoneType' object has no attribute 'set_current'

when running python .\examples\drone\fly.py -v

Steps to Reproduce

python .\examples\drone\fly.py -v

Expected Behavior

no Exception

Screenshots/Videos

No response

Relevant log output

Environment

  • OS: [Windows 11 21H2]
  • GPU/CPU [RTX 4090, Intel I9-12900kf]
  • GPU-driver version 571.96
  • CUDA / CUDA-toolkit version 12.8

Release version or Commit ID

Commit: 7e0adc0
Parents: 806d0a8, bf9f31a
Author: Kashu Yamazaki <[email protected]>
Committer: GitHub <[email protected]>
Date: Mon Jan 27 2025 06:27:59 GMT+0800 (China Standard Time)

Additional Context

No response

@zhjc2014 zhjc2014 added the bug Something isn't working label Jan 30, 2025
@bxtbold
Copy link
Contributor

bxtbold commented Jan 31, 2025

There's an error in the pyglet not in genesis. Maybe you should try installing the latest pyglet release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants