Problems with 1.0.6 - "ExceptionPtr" (new PyOgre u


04-08-2006 02:47:33

Hi all,

I'm coming back to Ogre after a long hiatus and am looking at PyOgre. I have a run-time problem with PyOgre; when I run any demo, e.g. ParticleFXDemo, I get an error about ExceptionPtr as follows:

Traceback (most recent call last):
File "", line 2, in ?
import pyogre.ogre as ogre
File "/usr/lib/python2.4/site-packages/pyogre/", line 263, in ?
OgreException = ExceptionPtr
NameError: name 'ExceptionPtr' is not defined

Line 263 of "/usr/lib/python2.4/site-packages/pyogre/" is

OgreException = ExceptionPtr

If I change this to

OgreException = None

then most of the Python demos work. I still get segfaults on things like but I think that's a different problem.

So.... what is the meaning of the ExceptionPtr error above? Is the OgreException variable even used?

* Linux Ubuntu Breezy
* automake-1.7
* manually compiled/installed cegui_mk2 version 0.4.1
* manually compiled/installed swig-1.3.29
* Ogre 1.0.6 configured with --with-platform=GLX
* Ogre 1.0.6 compiled with CC=gcc-3.3 CXX=g++-3.3
* PyOgre 1.0.6 built with "CC=gcc-3.3 CXX=g++-3.3 python build"

Thanks... I hope to get PyOgre running smoothly.


04-08-2006 03:28:57

The ExceptionPtr error relates to using a newer version of swig 1.3.29, the original 1.0.6 used 1.3.27 where Exception handling in 1.0.6 is a bit dodgy.

Istari has updated the Exception handling for 1.2.0, You could try using that in 1.0.6 ( don't see why it wouldn't work, though I haven't tried myself).

OgreException.i ... rev=0&sc=0

For the StaticGeometryDemo demo you should check the Ogre.log for potential errors.