Ok for some reason today when I import plain pyglet.gl from the python 2.6.4 command line (ubuntu 9.10 default) it doesn't instant segfault for me! Restarts work wonders even for linux I guess...
Anyway, the pyglet test files work fine today so that's good! Importing horde3d works but I have a funny feeling perhaps the lib I built on ubuntu using cmake is in a debug mode or has a compile flag which python ctypes doesn't like? The moment I start to send commands to the lib it segfaults. How is the default cmake setup, can I change it to build the libs in release mode?
Also getting back to running pyglet in a 64-bit windows and python environment, I just get this and from some rudimentary searching on google apparently pyglet needs some work to port over
http://code.google.com/p/pyglet/issues/detail?id=396Code:
Python 2.6.4 (r264:75708, Oct 26 2009, 07:36:50) [MSC v.1500 64 bit (AMD64)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyglet
>>> import pyglet.gl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python26\lib\site-packages\pyglet\gl\__init__.py", line 507, in <modu
le>
import pyglet.window
File "C:\Python26\lib\site-packages\pyglet\window\__init__.py", line 1682, in
<module>
gl._create_shadow_window()
File "C:\Python26\lib\site-packages\pyglet\gl\__init__.py", line 491, in _crea
te_shadow_window
_shadow_window = Window(width=1, height=1, visible=False)
File "C:\Python26\lib\site-packages\pyglet\window\win32\__init__.py", line 423
, in __init__
super(Win32Window, self).__init__(*args, **kwargs)
File "C:\Python26\lib\site-packages\pyglet\window\__init__.py", line 641, in _
_init__
raise NoSuchConfigException('No standard config is available.')
pyglet.window.NoSuchConfigException: No standard config is available.
>>>
Thanks all for the help!
-Alex