Hello,
I was trying to install MySQLDB with MySQL-python-0.9.2.tar.gz file.
My Python ver is 2.1 and MySql ver is 4.1.9.
I am installing it on Sun OS.
I was trying to run python setup.py build as given in the Readme file. But I get the following error:
running build
running build_py
not copying CompatMysqldb.py (output up-to-date)
not copying _mysql_exceptions.py (output up-to-date)
not copying MySQLdb/init.py (output up-to-date)
not copying MySQLdb/converters.py (output up-to-date)
not copying MySQLdb/connections.py (output up-to-date)
not copying MySQLdb/cursors.py (output up-to-date)
not copying MySQLdb/sets.py (output up-to-date)
not copying MySQLdb/times.py (output up-to-date)
not copying MySQLdb/constants/init.py (output up-to-date)
not copying MySQLdb/constants/CR.py (output up-to-date)
not copying MySQLdb/constants/FIELD_TYPE.py (output up-to-date)
not copying MySQLdb/constants/ER.py (output up-to-date)
not copying MySQLdb/constants/FLAG.py (output up-to-date)
not copying MySQLdb/constants/REFRESH.py (output up-to-date)
not copying MySQLdb/constants/CLIENT.py (output up-to-date)
running build_ext
building '_mysql' extension
gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/mysql -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/local/include/python2.1 -c _mysql.c -o build/temp.solaris-2.8-sun4u-2.1/_mysql.o -fPIC
_mysql.c: In function _mysql_ConnectionObject_info':
_mysql.c:1150: warning: assignment discards qualifiers from pointer target type
_mysql.c: In function_mysql_ConnectionObject_shutdown':
_mysql.c:1356: too few arguments to function mysql_shutdown'
_mysql.c: In function_mysql_ConnectionObject_stat':
_mysql.c:1379: warning: assignment discards qualifiers from pointer target type
error: command 'gcc' failed with exit status 1
Any help on this will be appreciated.
Thanks
Deval
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have that type of configuration :
My SQL 4.0.15, MySQL_python-1.2.0, Python2.3, ZOPE 2.7.6-final.
And as I install in Products ZmySQLDA 2. 0.8, I can run Zope in console...
Any idea ????
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I was trying to install MySQLDB with MySQL-python-0.9.2.tar.gz file.
My Python ver is 2.1 and MySql ver is 4.1.9.
I am installing it on Sun OS.
I was trying to run python setup.py build as given in the Readme file. But I get the following error:
running build
running build_py
not copying CompatMysqldb.py (output up-to-date)
not copying _mysql_exceptions.py (output up-to-date)
not copying MySQLdb/init.py (output up-to-date)
not copying MySQLdb/converters.py (output up-to-date)
not copying MySQLdb/connections.py (output up-to-date)
not copying MySQLdb/cursors.py (output up-to-date)
not copying MySQLdb/sets.py (output up-to-date)
not copying MySQLdb/times.py (output up-to-date)
not copying MySQLdb/constants/init.py (output up-to-date)
not copying MySQLdb/constants/CR.py (output up-to-date)
not copying MySQLdb/constants/FIELD_TYPE.py (output up-to-date)
not copying MySQLdb/constants/ER.py (output up-to-date)
not copying MySQLdb/constants/FLAG.py (output up-to-date)
not copying MySQLdb/constants/REFRESH.py (output up-to-date)
not copying MySQLdb/constants/CLIENT.py (output up-to-date)
running build_ext
building '_mysql' extension
gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/mysql -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/local/include/python2.1 -c _mysql.c -o build/temp.solaris-2.8-sun4u-2.1/_mysql.o -fPIC
_mysql.c: In function
_mysql_ConnectionObject_info': _mysql.c:1150: warning: assignment discards qualifiers from pointer target type _mysql.c: In function
_mysql_ConnectionObject_shutdown':_mysql.c:1356: too few arguments to function
mysql_shutdown' _mysql.c: In function
_mysql_ConnectionObject_stat':_mysql.c:1379: warning: assignment discards qualifiers from pointer target type
error: command 'gcc' failed with exit status 1
Any help on this will be appreciated.
Thanks
Deval
This combination won't work.
MySQL-4.1 requires MySQL-python-1.2.0.
MySQL-python-1.2.0 requires Python-2.2 (2.3 preferred).
I have that type of configuration :
My SQL 4.0.15, MySQL_python-1.2.0, Python2.3, ZOPE 2.7.6-final.
And as I install in Products ZmySQLDA 2. 0.8, I can run Zope in console...
Any idea ????
ZMySQLDA-2.0.8 will not work with MySQL-python-1.2.0. Use ZMySQLDA-2.0.9b3.
MySQL-4.0.15 is a little old (for the 4.0 series), but should not be the issue.
Thank you for the help. It does work now
Sorry !
In my last Message i Forgot the 'not' !
I cannot reload Zope !