472,960 Members | 1,880 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,960 software developers and data experts.

MySQL-python Error

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
1 2965
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Girish Agarwal | last post by:
--0-474210375-1058976151=:31789 Content-Type: text/plain; charset=us-ascii Content-Id: Content-Disposition: inline Note: forwarded message attached. __________________________________
0
by: Miguel Perez | last post by:
Hi Guys: Does anyone know how come I'm getting a lot of mysql processes when I start mysql server for the first time. When I type top it showed the following: 5:33pm up 15 min, 4 users, ...
0
by: Yun Guan | last post by:
Hello mysql gurus, I am trying to run perl on mysql database on Red Hat box. I want to install DBI and DBD:mysql using CPAN: perl -MCPAN -e shell cpan>install DBI The above succeeded, but...
2
by: Saqib Ali | last post by:
I installed mySQL and have it running.... but I think I made a mistake somewhere along the line...... I believe I did follow the instructions that were provided with the distribution at:...
1
by: Maxim. V. | last post by:
Hello to everone, As mentioned in this *guide(1), i've compiled mysql on my fedora Core 2 system, with the following spec's : *(1) http://hulan.info/blog/index.php?itemid=576 ...
1
by: Alex Hunsley | last post by:
I am trying to install the DBD::mysql perl module. However, it claims I need mysql.h: cpan> install DBD::mysql CPAN: Storable loaded ok Going to read /home/alex/.cpan/Metadata Database was...
0
by: ./Rob & | last post by:
Hi gang: I'm experiencing a problem with MySQL -- I updated MySQL from version 4.1.0 to 4.1.10 and now when I login as root it doesn't show all the databases I should have access to, nor it...
2
by: trihanhcie | last post by:
I m currently working on a Unix server with a fedora 3 as an os My current version of mysql is 3.23.58. I'd like to upgrade the version to 5.0.18. After downloading from MYSQL.COM the package on...
6
Atli
by: Atli | last post by:
This is an easy to digest 12 step guide on basics of using MySQL. It's a great refresher for those who need it and it work's great for first time MySQL users. Anyone should be able to get...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.