Hi All, Is anyone using MySql 3.23.41 ? I am trying to Install MySQL-python and it gives me an error during build.
Here are the versions I am using.
Python 2.2a2 MySql 3.23.41 Linux Kernel 2.4 ( RedHat 7.1 ) MySQL-python 0.9.0 Zope 2.4.1
This is the error I am getting during #python setup.py build . . . gcc -g -O3 -Wall -Wstrict-prototypes -fPIC - I/usr/local/mysql/include -I/usr/local/include/python2.2 -c _mysql.c - o build/temp.linux-i686-2.2/_mysql.o _mysql.c: In function `_mysql__fetch_row': _mysql.c:784: too many arguments to function `_PyTuple_Resize' error: command 'gcc' failed with exit status 1
Thanks, Ravindra
__________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com
__________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com
Someone else reported this to me as well. Apparently the API has changed on Python 2.2 so that _PyTuple_Resize() only takes two arguments instead of three. Edit line 784 and get rid of the third argument as it ought to work. Not sure yet how this change will affect earlier versions of Python. Otherwise your setup is nearly the same as mine... On 05 Sep 2001 15:52:38 -0700, Ravindra wrote:
Hi All, Is anyone using MySql 3.23.41 ? I am trying to Install MySQL-python and it gives me an error during build.
Here are the versions I am using.
Python 2.2a2 MySql 3.23.41 Linux Kernel 2.4 ( RedHat 7.1 ) MySQL-python 0.9.0 Zope 2.4.1
This is the error I am getting during #python setup.py build . . . gcc -g -O3 -Wall -Wstrict-prototypes -fPIC - I/usr/local/mysql/include -I/usr/local/include/python2.2 -c _mysql.c - o build/temp.linux-i686-2.2/_mysql.o _mysql.c: In function `_mysql__fetch_row': _mysql.c:784: too many arguments to function `_PyTuple_Resize' error: command 'gcc' failed with exit status 1
-- Andy Dustman PGP: 0x930B8AB6 @ .net http://dustman.net/andy I'll give spammers one bite of the apple, but they'll have to guess which bite has the razor blade in it.
participants (2)
-
Andy Dustman -
Ravindra