Import Errror: orge.renderer.OGRE

rcodd

16-05-2009 23:57:49

i'm on on Mac OSX 10.5.6 having followed a combonation of the two build tutorials http://wiki.python-ogre.org/index.php/OSXBuildV2 and http://www.ogre3d.org/addonforums/ .php?f=3&t=9389. I managed to install python-orge with a few mishapps but when i goto run the demos


python Demo_Lighting.py

if encounter the error
Traceback (most recent call last):
File "Demo_Lighting.py", line 16, in <module>
import ogre.renderer.OGRE as ogre
ImportError: No module named ogre.renderer.OGRE


from the tutorial it says that PythonOgreConfig corrects the module path with
import sys
sys.path.insert(0,'..')
import PythonOgreConfig


but when i checked PythonOgreConfig.py to see how this was handled i was completly empty. What do i do

team23

21-05-2009 05:04:32

Yea, it can't find OGRE.

I haven't taken the time to figure out exactly what isn't working, but I was able to hackify it. I'm devving on PC with Mac there for compat, and I haven't really had time to do much other than getting my project running on it.

sys.path.insert(0, '/Users/jeffl/dev/root/usr/lib/python2.5/site-packages')

And we're working again.