By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,915 Members | 1,345 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,915 IT Pros & Developers. It's quick & easy.

MySQL-python Error

P: n/a
I've been trying to get MySQL-python to install on Leopard for the
past couple of days, and I keep running into relatively the same
error. I'm hoping that someone on this list will be able to help me
out in solving the issue. I'd like to get this solved so I can
continue developing with Django using MySQL since that's what my web
server uses as well. I'd hate to have to develop using a different
database engine on my local machine.

Here's what happens when I try to do an easy_install:

W8743145X91:~ stevea$ sudo easy_install MySQL-python
Searching for MySQL-python
Reading http://pypi.python.org/simple/MySQL-python/
Reading http://sourceforge.net/projects/mysql-python
Reading http://sourceforge.net/projects/mysql-python/
Best match: MySQL-python 1.2.2
Downloading http://osdn.dl.sourceforge.net/sourc...-1.2.2..tar.gz
Processing MySQL-python-1.2.2.tar.gz
Running MySQL-python-1.2.2/setup.py -q bdist_egg --dist-dir /tmp/
easy_install-DYH0yq/MySQL-python-1.2.2/egg-dist-tmp-zpJkox
In file included from _mysql.c:35:
/usr/include/mysql/my_config.h:1030:2: warning: #warning defining
SIZEOF_CHARP = 4
/usr/include/mysql/my_config.h:1044:2: warning: #warning defining
SIZEOF_LONG = 4
/usr/include/mysql/my_config.h:1151:1: warning: "WORDS_BIGENDIAN"
redefined
In file included from /System/Library/Frameworks/Python.framework/
Versions/2.5/include/python2.5/Python.h:8,
from pymemcompat.h:10,
from _mysql.c:29:
/System/Library/Frameworks/Python.framework/Versions/2.5/include/
python2.5/pyconfig.h:928:1: warning: this is the location of the
previous definition
In file included from /usr/include/mysql/mysql.h:43,
from _mysql.c:40:
/usr/include/sys/types.h:92: error: duplicate ‘unsigned’
/usr/include/sys/types.h:92: error: two or more data types in
declaration specifiers
In file included from _mysql.c:35:
/usr/include/mysql/my_config.h:1030:2: warning: #warning defining
SIZEOF_CHARP = 4
/usr/include/mysql/my_config.h:1044:2: warning: #warning defining
SIZEOF_LONG = 4
In file included from /usr/include/mysql/mysql.h:43,
from _mysql.c:40:
/usr/include/sys/types.h:92: error: duplicate ‘unsigned’
/usr/include/sys/types.h:92: error: two or more data types in
declaration specifiers
lipo: can't open input file: /var/tmp//ccg4YkGM.out (No such file or
directory)
error: Setup script exited with error: command 'gcc' failed with exit
status 1

Dec 23 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hopefully you've found it by now and didn't have a frustrating
christmas :).

Get the source from sourceforge and then follow the instructions here.

http://www.davidcramer.net/code/57/m...n-leopard.html

Worked perfectly for me on OSX 10.5, python 2.5. Was frustrating to
find. Good luck!

On Dec 23, 3:09 pm, Steve Ametjan <st...@hittingthebottle.comwrote:
I've been trying to get MySQL-python to install on Leopard for the
past couple of days, and I keep running into relatively the same
error. I'm hoping that someone on this list will be able to help me
out in solving the issue. I'd like to get this solved so I can
continue developing with Django using MySQL since that's what my web
server uses as well. I'd hate to have to develop using a different
database engine on my local machine.

Here's what happens when I try to do an easy_install:

W8743145X91:~ stevea$ sudo easy_install MySQL-python
Searching for MySQL-python
Readinghttp://pypi.python.org/simple/MySQL-python/
Readinghttp://sourceforge.net/projects/mysql-python
Readinghttp://sourceforge.net/projects/mysql-python/
Best match: MySQL-python 1.2.2
Downloadinghttp://osdn.dl.sourceforge.net/sourceforge/mysql-python/MySQL-python-...
Processing MySQL-python-1.2.2.tar.gz
Running MySQL-python-1.2.2/setup.py -q bdist_egg --dist-dir /tmp/
easy_install-DYH0yq/MySQL-python-1.2.2/egg-dist-tmp-zpJkox
In file included from _mysql.c:35:
/usr/include/mysql/my_config.h:1030:2: warning: #warning defining
SIZEOF_CHARP = 4
/usr/include/mysql/my_config.h:1044:2: warning: #warning defining
SIZEOF_LONG = 4
/usr/include/mysql/my_config.h:1151:1: warning: "WORDS_BIGENDIAN"
redefined
In file included from /System/Library/Frameworks/Python.framework/
Versions/2.5/include/python2.5/Python.h:8,
from pymemcompat.h:10,
from _mysql.c:29:
/System/Library/Frameworks/Python.framework/Versions/2.5/include/
python2.5/pyconfig.h:928:1: warning: this is the location of the
previous definition
In file included from /usr/include/mysql/mysql.h:43,
from _mysql.c:40:
/usr/include/sys/types.h:92: error: duplicate 'unsigned'
/usr/include/sys/types.h:92: error: two or more data types in
declaration specifiers
In file included from _mysql.c:35:
/usr/include/mysql/my_config.h:1030:2: warning: #warning defining
SIZEOF_CHARP = 4
/usr/include/mysql/my_config.h:1044:2: warning: #warning defining
SIZEOF_LONG = 4
In file included from /usr/include/mysql/mysql.h:43,
from _mysql.c:40:
/usr/include/sys/types.h:92: error: duplicate 'unsigned'
/usr/include/sys/types.h:92: error: two or more data types in
declaration specifiers
lipo: can't open input file: /var/tmp//ccg4YkGM.out (No such file or
directory)
error: Setup script exited with error: command 'gcc' failed with exit
status 1
Dec 30 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.