Python-Ogre Help

inkcoder

07-06-2008 02:20:33

Hey,

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

I'm taking this tutorial:
http://wiki.python-ogre.org/index.php/Basic_Tutorial_1

Well the first example is of this:

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

class TutorialApplication(sf.Application):

def _createScene(self):
pass

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


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,
Inkcoder

bharling

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.