Python-Ogre Help


07-06-2008 02:20:33


I'm just starting to learn Ogre incorporated with Python and I'm having some troubles...'

I'm taking this tutorial:

Well the first example is of this:

import ogre.renderer.OGRE as ogre
import SampleFramework as sf

class TutorialApplication(sf.Application):

def _createScene(self):

if __name__ == '__main__':
ta = TutorialApplication()

When I put this into my Python GUI I come out with this error:

Traceback (most recent call last):
File "C:/Python25/tset", line 2, in <module>
import SampleFramework as sf
ImportError: No module named SampleFramework

Help would be appreciated,


07-06-2008 13:52:58

Basically, your script needs to import the sample framework that comes with the ogre demos,

by far the easiest way to do this is save your script in the pythonogre\demos\ogre folder. in there are all the resource scripts and plugins needed by ogre as well.