Python-Ogre 1.0 RC2 Available

andy

10-06-2007 08:06:35

The Second release candidate for Python-Ogre 1.0 is now available.

Update:
The RC2b version had a couple of issues that impacted a few people
* Media files were out of date causing DirectX issues on some cards
* A newer version of VC8 redist needed for some systems
Hence the current version is RC2c.

Please visit the [b]Python-Ogre[/b] web site for complete release information and download details.

In summary this release:
  1. * Has a complete Windows installer (one download with everything for Python 2.4 and 2.5) - it also installs the VC8 redist files and runs the DirectX Update utility
    * Is built on the latest Ogre 1.4 source code
    * Built with VC8 instead of VC7
    * Built with the latest DirectX SDK
    * Has documentation in Windows help format (html available as well)
    * GPU Programing is now available
    * Exposes numerous additional functions to allow any (nearly) C++ class to be subclasssed from Python
    * General bug fixes and enhancements
    * Check [b]here[/b] for detailed changes[/list:u]
    As always we hope that it's bug free, and it's not :) so please report any issues/problems and we'll solve them as quickly as possible

    Thanks
    Python-Ogre Development Team

broken_sword

10-06-2007 14:22:28

Congratulation!!!!

inneractive

10-06-2007 22:32:47

Thank you!

unimaginable

11-06-2007 04:39:59

Apologies if this is a silly question, but when I try to run the Windows installer PythonOgreInstaller1.0RC2b.exe on my Windows 2000 machine, I get an error box pop up with the following written:
Runtime Error (at 7:738)
Out Of Range.

Does anybody else also get this error message, and know how to avoid it?

Thanks in advance!

andy

11-06-2007 04:54:25

Thats not good :(

Do you have Python Installed? If so what version and where is it located..

Cheers

Andy

unimaginable

11-06-2007 06:12:37

Do you have Python Installed? If so what version and where is it located..

Yes, I have Python 2.5 installed in c:\python25.

andy

11-06-2007 07:40:02

Windows XP?
Installed from the standard Python Installer or from source?

Can you run regedit for me and lookin both these areas:
HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\
HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore\
and let me know what folders you see under each - I'm expecting to see at least "2.5" but there might be more (or less :) )

In looking at the installer code (pascal would you believe!!) I could see a possible problem (guessing here) if there are more than 2 entries/folders in the registry areas listed above (perhaps you also had python 2.3 installed) -- please let me know how many there are, and if need be remove the 2.3 entry and try the install again..

Cheers
Andy

unimaginable

11-06-2007 14:34:31

Windows XP?
Installed from the standard Python Installer or from source?


Win2000 and the standard Python Installer.

Can you run regedit for me and lookin both these areas:
HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\
HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore\
and let me know what folders you see under each - I'm expecting to see at least "2.5" but there might be more (or less )


OK, good call, I've got Python 2.3, 2.4 and 2.5 installed (older versions to support legacy code that hasn't been updated).
Under HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\ I've got the folders 2.3, 2.4, and 2.5.
Under HKEY_CURRENT_USER\SOFTWARE\ I only have Python 2.5 listed as a folder.

OK I'll try uninstalling Python 2.3 and get back to you. That might fix it.
Thanks for your help so far! :)

unimaginable

11-06-2007 15:03:19

Thanks Andy, it worked! Hopefully if anybody else has this problem, just uninstall Python 2.3.

deficite

11-06-2007 17:17:32

Has anybody got this to work on Vista? I haven't tried it yet, but I know that MeshMagick was built with VC8 as well, and I got Side-by-Side errors trying to run it (the VC8 redist that comes with this release may fix that though?)

andy

12-06-2007 00:13:11

I've done a small amount of testing (ran 4 or 5 demos) on Vista without any problems.

There is one user on the board that isn't having any joy but I haven't heard back from him regarding his testing of RC2

Andy..

deficite

12-06-2007 17:34:06

I'm going to take the plunge! I'll tell you what happens afterwards.

sabo

19-06-2007 20:57:48

Thank you!

Little_Bob

27-06-2007 18:40:35

Im getting the missing dll error but I have the library installed
(other programs that need MSVCR71.DLL run fine)

Im on windows98

I tried what SiWi did but that did not work

andy

28-06-2007 15:11:11

Can you confirm what error message you are getting.

Do you also get it when running from the command prompt - -ie
cd \PythonOgre\demos\ogre
python Demo_Smoke.py

And if that fails can you try something like:
path=c:\python25;%path%
cd \PythonOgre\demos\ogre
python Demo_Smoke.py


Cheers
Andy

Little_Bob

28-06-2007 15:44:23

C:\PYTHON25\lib\site-packages\ogre\renderer\OGRE\__init__.py:6: RuntimeWarning:
to-Python converter for struct std::pair<class std::basic_string<char,struct std
::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<
char,struct std::char_traits<char>,class std::allocator<char> > > already regist
ered; second conversion method ignored.
from _ogre_ import *
Traceback (most recent call last):
File "Demo_smoke.py", line 13, in <module>
import SampleFramework as sf
File "C:\PythonOgre\demos\ogre\SampleFramework.py", line 11, in <module>
from ogre.renderer.OGRE.sf_OIS import *
File "C:\PYTHON25\lib\site-packages\ogre\renderer\OGRE\sf_OIS.py", line 13, in
<module>
import ogre.io.OIS as OIS
File "C:\PYTHON25\lib\site-packages\ogre\io\OIS\__init__.py", line 1, in <modu
le>
from _ois_ import *
ImportError: DLL load failed: One of the library files needed to run this application cannot be found.


this is the specific error(although depending on the demo that is run, the begining is a little different, but the last error is alwase the same)

and yes all of my paths are setup correctly.

andy

28-06-2007 16:14:14

I've never tested with Win98, however it looks like it doesn't look in the .pyd directory for any required dll's (which is how XP and Vista work) -- in this case OIS.dll..

Could you copy OIS.dll from \python25\lib\site-packages\ogre\io\OIS to the demos directory and try again..

And/or add this directory to your path and see if it works

Cheers
Andy

Little_Bob

28-06-2007 18:33:00

nope. that did not work, same error :?

Little_Bob

28-06-2007 22:43:54

After figuring out how to use depends.exe properly, I moved around some dlls that it said were missing, I got it to an error that I recognize:

My version of opengl is not new enough(v1.1) for ogre to run.

how do you set python-ogre to use directx?



I would need to check to see what files I moved(copied) if you want to know.(I think the problem was that windows 98 cannot use a dll more than once and the multiple .pyd files each seem to use them)

andy

29-06-2007 00:43:39

Test the following...
python
import ogre.renderer.OGRE
import ogre.io.OIS

And let me know if each module loads

To use DirectX you select it from the Ogre Config dialog when each demo starts -- if you don't get the config dialog then the problem isn't driver related.
Or look to update to XP :)
Andy

Little_Bob

29-06-2007 14:37:25

when i do this python
import ogre.renderer.OGRE
import ogre.io.OIS


this is what comes back:>>> import ogre.renderer.OGRE
C:\PYTHON25\lib\site-packages\ogre\renderer\OGRE\__init__.py:6: RuntimeWarning:
to-Python converter for struct std::pair<class std::basic_string<char,struct std
::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<
char,struct std::char_traits<char>,class std::allocator<char> > > already regist
ered; second conversion method ignored.
from _ogre_ import *
>>> import ogre.io.OIS
C:\PYTHON25\lib\site-packages\ogre\io\OIS\__init__.py:1: RuntimeWarning: to-Pyth
on converter for class std::multimap<class std::basic_string<char,struct std::ch
ar_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,struct std::less<class std:
:basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,
class std::allocator<struct std::pair<class std::basic_string<char,struct std::c
har_traits<char>,class std::allocator<char> > const ,class std::basic_string<cha
r,struct std::char_traits<char>,class std::allocator<char> > > > > already regis
tered; second conversion method ignored.
from _ois_ import *
C:\PYTHON25\lib\site-packages\ogre\io\OIS\__init__.py:1: RuntimeWarning: to-Pyth
on converter for struct std::pair<class std::basic_string<char,struct std::char_
traits<char>,class std::allocator<char> > const ,class std::basic_string<char,st
ruct std::char_traits<char>,class std::allocator<char> > > already registered; s
econd conversion method ignored.
from _ois_ import *
>>>

so it appears that the ogre.renderer.OGRE and the ogre.io.OIS modules do load.


_______________________________________________
as of current this is the ogre.log when i run one of the python-ogre demos:

09:20:42: Creating resource group General
09:20:42: Creating resource group Internal
09:20:42: Creating resource group Autodetect
09:20:42: SceneManagerFactory for type 'DefaultSceneManager' registered.
09:20:42: Registering ResourceManager for type Material
09:20:42: Registering ResourceManager for type Mesh
09:20:42: Registering ResourceManager for type Skeleton
09:20:42: MovableObjectFactory for type 'ParticleSystem' registered.
09:20:42: OverlayElementFactory for type Panel registered.
09:20:42: OverlayElementFactory for type BorderPanel registered.
09:20:42: OverlayElementFactory for type TextArea registered.
09:20:42: Registering ResourceManager for type Font
09:20:42: ArchiveFactory for archive type FileSystem registered.
09:20:42: ArchiveFactory for archive type Zip registered.
09:20:42: FreeImage version: 3.9.2
09:20:42: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
09:20:42: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
09:20:42: DDS codec registering
09:20:42: Registering ResourceManager for type HighLevelGpuProgram
09:20:42: Registering ResourceManager for type Compositor
09:20:42: MovableObjectFactory for type 'Entity' registered.
09:20:42: MovableObjectFactory for type 'Light' registered.
09:20:42: MovableObjectFactory for type 'BillboardSet' registered.
09:20:42: MovableObjectFactory for type 'ManualObject' registered.
09:20:42: MovableObjectFactory for type 'BillboardChain' registered.
09:20:42: MovableObjectFactory for type 'RibbonTrail' registered.
09:20:43: Loading library ../../plugins\RenderSystem_GL.dll
09:20:43: Installing plugin: GL RenderSystem
09:20:43: OpenGL Rendering Subsystem created.
09:20:45: Plugin successfully installed
09:20:45: Loading library ../../plugins\RenderSystem_Direct3D9.dll
09:20:45: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library ../../plugins\RenderSystem_Direct3D9.dll. System Error: A device attached to the system is not functioning.

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


the Ogre Config dialog does not come up.

andy

29-06-2007 14:54:14

Seems like your directx drivers are broken/incompatible..

Edit the plugins.cfg file and comment out the RenderSystems_Direct3D9.dll line and see if it makes a difference

Cheers

Andy

Little_Bob

29-06-2007 18:25:09

editing plugins.cfg alowed it to get to the ogre config dialog but, as i said my opengl is to old.

i noticed that the normal 3dogre's RenderSystems_Direct3D9.dll is bigger than python-ogre's RenderSystems_Direct3D9.dll, so i replaced it.

this alows the dialog to come up but then it crashes after i click "OK" with this message in the windows error box.
PYTHON caused an exception c000000dH in module MSVCR80.DLL at 016f:78138a8c.
probably because its not compatable?

here is the ogre.log
it does not desplay any errors but shows how far it gets before the crash.