PyDev path problem

paritybit

23-04-2008 06:52:41

I'm having a problem with the combination of Eclipse, Pydev and Python-Ogre. Running through the first tutorial, I get this error when I attempt to run:

Loading library ../../plugins\RenderSystem_GL.dll
Traceback (most recent call last):
File "C:\dev\pyworkspace\thegame\src\tut01\tut01.py", line 16, in <module>
ta.go()
File "C:\dev\PythonOgre\packages_2.5\ogre\renderer\OGRE\sf_OIS.py", line 60, in go
if not self._setUp():
File "C:\dev\PythonOgre\packages_2.5\ogre\renderer\OGRE\sf_OIS.py", line 84, in _setUp
self.root = ogre.Root(getPluginPath())
ogre.renderer.OGRE._ogre_exceptions_.OgreInternalErrorException: OGRE EXCEPTION(7:): 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)


It's pretty obvious that something is wrong with my environment, but I've not been successful in determining what. I've added two folders to my PyDev PYTHONPATH; the first is PythonOgre\package_2.5, the second is PythonOgre\demos\ogre. I attempted to add PythonOgre\plugins, but it didn't seem to help.

Anybody else using PyDev on Windows with Python-Ogre who might be able to help?

Thanks,
paritybit

Entropai

23-04-2008 09:31:08

I'm having a problem with the combination of Eclipse, Pydev and Python-Ogre. Running through the first tutorial, I get this error when I attempt to run:

Loading library ../../plugins\RenderSystem_GL.dll
Traceback (most recent call last):
File "C:\dev\pyworkspace\thegame\src\tut01\tut01.py", line 16, in <module>
ta.go()
File "C:\dev\PythonOgre\packages_2.5\ogre\renderer\OGRE\sf_OIS.py", line 60, in go
if not self._setUp():
File "C:\dev\PythonOgre\packages_2.5\ogre\renderer\OGRE\sf_OIS.py", line 84, in _setUp
self.root = ogre.Root(getPluginPath())
ogre.renderer.OGRE._ogre_exceptions_.OgreInternalErrorException: OGRE EXCEPTION(7:): 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)


It's pretty obvious that something is wrong with my environment, but I've not been successful in determining what. I've added two folders to my PyDev PYTHONPATH; the first is PythonOgre\package_2.5, the second is PythonOgre\demos\ogre. I attempted to add PythonOgre\plugins, but it didn't seem to help.

Anybody else using PyDev on Windows with Python-Ogre who might be able to help?

Thanks,
paritybit


Nope the problem isnt your configuration, its because when you run the soft ogre cannot detect the dlls it needs to load. You need to define plugins config file (plugins.cfg found in pythonogre\plugins) properly (pointing to where the dll's reside), this file should reside in the running dir of your app. Second you need the resource.cfg and configure it properly.

paritybit

24-04-2008 04:58:05

Thanks, that did the trick.

I copied the files from the PythonOgre/demos/ogre folder into my source directory, then changed the paths (relative from that location to where the plugins and resources were) and everything starts up as expected.