473,738 Members | 11,192 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:103 0:2: warning: #warning defining
SIZEOF_CHARP = 4
/usr/include/mysql/my_config.h:104 4:2: warning: #warning defining
SIZEOF_LONG = 4
/usr/include/mysql/my_config.h:115 1:1: warning: "WORDS_BIGENDIA N"
redefined
In file included from /System/Library/Frameworks/Python.framewor k/
Versions/2.5/include/python2.5/Python.h:8,
from pymemcompat.h:1 0,
from _mysql.c:29:
/System/Library/Frameworks/Python.framewor k/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:103 0:2: warning: #warning defining
SIZEOF_CHARP = 4
/usr/include/mysql/my_config.h:104 4: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 3013
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...@hittingt hebottle.comwro te:
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.sourcef orge.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:103 0:2: warning: #warning defining
SIZEOF_CHARP = 4
/usr/include/mysql/my_config.h:104 4:2: warning: #warning defining
SIZEOF_LONG = 4
/usr/include/mysql/my_config.h:115 1:1: warning: "WORDS_BIGENDIA N"
redefined
In file included from /System/Library/Frameworks/Python.framewor k/
Versions/2.5/include/python2.5/Python.h:8,
from pymemcompat.h:1 0,
from _mysql.c:29:
/System/Library/Frameworks/Python.framewor k/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:103 0:2: warning: #warning defining
SIZEOF_CHARP = 4
/usr/include/mysql/my_config.h:104 4: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
2641
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
1772
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, load average: 0.16, 0.19, 0.10 80 processes: 79 sleeping, 1 running, 0 zombie, 0 stopped CPU0 states: 0.1% user, 0.2% system, 0.0% nice, 99.2% idle
0
1471
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 cpan>install DBD::mysql
2
2364
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: http://dev.mysql.com/downloads/ The database is up. It seems that a test database instance has been created (named "test"). I can see it. However, the other database instance that should have been created, named "mysql" doesn't show up when I do "show...
1
2389
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 --------------- bash START -------------- $ uname -a Linux localhost.localdomain 2.6.8-1.521 #1 Mon Aug 16 09:01:18 EDT
1
3824
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 generated on Mon, 29 Nov 2004 16:01:05 GMT Running install for module DBD::mysql Running make for R/RU/RUDY/DBD-mysql-2.9004.tar.gz CPAN: Digest::MD5 loaded ok
0
1884
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 doesn't recognize me being logged in as root (via CURRENT_USER().) Here it is, line-by-line. Inline comments are denoted by '//'
2
2904
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 the site, I made : rpm -i MySQL-server-5.0.18-0.i386.rpm then i have errors that relate to many conflicts. I cannot figure out why -and- cannot upgrade. Please Help !
6
38515
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 through this without much trouble. Programming knowledge is not required. Index What is SQL? Why MySQL? Installing MySQL. Using the MySQL command line interface
0
8969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9335
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9263
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8210
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6751
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.