problem making an executable

powerstation

22-06-2009 06:52:38

I tried to make tutorial 1 in the wiki into an exe.
Its .py form was working.

I used py2exe and placed it in the demos folder.
Followed step by step, placing the dlls in for every error encountered, everything worked fine.
I already have the configuration screen popping out but it went into a black screen, no robot mesh appeared.
robot.mesh is in media folder. Also tried pasting robot.mesh and media folder everywhere but still i get the same exception below.

Any idea how to solve this?

EXCEPTION(6:FileNotFoundException): Cannot locate resource robot.mesh in resource group Autodetect or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 753)
Traceback (most recent call last):
File "..\tutorial1.py", line 35, in <module>
ta.go ()
File "..\ogre\renderer\OGRE\sf_OIS.py", line 60, in go
if not self._setUp():
File "..\ogre\renderer\OGRE\sf_OIS.py", line 97, in _setUp
self._createScene()
File "..\tutorial1.py", line 28, in _createScene
ent1 = sceneManager.createEntity ('Robot', 'robot.mesh')
ogre.renderer.OGRE._ogre_exceptions_.OgreFileNotFoundException: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource robot.mesh in resource group Autodetect or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 753)

nihilocrat

01-07-2009 20:13:55

make sure that you copy over your media so that the .exe version can get to it.

Take a look at resources.cfg and make sure it's including the directory with 'robot.mesh' in it correctly.

Khemka86

19-01-2010 06:20:33

please tell me the dll files needed to make exe of pyogre code.
I am facing with an error given below:


ImportError: MemoryLoadLibrary failed loading ogre\renderer\OGRE\_ogre_.pyd

Thanks in Advance

bharling

03-02-2010 12:19:33

best thing to do is to copy every file with .dll extension in the python-ogre package ( usually everything in the plugins folder ) into the same folder as your exe. There are better more complex ways to do it but that should fix your problem.

Khemka86

16-03-2010 07:51:03

I have successfully implemented...
Thanks