472,993 Members | 2,150 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,993 software developers and data experts.

MySQLdb-python how to install on MacOsX



Darwin steve.local 8.3.0 Darwin Kernel Version 8.3.0: Mon Oct 3
20:04:04 PDT 2005; root:xnu-792.6.22.obj~2/RELEASE_PPC Power Macintosh
powerpc
MacOSX 10.4.3

mysql Ver 14.7 Distrib 4.1.14, for apple-darwin8.2.0 (powerpc) using
readline 4.3

runing the software gives me
steve:~/MySQL-python-1.2.0 steve$ python setup.py build
running build
running build_py
creating build
creating build/lib.darwin-8.3.0-Power_Macintosh-2.3
copying _mysql_exceptions.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3
creating build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/__init__.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/converters.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/connections.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/cursors.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/sets.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/times.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/stringtimes.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/mxdatetimes.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/pytimes.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
creating build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/__init__.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/CR.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/ER.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/FLAG.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.darwin-8.3.0-Power_Macintosh-2.3
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -I/usr/local/mysql/include
-I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-c _mysql.c -o build/temp.darwin-8.3.0-Power_Macintosh-2.3/_mysql.o
-I/usr/local/mysql/include -Os -arch ppc64 -fno-common
In file included from
/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/Python.h:48,
from pymemcompat.h:10,
from _mysql.c:31:
/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/pyport.h:554:2:
error: #error "LONG_BIT definition appears wrong for platform (bad
gcc/glibc config?)."
error: command 'gcc' failed with exit status 1

Has anyone had any experience with this problem?

Nov 29 '05 #1
1 2666
Steve,

I had the same problem, the only thing I found that worked was using
the MySQL-python installer
(http://pythonmac.org/packages/MySQL_...macosx10.3.zip)
found at the site below. It says it is for 10.3 but I have had no
problems using it on 10.4. Hope that helps.

http://pythonmac.org/packages/

Adam

Steve wrote:
Darwin steve.local 8.3.0 Darwin Kernel Version 8.3.0: Mon Oct 3
20:04:04 PDT 2005; root:xnu-792.6.22.obj~2/RELEASE_PPC Power Macintosh
powerpc
MacOSX 10.4.3

mysql Ver 14.7 Distrib 4.1.14, for apple-darwin8.2.0 (powerpc) using
readline 4.3

runing the software gives me
steve:~/MySQL-python-1.2.0 steve$ python setup.py build
running build
running build_py
creating build
creating build/lib.darwin-8.3.0-Power_Macintosh-2.3
copying _mysql_exceptions.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3
creating build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/__init__.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/converters.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/connections.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/cursors.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/sets.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/times.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/stringtimes.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/mxdatetimes.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/pytimes.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb
creating build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/__init__.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/CR.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/ER.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/FLAG.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py ->
build/lib.darwin-8.3.0-Power_Macintosh-2.3/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.darwin-8.3.0-Power_Macintosh-2.3
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -I/usr/local/mysql/include
-I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-c _mysql.c -o build/temp.darwin-8.3.0-Power_Macintosh-2.3/_mysql.o
-I/usr/local/mysql/include -Os -arch ppc64 -fno-common
In file included from
/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/Python.h:48,
from pymemcompat.h:10,
from _mysql.c:31:
/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/pyport.h:554:2:
error: #error "LONG_BIT definition appears wrong for platform (bad
gcc/glibc config?)."
error: command 'gcc' failed with exit status 1

Has anyone had any experience with this problem?


Dec 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Brian Kelley | last post by:
I am trying to use threads and mysqldb to retrieve data from multiple asynchronous queries. My basic strategy is as follows, create two cursors, attach them to the appropriate databases and then...
21
by: John Fabiani | last post by:
Hi, I'm a newbie and I'm attempting to learn howto create a select statement. When I use >>> string1='18 Tadlock Place' >>> cursor.execute("SELECT * FROM mytest where address = %s",string1) All...
3
by: JZ | last post by:
MySQLdb 1.0 cannot connect to MySQL 4.1 server when the user has non-empty password :( _mysql_exceptions.OperationalError: (1251, 'Client does not support authentication protocol requested by...
1
by: Achim Domma (Procoders) | last post by:
Hi, I try to write unicode strings to a MySQL database via MySQLdb. According to the documentation I should pass 'utf-8' as keyword parameter to the connect method. But then I get the following...
0
by: Ed Hotchkiss | last post by:
Ok. I am trying to read a csv file with three strings separated by commas. I am trying to insert them into a MySQL DB online. MySQLdb is installed, no problems. I think that I am having some...
1
by: Grzegorz Smith | last post by:
Hi all. I'm trying get data from text field in MySQl 5.0 with my National characters. Data are stored in utf8 encodings. Here is the script: import MySQLdb, MySQLdb.cursors conn =...
3
by: shearichard | last post by:
Hi - Feeling a bit weird about this but I cannot find the 'begin' method on a connection object of MySQLdb. Can anyone explain why ? I'm using version 1.2.0 which is pretty recent and I've read...
5
by: Nicolay A. Vasiliev | last post by:
Hello there! I got some trouble trying to insert data into the database with MySQLdb module. I have such code: from MySQLdb import * def loc_connect_db():
0
by: Steve Holden | last post by:
Vaibhav.bhawsar wrote: imported The point here is that MySQLdb is a package, not a module. Some packages have their top-level __init__.py import the package's sub-modules or sub-packages to...
1
by: TT | last post by:
I'm trying to using the following code insert a long string into a MySQL table, the data type is of that column is TEXT. When the length of the content is longer than 65K, it get truncated in the...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
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...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
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...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
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...
4
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.