473,326 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Install MySQLdb on Mac OS X (10.3)

TK
Hi,

I can't install MySQLdb on Mac OS X (Ver. 10.3) properly. Here's my
environment:

1. MySQL-python-1.0.0

2. Python 2.3

3. mysql -V

/usr/local/mysql-standard-4.1.9-apple-darwin7.7.0-powerpc/bin/mysql Ver
14.7 Distrib 4.1.9, for apple-darwin7.7.0 (po
werpc)
4. platform.platform() -> 'Darwin-7.6.0-Power_Macintosh-powerpc-32bit'
5. python setup.py build
....
running build_ext
building '_mysql' extension
creating build/temp.darwin-7.6.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/include/mysql -I/usr/local/include/mysql
-I/usr/local/mysql/include -I/usr/local/mysql/inclu
de/mysql -I/sw/include/mysql
-I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-c _mysql.c
-o build/temp.darwin-7.6.0-Power_Macintosh-2.3/_mysql.o
_mysql.c: In function `_mysql_ConnectionObject_shutdown':
_mysql.c:1545: error: too few arguments to function `mysql_shutdown'
error: command 'gcc' failed with exit status 1
Can anybody enlighten me?

Thanks for help.

o-o

Thomas
Jul 18 '05 #1
4 2180
TK> I can't install MySQLdb on Mac OS X (Ver. 10.3) properly. Here's my
TK> environment:

TK> 1. MySQL-python-1.0.0

...

Try a more recent version of mysql-python. I think 1.1.7 is the latest.

Skip
Jul 18 '05 #2
TK
Skip Montanaro wrote:
TK> I can't install MySQLdb on Mac OS X (Ver. 10.3) properly. Here's my
TK> environment:

TK> 1. MySQL-python-1.0.0

...

Try a more recent version of mysql-python. I think 1.1.7 is the latest.

Skip

Hi Skip,
Try a more recent version of mysql-python. I think 1.1.7 is the latest.

It now works with MySQL-python-1.2.0

And I have to set:

export
PATH=$PATH:/usr/local/mysql-standard-4.1.9-apple-darwin7.7.0-powerpc/bin

Thanks for the hint.

o-o

Thomas
Jul 18 '05 #3
Skip Montanaro <sk**@pobox.com> wrote:
Try a more recent version of mysql-python. I think 1.1.7 is the latest.


1.2.0 -- it appears to be moving extremely rapidly (especially given
how long it was at 0.9.2 -- although "Waiting for MySQL 4.1 to become
stable" would be a good explanation for that).

--
\S -- si***@chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
___ | "Frankly I have no feelings towards penguins one way or the other"
\X/ | -- Arthur C. Clarke
her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
Jul 18 '05 #4
Try a more recent version of mysql-python. I think 1.1.7 is the latest.


TK> It now works with MySQL-python-1.2.0

Andy's a busy guy... ;-)

Skip
Jul 18 '05 #5

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

Similar topics

2
by: Tim Williams | last post by:
I'm trying to write a simple python program to access a MySQL database. I'm having a problem with using MySQLdb to get the results of a SQL command in a cursor. Sometimes the cursor.execute works,...
1
by: Thiago | last post by:
Hi guy, I'm trying install the MySQLdb and i'm receiving the message when i execute the command python setup.py install: error: Python was built with version 6 of Visual Studio, and extensions...
9
by: Lad | last post by:
I use XP windows and Python 2.3. How can I install MYSQL on my computer? I could not find any installer for MYSQL and Python 2.3 Thanks for help Lad.
0
by: daiwei | last post by:
Hi, I installed the MySQLdb on my BSD, but when I import it I got following errors. Any idea how to fix it? import MySQLdb Traceback (most recent call last): File "<stdin>", line 1, in ?...
1
by: Steve | last post by:
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...
2
by: Bruza | last post by:
I installed MySQL 5.0.45 on Ubuntu 7.1 and download MySQL_python from Sourceforge (http://sourceforge.net/project/showfiles.php? group_id=22307). Then I untar the package and executed "python...
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...
4
by: Con | last post by:
Hi, how does properly install the Python MySQL db module for Mac OS X? I was only able to locate the Win32 modules. Thanks in advance, -Conrad
0
by: Tommy Grav | last post by:
I am trying to install mysqldb-1.2.2 on my PPC running 10.5.2 and Activepython 2.5.1.1 when I get this error: running build running build_py copying MySQLdb/release.py...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.