Adding Python-Ogre Library to PyDev (and fixing .cfg's)
How do I add the Python-Ogre library to PyDev? I'm still rather new to the adding libraries thing, especially when it comes to potentially having to build the library in the first place. Any help on this would be greatly appreciated!!!
What OS are you using? If you are using windows you will not have to build it. Regarding adding the libraries, if you get it properly built and installed, it should add itself to the python libraries, so there is not much you have to do besides properly linking the correct python version to pydev.
Also if your using windows, i enjoy using PyScripter. It is a lot less resource dependant then Eclipse, and just easier to use.
Yeah, I'm using windows. I downloaded the Python-Ogre installer, and let the binaries run so now I have the C:\PythonOgre directory. Where do I go from there?
I like some of the features of Eclipse, like the rafactoring, etc. Does PyScripter have those features?
I'm running eclipse and pydev on my development box (one of them anyway) and If you have run the python-ogre installer then your work is already done since the installer puts all of the necessary python-ogre libraries into the python25 (or 24) site-packages directory. The only thing in the PythonOgre directory (i think) is related to help files and the code, media and plugins necessary to run the demos.
Hope this helps,
No unfortunately PyScripter does not have Refactoring, that i know of.
If everything is setup right it should be fine. Have properly setup pydev? take a look at the Getting Started
page on the pydev website and go through the Configuring the Interpreter
tutorial. When you press new python interpreter set the interpreter to "C:\Python25\python.exe
" ( if you did the basic install of python) and everything should work.
Alright, thanks a lot! I'll get started on the tutorials
Ugh, so I'm still feeling completely newbish to this, but I'm getting an error trying to run the tutorial provided on the PyWiki.
Here's the output of my console:
Traceback (most recent call last):
File "C:\Documents and Settings\Matt\workspace\Playground\basic_01.py", line 11, in <module>
File "C:\Python25\lib\site-packages\ogre\renderer\OGRE\sf_OIS.py", line 60, in go
if not self._setUp():
File "C:\Python25\lib\site-packages\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_Direct3D9. System Error: The specified module could not be found.
in DynLib::load at ..\src\OgreDynLib.cpp (line 80)
there's a problem with your plugins.cfg. open it up, and point it to the proper location (contianing ogre binary plugins)
Could you please rename the thread add Python-Ogre library to PyDev?
Thanks for all the help getting started, everything is working