Re: Weird gcc errors while installing "MySQL-python" module
Jonas Schneider wrote: > Hi guys, > > I´m experiencing weird error messages while installing MySQL-python > with easy_install... I have no idea where the errors come from. > > Read the whole output at http://pastebin.com/m3859cf40 > It´s really a lot... > > Someone got ideas? The pastebin errormessage didn't work for me, on two different machines actually. Diez -- http://mail.python.org/mailman/listinfo/python-list
Weird gcc errors while installing "MySQL-python" module
Hi guys, I´m experiencing weird error messages while installing MySQL-python with easy_install... I have no idea where the errors come from. Read the whole output at http://pastebin.com/m3859cf40 It´s really a lot... Someone got ideas? Greets Jonas -- http://mail.python.org/mailman/listinfo/python-list
Problem with installing MySQL-python-1.2.1_p2
Hi, I have tried to install MySQL-python-1.2.1_p2 under Windows XP with Python 2.4.3 and I get some problems. 1- I get this warning when I run setup.py build: C:\tools\Python\lib\distutils\extension.py:133: UserWarning: Unknown Extension options: 'mysql_root' warnings.warn(msg) 2- When I compile _mysql.c, there are errors in the file: DL_EXPORT(void) init_mysql(void) { ... if (PyDict_SetItemString(dict, "version_info", PyRun_String(version_info, Py_eval_input, dict, dict))) goto error; if (PyDict_SetItemString(dict, "__version__", PyString_FromString(__version__))) PyRun_String parameter version_info and PyString_FromString parameter __version__ are not defined. I suspect that they should be surrounded by double quotes but if I do that and compile _mysql.pyd. When that module is initialized, python is crashing because PyRun_String returns a NULL pointer instead of the expected valid PyObject pointer. Is there anybody that can help me? Thank you, Olivier Langlois http://www3.sympatico.ca/olanglois -- http://mail.python.org/mailman/listinfo/python-list
Re: Issues installing MySQL-python-0.3.5
Sorry for the duplicate email, Keith. [EMAIL PROTECTED] wrote: > Hi, > > I am trying to use the Python MySQL APIs and have been attempting to > install the above software. > > I am using MySQL 5.0.18-standard with Python 2.4.1 > > I get errors on the build. Some searching showed that one of the modules > I was having issues with now has less arguments in my version of python, > but I can't seem to fix the following error: > > *** > _mysqlmodule.c: In function ‘_mysql_ConnectionObject_shutdown’: > _mysqlmodule.c:1019: error: too few arguments to function > ‘mysql_shutdown’ > *** > Should I just give up on MySQL-python-0.3.5 ? [...] This release is almost 5 years old. Where did you dig it out from? ;-) http://dustman.net/andy/python/MySQLdb_obsolete/0.3.5 """ MySQLdb module 0.3.5 OBSOLETE Python Interface to MySQL Stability: Perfect in every way Released: 2001-03-25 00:00 UTC Notes NOTICE: This version works fine, but I strongly recommend 0.9.0 or newer, available from SourceForge. """ I'd try MySQLdb 1.2.0, which *might* work, according to its README: """ * MySQL-5.0 and newer are not currently supported, but might work. * MaxDB, formerly known as SAP DB (and maybe Adabas D?), is a completely different animal. Use the sapdb.sql module that comes with MaxDB. """ -- Gerhard -- http://mail.python.org/mailman/listinfo/python-list
Issues installing MySQL-python-0.3.5
Hi, I am trying to use the Python MySQL APIs and have been attempting to install the above software. I am using MySQL 5.0.18-standard with Python 2.4.1 I get errors on the build. Some searching showed that one of the modules I was having issues with now has less arguments in my version of python, but I can't seem to fix the following error: *** _mysqlmodule.c: In function _mysql_ConnectionObject_shutdown: _mysqlmodule.c:1019: error: too few arguments to function mysql_shutdown *** Should I just give up on MySQL-python-0.3.5 ? Is there a more up to date API I should install for using with my current versions of Python and MySQL? Any help appreciated! Keith -- http://mail.python.org/mailman/listinfo/python-list
Re: Installing MySQL-Python
but the gcc was installed on this system tho: gcc -v Reading specs from /export/home/local/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.2/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls Thread model: posix gcc version 3.4.2 -- http://mail.python.org/mailman/listinfo/python-list
Re: Installing MySQL-Python
Cathy Hui wrote: > Do u know why do i get the following message error: command 'gcc' failed with exit status 1 yes: error: command 'gcc' failed with exit status 1 means: there's no compiler gcc ... kai when trying to build the > MySql-Python (1.2.0) on my Solaris 8 system? (with mysql 4.0.21 and > python 2.4). thanks! > > error mesg: > ld: fatal: relocations remain against allocatable but non-writable > sections > collect2: ld returned 1 exit status > error: command 'gcc' failed with exit status 1 > > > see below for the log > = > > > # python setup.py build > > unknown> 0x5c8 > /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) >0x840 > /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) >0x84c > /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) >0x9b4 > /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) >0x9bc > /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) >0x9f8 > /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) >0xa04 > /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) >0xa98 > /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) >0xaac > /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) >0xad0 > /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) >0xae0 > /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) >0xb0c > /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) > . > . > . > > ld: fatal: relocations remain against allocatable but non-writable > sections > collect2: ld returned 1 exit status > error: command 'gcc' failed with exit status 1 > -- http://mail.python.org/mailman/listinfo/python-list
Installing MySQL-Python
Do u know why do i get the following message when trying to build the MySql-Python (1.2.0) on my Solaris 8 system? (with mysql 4.0.21 and python 2.4). thanks! error mesg: ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 see below for the log = # python setup.py build unknown> 0x5c8 /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0x840 /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0x84c /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0x9b4 /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0x9bc /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0x9f8 /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0xa04 /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0xa98 /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0xaac /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0xad0 /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0xae0 /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0xb0c /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) . . . ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 -- http://mail.python.org/mailman/listinfo/python-list