473,699 Members | 2,186 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2449
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...@gmai l.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
1662
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 dist.py, using dir() to look up the attributes of a class instance. But dir() nowadays also returns the class methods, __doc__ etc. Changing this in the old distutils/dist.py made it work for me, again (line
9
2016
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
2073
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 package: http://www.ravenbrook.com/project/p4dti/import/2001-10-16/MySQL-python-0.9.1/MySQL-python-0.9.1.tar.gz I have been doing whatever instructed from the README file.
0
3311
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 open on the MySQL newsgroup about this). I'm attempting an alternative solution and using webmin (www.webmin.com) to create/manage access to my databases. Webmin reports "Warning: The Perl module DBD::mysql is not installed on your system, so...
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
3
7003
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 to 4.1, but, still can not get it work. Here is what I did: # rpm -Uvh MySQL-server-standard-4.1.14-0.rhel4.i386.rpm warning: MySQL-server-standard-4.1.14-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
0
1145
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 installed on the cluster. However, I read the README file but running python setup.py build the system fails to build the module and gives me the following error:
0
1072
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 (r25:51918, Sep 19 2006, 08:49:13) on darwin Type "help", "copyright", "credits" or "license" for more information.
13
2155
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
8697
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
9045
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
8930
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
7761
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
6538
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
5878
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
4381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4634
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.