473,382 Members | 1,445 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,382 software developers and data experts.

Install Python MySQL db module?

Con
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
Jun 27 '08 #1
4 2435
On May 13, 7:29*pm, Con <conra...@gmail.comwrote:
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
I think the easiest way to would be to use macports.
Jun 27 '08 #2
On May 13, 7:29 pm, Con <conra...@gmail.comwrote:
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
I tried this a couple of weeks ago using macports and had problems.

See, for example:

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

I read about several people who went in and edited the source files to
work out the bugs on Leopard, but instead I just changed my Python
code to use SQLite for the moment until someone fixes MySQLdb. There's
a nice Perl script that will convert your MySQL db to an SQLite db if
you're interested.

RD
Jun 27 '08 #3
On May 14, 10:58*am, Rick Dooling <rpdool...@gmail.comwrote:
On May 13, 7:29 pm, Con <conra...@gmail.comwrote:
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

I tried this a couple of weeks ago using macports and had problems.

See, for example:

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

I read about several people who went in and edited the source files to
work out the bugs on Leopard, but instead I just changed my Python
code to use SQLite for the moment until someone fixes MySQLdb. There's
a nice Perl script that will convert your MySQL db to an SQLite db if
you're interested.

RD
Because Python executable on Leopard has been stripped of 64 bit
architectures and thus runs as a 32 bit process, the 64 bit problems
only come up when trying to use the MySQLdb module under mod_wsgi or
mod_python with Apache (presuming you got mod_python to build as 64
bit).

If you are really stuck and can't get MySQLdb module to build as 64
bit capable, then you can force Apache to run as a 32 bit process and
avoid the problems.

For more details, see section 'Thinning The Apache Executable' of:

http://code.google.com/p/modwsgi/wik...lationOnMacOSX

Also see contributed comments to the page, which explains a way of
making Apache run as 32 bit by changing plist files rather than
thinning the Apache executable.

Graham
Jun 27 '08 #4
search, search, it is a recurrent question....
for example

http://groups.google.be/group/comp.l...fd7c2dd7a50bef
Jun 27 '08 #5

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

Similar topics

0
by: Holger Joukl | last post by:
Hi, what version of python are you using? I got the same error when invoking a customized, 2-year-old version of distutils with python 2.3.3 (instead of 1.5.2, as before). Reason is code in...
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.
2
by: Cathy Hui | last post by:
I am trying to install MySQL-Python 0.9.1 on my Solaris 8 system. The system has Python 2.3.3 and Mysql 4.0.21 installed. This is where I downloaded the distribution of the Mysql-python...
0
by: Randell D. | last post by:
Folks, I have installed MySQL v4 (client, server and development rpm's). I've tried and failed to use the recommended mysqladmin to set a root password after the installation (I have another post...
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...
3
by: Nick | last post by:
hi, all I have a red hat 9 and looks like it had mysql 3.2.54 installed before, but, actually not, i can not find the install folder and I can not uninstall it. So I am trying to install/upgrade...
0
by: ciccio | last post by:
Dear python users, I have an account on a Linux Cluster. I installed python version 2.3.5 on my account. I need to install the module MySQL-python to interact with a MySQL server already...
0
by: scum | last post by:
How do you install MySQL-python on a PPC OS X 10.4 machine with MySQL 4.1? And I know about the precompiled binary at macpython.org... I'm just sick of getting this warning.... Python 2.5...
13
by: Steven Bethard | last post by:
Jean-Paul Calderone <exarkun@divmod.comwrote: Interesting. Could you give a few illustrations of this? (I didn't run into the same problem at all, so I'm curious.) Steve
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.