arrummzen
11-01-2007 23:49:52
I'm trying to use CEGUI with PyOgre.
In my resource directory, I have:
Commonwealth-10.font TaharezLook.looknfeel TaharezLook.imageset TaharezLook.scheme TaharezLookSkin.scheme
I have edited TaharezLook.scheme TaharezLookSkin.scheme to remove the relative path information (should be unneeded with all the files in the same directory)
I do:
#init the CEGUI
self.CEOgreRenderer = cegui.OgreCEGUIRenderer(RenderWin)
self.CEGUISys = cegui.System(self.CEOgreRenderer)
cegui.Logger.getSingleton().loggingLevel = cegui.Insane
#load the scheme
cegui.SchemeManager.getSingleton().loadScheme("TaharezLookSkin.scheme")
cegui.FontManager.getSingleton().createFont("Commonwealth-10.font")
I get:
Program received signal SIGSEGV, Segmentation fault.
0xb7ea10ea in PyType_IsSubtype (a=0x0, b=0xb7f37a80) at typeobject.c:821
821 typeobject.c: No such file or directory.
in typeobject.c
(tgdb) bt
#0 0xb7ea10ea in PyType_IsSubtype (a=0x0, b=0xb7f37a80) at typeobject.c:821
#1 0xb7e728e5 in PyFile_WriteObject (v=0x82225d8, f=0xb7a640b0, flags=1) at fileobject.c:2026
#2 0xb7ef312c in PyErr_Display (exception=0x82225d8, value=0xb62ce8cc, tb=0xb62f15cc) at pythonrun.c:1167
#3 0xb7ef5200 in sys_excepthook (self=0x0, args=0xb62a6b94) at sysmodule.c:137
#4 0xb7e8c25f in PyCFunction_Call (func=0xb7a61c6c, arg=0xb62a6b94, kw=0x0) at methodobject.c:73
#5 0xb7e6164d in PyObject_Call (func=0xb7a61c6c, arg=0xb62a6b94, kw=0x0) at abstract.c:1795
#6 0xb7ecde83 in PyEval_CallObjectWithKeywords (func=0xb7a61c6c, arg=0xb62a6b94, kw=0x0) at ceval.c:3430
#7 0xb7ef2bfc in PyErr_PrintEx (set_sys_last_vars=1) at pythonrun.c:1066
#8 0xb7ef2815 in PyErr_Print () at pythonrun.c:965
#9 0xb7ef23f0 in PyRun_SimpleFileExFlags (fp=0x804a008, filename=0xbf8c7120 "./splinerace.py", closeit=1, flags=0xbf8c6d70) at py
thonrun.c:864
#10 0xb7ef1c7d in PyRun_AnyFileExFlags (fp=0x804a008, filename=0xbf8c7120 "./splinerace.py", closeit=1, flags=0xbf8c6d70) at pytho
nrun.c:664
#11 0xb7efa5f5 in Py_Main (argc=4, argv=0xbf8c6e74) at main.c:493
#12 0x0804865e in main (argc=4, argv=0xbf8c6e74) at python.c:23
Is this fixable? If yes, how? If not, is there a more reliable way to do GUIs with Python in Ogre?
Thank you for your time,
Arrummzen
In my resource directory, I have:
Commonwealth-10.font TaharezLook.looknfeel TaharezLook.imageset TaharezLook.scheme TaharezLookSkin.scheme
I have edited TaharezLook.scheme TaharezLookSkin.scheme to remove the relative path information (should be unneeded with all the files in the same directory)
I do:
#init the CEGUI
self.CEOgreRenderer = cegui.OgreCEGUIRenderer(RenderWin)
self.CEGUISys = cegui.System(self.CEOgreRenderer)
cegui.Logger.getSingleton().loggingLevel = cegui.Insane
#load the scheme
cegui.SchemeManager.getSingleton().loadScheme("TaharezLookSkin.scheme")
cegui.FontManager.getSingleton().createFont("Commonwealth-10.font")
I get:
Program received signal SIGSEGV, Segmentation fault.
0xb7ea10ea in PyType_IsSubtype (a=0x0, b=0xb7f37a80) at typeobject.c:821
821 typeobject.c: No such file or directory.
in typeobject.c
(tgdb) bt
#0 0xb7ea10ea in PyType_IsSubtype (a=0x0, b=0xb7f37a80) at typeobject.c:821
#1 0xb7e728e5 in PyFile_WriteObject (v=0x82225d8, f=0xb7a640b0, flags=1) at fileobject.c:2026
#2 0xb7ef312c in PyErr_Display (exception=0x82225d8, value=0xb62ce8cc, tb=0xb62f15cc) at pythonrun.c:1167
#3 0xb7ef5200 in sys_excepthook (self=0x0, args=0xb62a6b94) at sysmodule.c:137
#4 0xb7e8c25f in PyCFunction_Call (func=0xb7a61c6c, arg=0xb62a6b94, kw=0x0) at methodobject.c:73
#5 0xb7e6164d in PyObject_Call (func=0xb7a61c6c, arg=0xb62a6b94, kw=0x0) at abstract.c:1795
#6 0xb7ecde83 in PyEval_CallObjectWithKeywords (func=0xb7a61c6c, arg=0xb62a6b94, kw=0x0) at ceval.c:3430
#7 0xb7ef2bfc in PyErr_PrintEx (set_sys_last_vars=1) at pythonrun.c:1066
#8 0xb7ef2815 in PyErr_Print () at pythonrun.c:965
#9 0xb7ef23f0 in PyRun_SimpleFileExFlags (fp=0x804a008, filename=0xbf8c7120 "./splinerace.py", closeit=1, flags=0xbf8c6d70) at py
thonrun.c:864
#10 0xb7ef1c7d in PyRun_AnyFileExFlags (fp=0x804a008, filename=0xbf8c7120 "./splinerace.py", closeit=1, flags=0xbf8c6d70) at pytho
nrun.c:664
#11 0xb7efa5f5 in Py_Main (argc=4, argv=0xbf8c6e74) at main.c:493
#12 0x0804865e in main (argc=4, argv=0xbf8c6e74) at python.c:23
Is this fixable? If yes, how? If not, is there a more reliable way to do GUIs with Python in Ogre?
Thank you for your time,
Arrummzen