No matching function for overloaded 'new_ColourValue'


30-09-2005 06:14:13

I can't get pyogre working. When I do "import pyogre.ogre" it gives me an error.

mivey@gimli:~$ python
Python 2.4.1 (#2, Mar 30 2005, 21:51:10)
[GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyogre.ogre as ogre
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/pyogre/", line 4582, in ?
ColourValue.White = ColourValue(1, 1, 1, 1)
File "/usr/lib/python2.4/site-packages/pyogre/", line 4547, in __init__
newobj = _ogre.new_ColourValue(*args)
TypeError: No matching function for overloaded 'new_ColourValue'

I'm on Ubuntu linux with python 2.4. I compiled Ogre 1.0.5 from source and I got the latest pyogre from SVN.

I found one old forum post with this problem but no answers: ... 28c0a701dc

Any suggestions?


30-09-2005 09:21:23

I don't know to what this problem is related. I'll try building with Ogre 1.0.5 and Python2.4 later today and let you know if it works for me or not. Thank you for this report.

(I created a topic for reports like this one, please use it next time.)


01-10-2005 02:35:30

fog, what setup do you use? Perhaps I will just switch to that...


01-10-2005 09:52:32

Currently I am still building for 1.0.4 and Python 2.3.


02-10-2005 01:25:30

Well, I went back to ogre 1.0.4 and it doesn't work either...strange. Did you make any progress on trying python 2.4 fog?


02-10-2005 11:38:37

Ogre 1.0.4 and Python 2.4 work perfectly well here. Which version of Swig are you using? Swig >= 1.3.24 is a must.


02-10-2005 19:14:41

Ah I have swig 1.3.22. Unfortunately nothing newer is easily available for ubuntu so I'll have to compile something newer myself.


02-10-2005 20:52:01

Switch to Debian: you'll even get Ogre debs and, in a few weeks, PyOgre debs. ;D


03-10-2005 03:16:48

Heh I'm not switching distros just to get this working :) Next version of ubuntu is due in a few weeks anyway.


03-10-2005 14:56:31

SWIG is easy to install manually.


03-10-2005 16:58:24

yeah I installed the newer version. I ran into the "swig uses all my memory" problem reported elsewhere in the forum. I don't really have space on my hard drive for extra swap so I'm going to give up for a few weeks until the new Ubuntu comes out since I'll probably reinstall then.


03-10-2005 18:20:35

This reminds me of the fact that, while we still don't provide binary packages we can at least provide "ready to compile" packages (i.e., with pre-parsed .i files.) I'll setup something in a coupld of days.


08-10-2005 19:47:26

That would be appreciated :)


09-10-2005 21:06:25

The swig eating all memory problem should be fixed now. Give it a try.