[solved] Linux: need more than 3 values to unpack

chpod

31-03-2008 10:32:26

Hi all,

I followed the LinuxBuildV2 wiki at:
http://wiki.python-ogre.org/index.php/LinuxBuildV2

I have been able to run the native Smoke demo.

However, I have some trouble running the python-ogre version.

I am running:
python Demo_Smoke.py

And here is the log:
Finished parsing scripts for resource group General
Parsing scripts for resource group Internal
Finished parsing scripts for resource group Internal
Texture: clouds.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
Traceback (most recent call last):
File "Demo_Smoke.py", line 39, in <module>
application.go()
File "/home/cyclonic/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/sf_OIS.py", line 61, in go
if not self._setUp():
File "/home/cyclonic/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/sf_OIS.py", line 103, in _setUp
self._createFrameListener()
File "/home/cyclonic/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/sf_OIS.py", line 173, in _createFrameListener
self.frameListener = FrameListener(self.renderWindow, self.camera)
File "/home/cyclonic/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/sf_OIS.py", line 221, in __init__
self._setupInput()
File "/home/cyclonic/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/sf_OIS.py", line 248, in _setupInput
self.windowResized(self.renderWindow)
File "/home/cyclonic/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/sf_OIS.py", line 263, in windowResized
[width, height, depth, left, top] = rw.getMetrics() # Note the wrapped function as default needs unsigned int's
ValueError: need more than 3 values to unpack
Unregistering ResourceManager for type BspLevel
*-*-* OGRE Shutdown


I have ubuntu 7.10 installed.

Any idea?
chpod

andy

01-04-2008 05:02:53

I've updated the wiki http://wiki.python-ogre.org/index.php/LinuxBuildV2in step 2 to reflect the fact that we need to use a particlar version of Pygccxml (revision 1234 - yes this is the correct revision)..

I've also updated the environment.py to force this as well..

This will be resolved with the Python-Ogre 1.2 release, however lots of changes happening at the moment.

Regards

Andy

chpod

01-04-2008 12:23:07

That was it, thanks Andy!

chpod