Problem with PythonOgre

Universum

15-06-2012 13:49:08

Hi all,

i have a big Problem with PythonOgre ;

if i let run the first code snippet from this tutorial( wiki<dot>python-ogre<dot>org/index.php/Basic_Tutorial_1 ) , i get the following error message:


Traceback (most recent call last):
File "C:\PythonOgre\demos\Test.py", line 11, in <module>
ta.go ()
File "C:\Python25\lib\site-packages\ogre\renderer\OGRE\sf_OIS.py", line 100, in go
if not self._setUp():
File "C:\Python25\lib\site-packages\ogre\renderer\OGRE\sf_OIS.py", line 130, in _setUp
self.root = ogre.Root( pluginFile )
OgreInternalErrorException: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library ../../plugins\RenderSystem_GL.dll. System Error: The specified module could not be found.

in DynLib::load at ..\src\OgreDynLib.cpp (line 80)


But I have watched and not missing dll file! then I'm fooling around something on the paths and then got an error message that it can not open zip archive ... so I reinstalled it again. I am using python version 2.5 and the corresponding pyogre.

Thanks in advance :)

dermont

15-06-2012 14:50:40

Wow python2.5 is a pretty old version. Do the demos work. I'm not sure it is supported any more. In more recent versions if your are running from the ogre/demos dir you can just add the following to the top of your file:

import sys
sys.path.insert(0,'..')
import PythonOgreConfig

For your case you may need to copy the plugins.cfg and resources.cfg files across to where you run the tutorial and change the paths to point to your plugins and media directory.

Universum

15-06-2012 17:17:21

Thanks for the quick response :)

Yes, i have started the script from the demo dir, and changed the path , but it nevertheless not work :(

When I use the path changeable so that it displays correctly, namely erschient following error message:

Traceback (most recent call last):
File "C:\PythonOgre\TEST\PythonOgreTEST.py", line 11, in <module>
ta.go ()
File "C:\Python25\lib\site-packages\ogre\renderer\OGRE\sf_OIS.py", line 105, i
n go
if not self._setUp():
File "C:\Python25\lib\site-packages\ogre\renderer\OGRE\sf_OIS.py", line 138, i
n _setUp
self._setUpResources()
File "C:\Python25\lib\site-packages\ogre\renderer\OGRE\sf_OIS.py", line 176, i
n _setUpResources
addResourceLocation(item.value, item.key, SectionName)
ogre.renderer.OGRE._ogre_exceptions_.OgreInternalErrorException: OGRE EXCEPTION(
7:InternalErrorException): C:\PythonOgre\demos\media\packs\cubemapJS.zip - error
whilst opening archive: Unable to read zip file. in ZipArchive::checkZzipError
at ..\src\OgreZip.cpp (line 259)
*-*-* OGRE Shutdown




PS: excuse my bad english :/

dermont

15-06-2012 17:39:01

Yeah it looks related to paths, can you post a copy of your C:\PythonOgre\TEST\resources.cfg.

Universum

15-06-2012 18:08:44

Ok :)

Here a Screenshot(with the media folder on the right side, for you can checking the content)

www<dot>pic-upload<dot>de/view-14677291/Unbenannt.png.html

And here the text in the media : (you can see also in the screenshot):

[Bootstrap]
Zip=C:\PythonOgre\demos\media\packs\OgreCore.zip

# Resource locations to be added to the default path
[General]
FileSystem=C:\PythonOgre\demos\media
FileSystem=C:\PythonOgre\demos\media\fonts
FileSystem=../media/sounds
FileSystem=../media/Audio
FileSystem=C:\PythonOgre\demos\media\materials\programs
FileSystem=C:\PythonOgre\demos\media\materials\scripts
FileSystem=C:\PythonOgre\demos\media\materials\textures
FileSystem=C:\PythonOgre\demos\media\models
FileSystem=C:\PythonOgre\demos\media\overlays
FileSystem=C:\PythonOgre\demos\media\particle
FileSystem=C:\PythonOgre\demos\media\gui


Zip= C:\PythonOgre\demos\media\packs\cubemap.zip
#/media/packs/cubemap.zip

Zip= C:\PythonOgre\demos\media\packs\cubemapJS.zip
#/media/packs/cubemapsJS.zip

Zip= C:\PythonOgre\demos\media\packs\dragon.zip
Zip= C:\PythonOgre\demos\media\packs\fresneldemo.zip
Zip= C:\PythonOgre\demos\media\packs\ogretestmap.zip
Zip= C:\PythonOgre\demos\media\packs\skybox.zip
#Zip= C:\PythonOgre\demos\media\packs\chiropteraDM.pk3


dermont

15-06-2012 18:48:00

I think you are missing a "s" in the zip file name.

Zip= C:\PythonOgre\demos\media\packs\cubemapsJS.zip

Universum

15-06-2012 19:39:09

THANKS!!!!!!!!!!!!! it works :D