pyrender icon indicating copy to clipboard operation
pyrender copied to clipboard

pyglet.window.NoSuchConfigException

Open liwenssss opened this issue 5 years ago • 11 comments

Hi, I follow the step to install.But when I run the example , I got the bug "pyglet.window.NoSuchConfigException". If you know why, please tell me how to solve it . Thx your contribute.

liwenssss avatar Aug 06 '19 07:08 liwenssss

Hi, I have the same problem, when using pyrender.Viewer. Does anyone have any tips?

rustlluk avatar Aug 14 '19 09:08 rustlluk

Hi, I got the same exception. Running the minimal sample. Guess the window was not created, and the config is empty. But don't know how to fix it.

screnary avatar Sep 26 '19 09:09 screnary

So no one noticed this problem? If anyone has found the solutions, pls help us.

AnonymousUser1111 avatar Nov 05 '19 09:11 AnonymousUser1111

I met the same problem, it was caused by line18-19 "import pyglet; pyglet.options['shadow_window'] = False" of pyglet.py, which is in your python pkg installed path if u installed by pip install pyrender. In my case it path is "/usr/local/lib/python2.7/dist-packages/pyrender/platforms" as i installed by sudo pip install pyrender. I add "print pyglet.__file__" after "import pyglet", it will output "/usr/local/lib/python2.7/dist-packages/pyrender/platforms/pyglet.pyc", so it is the problem of import module wrong; my solution is modify pyglet.py to pyglet1.py; then in file pyglet.py's parent directory, modfiy line 116 of offscreen.py from "from pyrender.platforms.pyglet import PygletPlatform" to "from pyrender.platforms.pyglet1 import PygletPlatform". it solves the problem.

xxx09 avatar Nov 07 '19 13:11 xxx09

Hi guys, I met the same issue when running the live viewer demo, and I solved it by a) removing the "sample_buffers=1, samples=4" from the initialization (Line 991) of the Config in the code in Viewer.py, and b) modified the constants.py to make OPEN_GL_MAJOR = 3 and OPEN_GL_MINOR = 3. Hope this gives some clue to you. :)

xuelin-chen avatar Dec 23 '19 05:12 xuelin-chen

I have the same problem, and the method from @xuelin-chen @xxx09 I tried will still report the error, pls help @mmatl

huybery avatar Jan 17 '20 13:01 huybery

I have the same problem, and the method from @xuelin-chen @xxx09 I tried will still report the error, pls help @mmatl

I meet the same problem with you and the methods not work either. At last, I add the args --plotting-module="matplotlib" into the command, and the demo works well. Maybe you can try this too.

mendynew avatar May 26 '20 13:05 mendynew

I have the same problem, and the method from @xuelin-chen @xxx09 I tried will still report the error, pls help @mmatl

I meet the same problem with you and the methods not work either. At last, I add the args --plotting-module="matplotlib" into the command, and the demo works well. Maybe you can try this too.

Thanks a lot!

huybery avatar Jun 09 '20 06:06 huybery

it looks --plotting-module="matplotlib" this flag has been removed and this bug is still not fixed ??

wine3603 avatar Aug 01 '20 13:08 wine3603

it worked for me in Ubuntu 16, but I got this error on ubuntu 18, who can fixed this? It seems like a openGL error

wine3603 avatar Aug 04 '20 11:08 wine3603

The Viewer() class to set camera view in example.py may has some error. You can try the examples on colab. It works fine and can render RGBD images.

GostInShell avatar Nov 27 '20 03:11 GostInShell