metadriverse / metadrive

MetaDrive: Open-source driving simulator
https://metadriverse.github.io/metadrive/
Apache License 2.0
746 stars 107 forks source link

verify_headless_installation error #702

Closed Sephirex-X closed 5 months ago

Sephirex-X commented 5 months ago

Following every things for installation, poping AttributeError: 'NoneType' object has no attribute 'set_shader' error when running python -m metadrive.examples.verify_headless_installation

QuanyiLi commented 5 months ago

Ahh, it suggests that there is something wrong with your driver or OpenGL setting. Could you take a look at this two questions? they may be helpful: https://github.com/metadriverse/metadrive/issues/632 and https://github.com/metadriverse/metadrive/issues/334

Sephirex-X commented 5 months ago

Ahh, it suggests that there is something wrong with your driver or OpenGL setting. Could you take a look at this two questions? they may be helpful: #632 and #334

Thx, I have checked multiple times, the problem can be narrowed down to something related to monitor (successful verfied on another machine with monitor). I'm wondering if ur guys can provide tutorials for those user develop on server without monitor, e.g. whats kind of dependencies are needed, or a docker version. That would help a lot :)

QuanyiLi commented 5 months ago

Thank you for the suggestion. We indeed need a troubleshooting page for collecting these headless-rendering related issues.