Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Install Python MySQL db module?

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


conradwt at gmail

May 13, 2008, 5:29 PM

Post #1 of 5 (282 views)
Permalink
Install Python MySQL db module?

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


--
http://mail.python.org/mailman/listinfo/python-list


alex.gaynor at gmail

May 13, 2008, 5:41 PM

Post #2 of 5 (271 views)
Permalink
Re: Install Python MySQL db module? [In reply to]

On May 13, 7:29 pm, Con <conra...@gmail.com> wrote:
> 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.
--
http://mail.python.org/mailman/listinfo/python-list


rpdooling at gmail

May 13, 2008, 5:58 PM

Post #3 of 5 (281 views)
Permalink
Re: Install Python MySQL db module? [In reply to]

On May 13, 7:29 pm, Con <conra...@gmail.com> wrote:
> 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/mysqldb-on-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
--
http://mail.python.org/mailman/listinfo/python-list


Graham.Dumpleton at gmail

May 13, 2008, 6:18 PM

Post #4 of 5 (267 views)
Permalink
Re: Install Python MySQL db module? [In reply to]

On May 14, 10:58 am, Rick Dooling <rpdool...@gmail.com> wrote:
> On May 13, 7:29 pm, Con <conra...@gmail.com> wrote:
>
> > 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/mysqldb-on-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/wiki/InstallationOnMacOSX

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
--
http://mail.python.org/mailman/listinfo/python-list


martin.laloux at gmail

May 15, 2008, 12:06 AM

Post #5 of 5 (267 views)
Permalink
Re: Install Python MySQL db module? [In reply to]

search, search, it is a recurrent question....
for example

http://groups.google.be/group/comp.lang.python/browse_thread/thread/7bef767753fe40f1/a3fd7c2dd7a50bef?hl=fr&lnk=gst&q=mysqldb+mac#a3fd7c2dd7a50bef
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.