Python-Ogre in Windows 7

willer88

10-02-2010 01:57:24

I have downloaded PythonOgre 1.6.4, and I can't run the demos. please help!

the error message:

Loading library ../../plugins\RenderSystem_GL.dll
OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library ../../p
lugins\RenderSystem_GL.dll. System Error: No se puede encontrar el mĀ¾dulo espec
ificado.
in DynLib::load at ..\src\OgreDynLib.cpp (line 81)
Exception AttributeError: 'particleSystem2' in <bound method SmokeApplication.__
del__ of <__main__.SmokeApplication object at 0x022C1610>> ignored


Thanks in advance.........

bharling

11-02-2010 15:14:43

Sadly no i can't help - however I'm just about to get a Win7 machine myself, python-ogre will of course be one of the first things I install so if i can make it work i'll post a solution. If you find out yourself first please tell all!

jerrydeanrsmith

12-02-2010 02:15:28

i had the same problem. follow these steps. This will make it work for a 32bit version of windows 7.

https://mail.google.com/mail/h/aujw2hp4 ... jxf70z0&zw

it wouldn't let me upload the pdf here is the link.


I am still having trouble though because i have a 64 bit computer. If anyone else can help me figure out how to run the tutorials. i keep getting the same error.

>>> import ogre.renderer.OGRE as ogre
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import ogre.renderer.OGRE as ogre
File "C:\Python26\lib\site-packages\ogre\renderer\OGRE\__init__.py", line 10, in <module>
from _ogre_ import *
ImportError: DLL load failed: %1 is not a valid Win32 application.

the problem happens here import ogre.renderer.OGRE as ogre. i cant figure out a way for the path to find this folder i am still new to python ogre. PLEASE HELP !!!!

jerrydeanrsmith

12-02-2010 17:15:57

I have come to the conclusion that it will not work on a 64 bit computer running windows. I saw that some 64 bit Linux machines got it working but i don't know anything about Linux yet. If this is going to work for windows 7 the developers are going to have to remake ogre to run at 64 bits or come up with a way to by pass this error" ImportError: DLL load failed: %1 is not a valid Win32 application." by transferring information at a slower rate on the computers. Hopefully its that latter.

jerrydeanrsmith

12-02-2010 22:49:21

i was wrong i think my issue arrived from putting the ogre folder inside of python 2.6 directory.

jerrydeanrsmith

12-02-2010 23:10:58

nope still not working i did a complete reinstall with new python 2.6.4,directx, the core files and the demos, still getting the same error.

dermont

12-02-2010 23:42:06

Sorry don't know the answer to your question, you should google your error but as you surmised it's probably a problem with mixing 64bit/32bit libs:
http://www.open-ragnarok.org/forum/view ... ?f=8&t=605

Maybe it's a problem with the python-ogre dll's but have you tried installed/using/ running 32bit python?

There is also a similar on-going thread on the developers group regarding 64bit Windows, maybe you would get a quicker response from one of the developers there.
http://groups.google.com/group/python-o ... d91706583e

bharling

14-03-2010 11:39:16

Well, i can report that I've got my new Win7 machine now, and pythonogre appears fine for me. Some demos aren't working but I think this will be resolved with the 1.7 release ( i'm not compiling from trunk yet :( )

heres what i did to get it working on my corei5 64, Radeon HD4750

1) get python 2.6 32-bit version
2) downloaded the 1.7 core release from http://sourceforge.net/projects/python-ogre/files/Latest/1.7.SVN%20SnapShot%20--%20UNSTABLE/Python-Ogre-Core-1.7r9326-r1029.7z/download
3) had to manually add python to the PATH environment variable, just added c:\python26;c:\python26\scripts ( right-click 'computer' -> properties -> Advanced system settings -> Environment Variables )
4) extract python-ogre somewhere, open new command-line window - python setup.py install
5) grabbed the demos from the svn - http://python-ogre.svn.sourceforge.net/viewvc/python-ogre/trunk/python-ogre/demos.tar.gz?view=tar
6) extract into the same folder as pythonogre ( i use c:\dev\pythonogre )
7) bobs your uncle - on my system at least

hope its helpful ;)

after installing i've updated the showcase demo to actually run again finally, it looks really dated now though, needs a rework

chpod

10-11-2010 09:51:11

I just installed on my laptop running Windows 7 64 bits home premium.

Update to bharling instructions:

1) get python 2.6 32-bit version
http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi
Install for all users
Target directory: C:\Python26

2) download the 1.7 release
http://heanet.dl.sourceforge.net/projec ... 1-r1125.7z

3) manually add python to the PATH environment variable, just add c:\python26;c:\python26\scripts ( right-click 'computer' -> properties -> Advanced system settings -> Environment Variables )

4) extract python-ogre for example under C:\Python-Ogre, open new command-line window - python setup.py install

5) demos are already under C:\Python-Ogre\demos
http://ignum2.dl.sourceforge.net/project/python-ogre/Latest/1.7.1/media-1.7.1-r1113.7z

6) Get media files
Unzip media-1.7.1-r1113.7z inside C:\Python-Ogre\ (it will create C:\Python-Ogre\demos\media and C:\Python-Ogre\demos\media_extra

7) Install directX
http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe

8) Run the demos:

Run fine on my system:
Demo_Basic
Demo_Bezier
Demo_BSP
Demo_CameraTracking
Demo_CelShading
Demo_DotScene
Demo_EnvMap
Demo_Facial
Demo_Fresnel
Demo_Grass
Demo_Lighting
Demo_NodeListener
Demo_OneFish
Demo_ParticleFX
Demo_RendererCreate
Demo_RenderToTexture
Demo_Shadows
Demo_SkeletalAnimation
Demo_SkeletonAnimation
Demo_SkyBox
Demo_SkyDome
Demo_SkyPlane
Demo_Smoke
Demo_Spinner
Demo_SSAO
Demo_SSAO_standalone
Demo_Terrain
Demo_Terrain2
Demo_TextureFX
Demo_Transparency
Demo_wx (see fix hereafter)

Does not run:

Demo_Compositor
Traceback (most recent call last):
File "Demo_Compositor.py", line 412, in <module>
application.go()
File "Demo_Compositor.py", line 67, in go
if (not self.setup()):
File "Demo_Compositor.py", line 90, in setup
self.createScene()
File "Demo_Compositor.py", line 227, in createScene
self.connectEventHandlers()
File "Demo_Compositor.py", line 244, in connectEventHandlers
CEGUI.WindowManager.getSingleton().getWindow("ExitDemoBtn").\
RuntimeError: WindowManager::getWindow - A Window object with the name 'ExitDemo
Btn' does not exist within the system
Exception AttributeError: "CompositorDemo instance has no attribute 'mFrameListe
ner'" in <bound method CompositorDemo.__del__ of <__main__.CompositorDemo instan
ce at 0x0431B6E8>> ignored


Demo_OgreCollision02
C:\Python-Ogre\demos\ogre>python Demo_OgreCollision02.py
Traceback (most recent call last):
File "Demo_OgreCollision02.py", line 13, in <module>
import ogre.physics.ODE as ode
File "C:\Python26\lib\site-packages\ogre\physics\ODE\__init__.py", line 1, in
<module>
from _ode_ import *
ImportError: No module named _ode_


Demo_SMoke2
C:\Python-Ogre\demos\ogre>python Demo_SMoke2.py
Traceback (most recent call last):
File "Demo_SMoke2.py", line 17, in <module>
import ogre.renderer.ogresdksample as sdksample
File "C:\Python26\lib\site-packages\ogre\renderer\ogresdksample\__init__.py",
line 7, in <module>
from _ogresdksample_ import *
ImportError: DLL load failed: The specified module could not be found.


Demo_Terrain_New
Runs, but only shows grey background with some green lines.

Demo_video.py
Demo_water.py
Demo_water_s.py

Do nothing, just return.

Demo_water.py
Does nothing, just returns.


Not checked:
Demo_NetworkClient
Demo_NetworkServer
Demo_PryoClient
Demo_PryoServer

Fix for Demo_wx:
1) Install wxPython2.8-win32-unicode-py26 from
http://downloads.sourceforge.net/wxpython/wxPython2.8-win32-unicode-2.8.11.0-py26.exe

2) In Demo_WX.py, comment line 41:
# add some fog
#sceneManager.setFog(ogre.FOG_EXP, ogre.ColourValue.White, 0.0002)