google-code-export / pyglet

Automatically exported from code.google.com/p/pyglet
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

New NoSuchConfig problem? #652

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. window = pyglet.window.Window()
2.
3.

Paste in the traceback or error message:
Trying to learn pyglet, started the tut on their site and 'hello world' came 
back as:

Traceback (most recent call last):
  File "/home/dixona2/Dropbox/Apps/Droidedit/Python Projects/Pyglet/My_First_Pyglet_Program.py", line 8, in <module>
    window = pyglet.window.Window() #The default constructor
  File "/usr/local/lib/python2.7/dist-packages/pyglet/window/xlib/__init__.py", line 474, in __init__
    super(XlibWindow, self).__init__(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pyglet/window/__init__.py", line 641, in __init__
    raise NoSuchConfigException('No standard config is available.')
NoSuchConfigException: No standard config is available.

pyglet 1.1.4 with Python 2.7: Paste in the output of `python -m pyglet.info`:

>>>3PFX:~$ python -m pyglet.info

Python
------------------------------------------------------------------------------
sys.version: 2.7.3 (default, Aug  1 2012, 05:14:39) 
[GCC 4.6.3]
sys.platform: linux2
os.getcwd(): /home/dixona2

pyglet
------------------------------------------------------------------------------
pyglet.version: 1.1.4
pyglet.__file__: /usr/local/lib/python2.7/dist-packages/pyglet/__init__.pyc
pyglet.options['debug_trace_depth'] = 1
pyglet.options['font'] = ('gdiplus', 'win32')
pyglet.options['xsync'] = True
pyglet.options['debug_trace_flush'] = True
pyglet.options['debug_win32'] = False
pyglet.options['debug_gl_trace'] = False
pyglet.options['debug_x11'] = False
pyglet.options['shadow_window'] = True
pyglet.options['debug_font'] = False
pyglet.options['debug_media'] = False
pyglet.options['debug_trace'] = False
pyglet.options['debug_lib'] = False
pyglet.options['graphics_vbo'] = True
pyglet.options['vsync'] = None
pyglet.options['debug_trace_args'] = False
pyglet.options['debug_gl'] = True
pyglet.options['debug_graphics_batch'] = False
pyglet.options['audio'] = ('directsound', 'openal', 'alsa', 'silent')
pyglet.options['debug_texture'] = False
pyglet.options['debug_gl_trace_args'] = False

pyglet.window
------------------------------------------------------------------------------
libGL error: failed to load driver: swrast
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pyglet/info.py", line 173, in _try_dump
    func()
  File "/usr/local/lib/python2.7/dist-packages/pyglet/info.py", line 77, in dump_window
    import pyglet.window
  File "/usr/local/lib/python2.7/dist-packages/pyglet/window/__init__.py", line 1684, in <module>
    gl._create_shadow_window()
  File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/__init__.py", line 494, in _create_shadow_window
    _shadow_window = Window(width=1, height=1, visible=False)
  File "/usr/local/lib/python2.7/dist-packages/pyglet/window/xlib/__init__.py", line 474, in __init__
    super(XlibWindow, self).__init__(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pyglet/window/__init__.py", line 641, in __init__
    raise NoSuchConfigException('No standard config is available.')
NoSuchConfigException: No standard config is available.

pyglet.gl.gl_info
------------------------------------------------------------------------------
/usr/local/lib/python2.7/dist-packages/pyglet/gl/gl_info.py:134: UserWarning: 
No GL context created yet.
  warnings.warn('No GL context created yet.')
gl_info.get_version(): 0.0.0
/usr/local/lib/python2.7/dist-packages/pyglet/gl/gl_info.py:175: UserWarning: 
No GL context created yet.
  warnings.warn('No GL context created yet.')
gl_info.get_vendor(): 
/usr/local/lib/python2.7/dist-packages/pyglet/gl/gl_info.py:166: UserWarning: 
No GL context created yet.
  warnings.warn('No GL context created yet.')
gl_info.get_renderer(): 
gl_info.get_extensions():
/usr/local/lib/python2.7/dist-packages/pyglet/gl/gl_info.py:124: UserWarning: 
No GL context created yet.
  warnings.warn('No GL context created yet.')

pyglet.gl.glu_info
------------------------------------------------------------------------------
/usr/local/lib/python2.7/dist-packages/pyglet/gl/glu_info.py:124: UserWarning: 
No GL context created yet.
  warnings.warn('No GL context created yet.')
glu_info.get_version(): 0.0.0
glu_info.get_extensions():
/usr/local/lib/python2.7/dist-packages/pyglet/gl/glu_info.py:149: UserWarning: 
No GL context created yet.
  warnings.warn('No GL context created yet.')

pyglet.gl.glx_info
------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pyglet/info.py", line 173, in _try_dump
    func()
  File "/usr/local/lib/python2.7/dist-packages/pyglet/info.py", line 121, in dump_glx
    window = pyglet.window.Window(visible=False)
  File "/usr/local/lib/python2.7/dist-packages/pyglet/window/xlib/__init__.py", line 474, in __init__
    super(XlibWindow, self).__init__(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pyglet/window/__init__.py", line 641, in __init__
    raise NoSuchConfigException('No standard config is available.')
NoSuchConfigException: No standard config is available.

pyglet.media
------------------------------------------------------------------------------
driver: pyglet.media.drivers.openal

pyglet.media.avbin
------------------------------------------------------------------------------
AVbin not available.

pyglet.media.drivers.openal
------------------------------------------------------------------------------
Library: <CDLL 'libopenal.so.1', handle 2a37980 at 2a11610>
Version: (1, 1)
Extensions:
   ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_disconnect ALC_EXT_EFX ALC_EXT_thread_local_context

Any additional info (platform/language/hardware) that may be relevant?
Using Ubuntu 12.04 (Precise), tried installing/reinstalling both compiling from 
source and package manager, neither worked.

I've seen that this problem persisted in the past 
(https://code.google.com/p/pyglet/issues/detail?id=456) but the answers on the 
forums were that they were a NVIDIA lib problem and were fixed with pyglet 
1.1.4 (or the patch given in the posts), but I'm having a similar issue, 
despite updating to the current version of pyglet.

The core of the problem has also been referenced to the use of libgl1-mesa-dev, 
so I reinstalled but to no fix.

video card info: VGA compatible controller: NVIDIA Corporation GT218 [GeForce 
310M] (rev a2)

I'm probably missing something obvious but I can't pin it down.

Thanks...

Original issue reported on code.google.com by mymusikr...@gmail.com on 14 Jun 2013 at 1:15