Python-Ogre Information -- Start Here

andy

14-04-2007 08:40:42

This topic is intended as a starting point for people visiting this forum.

Python-Ogre is the project to create Python access to the Ogre (and other) libraries.

Currently it supports Ogre, OIS, CEGUI, QuickGUI, ODE, OgreODE, OgreNewt, Bullet, OgreBullet, PhysX, NXOgre, OgreAL, Caelum, OgreForests and parts of Plib - renderering, I/O, Gui, Physics, Sound, Video, specialised environments (Sky's, Forests) and Networking.

Python-Ogre replaces the PyOgre project (thanks for the inspiration guys).

Please visit [b]the main site[/b] for the latest information, downloads, bug tracking etc.

This forum tends to be used for discussions on using Python-Ogre, whereas development of the actual library is discussed on the Google Mailing List --- however if you have a question please post it in either place and someone will help :)

mithro

26-08-2008 03:11:05

For Linux specific information and binary packages, please see the Linux Information Thread.

andy

06-11-2009 14:23:45

There has been a change in the way I'm packaging Python-Ogre for Windows. Previously I built a complete "installer" that included the binaries/demos/media/etc and was easy to install :)

However the testing time required each time I built this was causing me to "not" create releases (as I simply didn't have the time!!) so I've changed to a more basic system.

There are now 2 files that need to be downloaded from SourceForge - one contains the latest binary snapshot, and the other the demos and media (and I may break this down further in the future).

And I'm assuming you have Python 2.6 and 7-Zip installed !!

1. Download and extract the latest core. ie - look in latest/1.6.4 Snapshot and grab Python-Ogre-Core-rxxxx-pyxxx.7z file. By default you can extract this to your C:\ drive and it will create C:\PythonOgreRelease
2. Download and extract the latest demos and media - Python-Ogre-Demos-rxxxx.7z (and yes the rev number will likely be different to the core but thats OK). Extract these files into the Python-Ogre directory you just created (C:\PythonOgreRelease) which will create a 'demos' directory tree.
3. Open a DOS Box (Command Prompt) and do the following
cd c:\PythonOgreRelease
python setup.py install
cd demos\ogre
python Demo_Smoke.py


Enjoy :)

jerrydeanrsmith

03-02-2010 16:43:29

Hello,
I have follow your instructions step by step, i have deleted and reinstalled new and old version of py-ogre many time and i am still having a lot of trouble.

i extracted the files and i ran the setup.py. i assumed that it worked because a cmd window flashed on then immediately off the screen,i went into python to try and run the demos. I cannot find any of these demos that you are talking about anywhere i would think they would already in the python ogre directory. i have looked on the web and am still having no luck. I am using windows 7 and was wondering if maybe that was the problem????

if you could put a video tutorial of the installation process that would be awesome. I just think it would be a lot more user friendly and more people would be less intimidated to use python ogre, or you could teach me how to do it and i could do the video myself?

Disa

21-03-2010 17:47:11

Python 2.6.4
Python-Ogre-Core-1.6.4-r1017-py263
python-ogre-demos_1.6.4


RenderSystem_GL.dll absent in the system, where to get ?

andy

21-03-2010 22:50:51

You didn't install the demos as a subdirectory of your python-ogre 'extract'.. as you can see in the log it's looking in ../../plugins which is in the core package.

You should have extracted the demos into the 'PythonOgreRelease/demo' directory

Andy

Disa

22-03-2010 17:59:37

Russian national pastime - remove the distribution after installation, who can know that the installer copies the only interface with python and the rest need to copy handles ...

moses479

28-03-2011 02:26:52

ok i have tryed to follow the steps exactly but i have installed python 2.7 since the latest official pythonorge release comes with a folder named packages_2.7:

after installing i get the following error:

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Windows\system32>d:

D:\>cd pythonogre

D:\pythonogre>setup.py install
running install

--- cut ---

Writing D:\python\Lib\site-packages\Python_Ogre-1.7.1-py2.7.egg-info

D:\pythonogre>cd demos\ogre

D:\pythonogre\demos\ogre>demo_smoke.py
Traceback (most recent call last):
File "D:\pythonogre\demos\ogre\Demo_Smoke.py", line 16, in <module>
import ogre.renderer.OGRE as ogre
File "D:\python\lib\site-packages\ogre\renderer\OGRE\__init__.py", line 10, in
<module>
from _ogre_ import *
ImportError: DLL load failed: %1 ist keine zul├Ássige Win32-Anwendung.

D:\pythonogre\demos\ogre>

andy

28-03-2011 05:47:05

Can you please do a directory listing of D:\python\lib\site-packages\ogre\renderer\OGRE\__init__.py and let me know what has been installed there..

Should be _ogre_.pyd, boost_pythonxxx.dll, OgreMain.dll, OgreProperty.dll, and cg.dll (plus a couple of .py files) -- if they are missing you can copy from pythonogre/packages_2.7\ogre\render\OGRE and see if that fixes the issue (don't know why this would be happening).

Or perhaps you need to update your DirectX and I'm assuming the latest vcredist files are installed (here and/or here)

Thanks
Andy

moses479

29-03-2011 19:22:00

28.03.2011 02:50 <DIR> .
28.03.2011 02:50 <DIR> ..
05.12.2010 04:57 221.184 boost_python-vc90-mt-1_45.dll
05.12.2010 03:12 6.371.944 cg.dll
10.09.2009 12:54 1.561 named_tuple.py
28.03.2011 02:50 2.188 named_tuple.pyc
05.12.2010 03:12 7.033.856 OgreMain.dll
05.12.2010 03:12 73.216 OgreProperty.dll
10.09.2009 12:54 24.632 sf_OIS.py
28.03.2011 02:50 19.774 sf_OIS.pyc
10.09.2009 12:54 817 sf_utils.py
28.03.2011 02:50 1.027 sf_utils.pyc
18.12.2010 12:15 30.084.608 _ogre_.pyd
10.09.2009 12:54 4.258 _ogre_exceptions_.py
28.03.2011 02:50 7.149 _ogre_exceptions_.pyc
10.09.2009 12:54 1.480 __init__.py
28.03.2011 02:50 1.172 __init__.pyc
15 Datei(en), 43.848.866 Bytes
2 Verzeichnis(se), 156.935.233.536 Bytes frei


both vc redists installaed, latest dx checked, still the same error -_-

dermont

31-03-2011 07:19:18

Try downloading Dependency Walker and opening up _ogre_.pyd and other related dlls. It should highlight the missing/problem dependency dlls.
http://www.dependencywalker.com/

moses479

31-03-2011 15:47:37

on _ogre_.pyd its saying errors on opening the following files:

MSVCR90.DLL
PYTHON27.DLL
GPSVC.DLL
IESHIMS.DLL

atleast PYTHON27.DLL and GPSVC.DLL r located in C:\Windows\System32 on my system !?!

dermont

31-03-2011 16:50:58

on _ogre_.pyd its saying errors on opening the following files:

MSVCR90.DLL
PYTHON27.DLL
GPSVC.DLL
IESHIMS.DLL

atleast PYTHON27.DLL and GPSVC.DLL r located in C:\Windows\System32 on my system !?!


I think it's MSVCR90.DLL that is your problem. Did you install the vcredist files as Andy suggested (first link I think)?


Or perhaps you need to update your DirectX and I'm assuming the latest vcredist files are installed (here and/or here)

Thanks
Andy

moses479

31-03-2011 23:57:23

unistalled and reinstalled evrything, no it not seems to be installied with the redist 2008 or 2010 on win7 64bit, for what reason ever, same error.

than i gave it a shot using the x86 version of python2.7.1 instead of the amd64 one ... finaly that did the trick.

anyway whats the deal about python orgre is not woking with a 64bit python version? not supported? i mean 64bit cpus r around for mainstream desktop pcs for like 9 years? at least the first linux kernel supporting them was released in 2002! evryone here is still working on a celeron? :roll:

dermont

01-04-2011 04:16:40


anyway whats the deal about python orgre is not woking with a 64bit python version? not supported?


The packaged version of Python-Ogre at sourceforge is built against a 32bit version of python.

Python-Ogre has only one active developer; despite the 64bit issue being raised a number of times no one has "stepped up to the plate" to create a 64bit packaged version for Windows.

It's an open source project so there is nothing to stop you downloading the source/libraries and creating a 64bit packaged version yourself. I'm sure Andy would host this on sourceforge.

Mohican

23-04-2011 07:49:59

I cannot see on the official website any page showing a list of projects using python-ogre.
It would be nice if one was added, as it is good for PR!

EDIT: Actually, I finally found this info on the wiki!
Still, it would be better if it was featured on the main site.

pirateangel

11-05-2011 15:43:33

I have a problem trying to run a demo(Demo_basic.py), what's wrong?

Mohican

11-05-2011 16:26:30

Have you downloaded the Media Pack from sourceforge?
Download it from the 1.7.1 version, it works with 1.7.2.
It contains the assets needed to run the demos.

pirateangel

14-05-2011 13:26:03

Thanks Mohican, it works.

Mohican

15-05-2011 02:01:56

Thanks Mohican, it works.

No worries. I see that you are a Panda3D user btw.
Could you tell me how it compares to Python-Ogre in your opinion?

pirateangel

17-05-2011 23:18:47

In my opinion the panda3d is more "easy" and python-ogre is more powerful, but there many topics about it both here in the forum as in the panda3d forum

*I'm newbie in panda3d too.

Acidz

02-08-2011 11:44:21

Hi...

Is there an python version of the API?

If their is any easy way please point it out :)

I have used some of python's __buildins__ aka help(ogre) e.g.

Thanks

dermont

03-08-2011 17:36:09

Hi...

Is there an python version of the API?

If their is any easy way please point it out :)

I have used some of python's __buildins__ aka help(ogre) e.g.

Thanks


Sorry no python versions of the API, you have to refer to the C++ versions, e.g:

http://www.ogre3d.org/docs/api/html/classes.html

Yue

31-08-2011 22:57:24

Help me run Demos Error.

TTimo

28-12-2011 21:47:53

Can I get a link to the media download? I've been trying to get 1.7.2 going, and hitting several problems. Looks like the last one is getting my hands on the media:

*-*-* OGRE Initialising
*-*-* Version 1.7.2 (Cthugha)
Creating resource group Bootstrap
OGRE EXCEPTION(7:InternalErrorException): ../media/packs/OgreCore.zip - error whilst opening archive: Unable to read zip file. in ZipArchive::checkZzipError at .\src\OgreZip.cpp (line 280)
*-*-* OGRE Shutdown