Re: MacOS X Leopard + mod_pyton + mysql problems

2008-02-11 Thread ace
I am getting the following error: MOD_PYTHON ERROR ProcessId: 4196 Interpreter:'ale.local' ServerName: 'ale.local' DocumentRoot: '/Library/WebServer/Documents' URI:'/~ale/newsite/' Location: '/~ale/newsite/' Directory: None Filename:

Re: MacOS X Leopard + mod_pyton + mysql problems

2007-12-27 Thread Graham Dumpleton
Known issue. Documented at least for older versions of mod_wsgi at: http://code.google.com/p/modwsgi/wiki/InstallationOnMacOSX Version 2.0 of mod_wsgi includes work around for MacOS X not strictly doing the right thing. :-) Graham On Dec 27, 9:35 pm, Oliver Beattie <[EMAIL PROTECTED]>

Re: MacOS X Leopard + mod_pyton + mysql problems

2007-12-27 Thread Oliver Beattie
Right, sorted this out. When running setup.py build, it will spit out the compilation command it's executing at the bottom of its output. You will notice that it doesn't include an x86_64 architecture, so you need to add one. Edit the command so it looks like: sudo gcc -Wl,-F. -bundle -undefined

Re: MacOS X Leopard + mod_pyton + mysql problems

2007-12-27 Thread Oliver Beattie
I have compiled it for 64-bit: http://farm3.static.flickr.com/2013/2140077639_7abe03b5fb_o.gif Yet I still get this error, am I missing something? I would be reluctant to make force Apache into 32-bit, but if that's the only option... On Dec 27, 12:18 am, Graham Dumpleton <[EMAIL PROTECTED]>

Re: MacOS X Leopard + mod_pyton + mysql problems

2007-12-26 Thread Graham Dumpleton
On Dec 27, 9:49 am, Oliver Beattie <[EMAIL PROTECTED]> wrote: > Did anyone ever get this working, I am tearing my hair out here trying > to figure it out; I finally get it to build and now I'm getting:- > > ImproperlyConfigured: Error loading MySQLdb module: dlopen(/Library/ >

Re: MacOS X Leopard + mod_pyton + mysql problems

2007-12-26 Thread Oliver Beattie
Did anyone ever get this working, I am tearing my hair out here trying to figure it out; I finally get it to build and now I'm getting:- ImproperlyConfigured: Error loading MySQLdb module: dlopen(/Library/ WebServer/.python-eggs/MySQL_python-1.2.2-py2.5-macosx-10.5-i386.egg- tmp/_mysql.so, 2):

Re: MacOS X Leopard + mod_pyton + mysql problems

2007-11-05 Thread SneWs
It's actually really simple to build the client lib's you need to get the MySQL support working. Download the Community Server Source and you can build it from that. I hade the same problem but for QT and MySQL support, take a look at, http://demo.grenangen.se/drupal There you will find a

Re: MacOS X Leopard + mod_pyton + mysql problems

2007-10-30 Thread [EMAIL PROTECTED]
Argh. The "Universal" version of MySQL includes only: ppc, ppc64, i386 [Macintosh:src/mysql-5.0.45-osx10.4-universal/lib] benha% file libmysqlclient_r.a libmysqlclient_r.a: Mach-O universal binary with 3 architectures libmysqlclient_r.a (for architecture i386): current ar archive

Re: MacOS X Leopard + mod_pyton + mysql problems

2007-10-30 Thread [EMAIL PROTECTED]
Stuck in the same place. I'm guessing you d/l'd and installed the MySQL OSX 10.4 x86 installer package from MySQL. I did. I think it's only i386. They also have a Universal Binary OSX 10.4 file up there, but only in Tar format. I'm d/l'ing that now to try. Hopefully it's got the x86_64 image

Re: MacOS X Leopard + mod_pyton + mysql problems

2007-10-30 Thread Graham Dumpleton
On Oct 31, 6:57 am, crudolph <[EMAIL PROTECTED]> wrote: > Yeah - I downloaded fromhttp://sourceforge.net/projects/mysql-python, > unzipped and ran python setup.py build and then install. > > Under Leopard (10.5) apache2 is 4-way, so it is running in 64-bit > mode. I haven't been able to figure

Re: MacOS X Leopard + mod_pyton + mysql problems

2007-10-30 Thread Graham Dumpleton
I am actually surprised you got mod_python working in the first place unless you did some fiddles you haven't mentioned here. We have been sorting out issues with mod_python and mod_wsgi not working on Leopard over on the mod_python list. Short answer is, try editing src/Makefile in mod_python

Re: MacOS X Leopard + mod_pyton + mysql problems

2007-10-30 Thread crudolph
Yeah - I downloaded from http://sourceforge.net/projects/mysql-python, unzipped and ran python setup.py build and then install. Under Leopard (10.5) apache2 is 4-way, so it is running in 64-bit mode. I haven't been able to figure out how to pass the right architecture flags through setup.py cc

Re: MacOS X Leopard + mod_pyton + mysql problems

2007-10-30 Thread Miller Hooks
I had some issues with mysqldb when I was setting it up on my mac, this article helped me a lot. http://dotnet.org.za/ncode/archive/2007/01/31/setting-up-mysql-for-python-mysqldb-on-mac-os-x-2.aspx The comments on it were really the key. Joseph Heck wrote: > Hey Chris, > > How did you install

MacOS X Leopard + mod_pyton + mysql problems

2007-10-30 Thread crudolph
Hi, I was able to get django/python running via mod_python under the apache2 installation under Leopard (MacOS X 10.5). However once I start to add database support to my project - I get the following error. ImproperlyConfigured: Error loading MySQLdb module: dlopen(/tmp/