Re: [Pythonmac-SIG] MySQLdb on OS X 10.6

2010-10-26 Thread Ned Deily
In article <30054281.p...@talk.nabble.com>,
 brinsknaps  wrote:
> I know it's been a long time since you posted this message, but I've been
> pulling out my hair running into the same issue. I've tried installing
> 32-bit and 64-bit versions of mysql to test different compatibilities with
> python 2.6.6, but have had no luck. By any chance did you figure out a
> solution to this problem?

The key to successfully installing MySQLdb on 10.6 is to ensure that the 
Python version, MySQLdb, and the MySQL client libraries are all built 
with a common architecture (i386 or x86_64) and ABI (deployment target).  
Unfortunately, that's easier said than done if you try to do it yourself 
from source or with installers from various sources.  It can be done but 
my advice is to install everything from MacPorts 
(http://www.macports.org/).  If you haven't already, download and run 
the base MacPorts installer.   Then you can build and install everything 
you need with:

$ sudo /opt/local/bin/port selfupdate
$ sudo /opt/local/bin/port install py26-mysql

py26-mysql is the MacPorts port name for MySqLdb and installing it will 
automatically also build all necessary dependencies like Python 2.6 and 
the MySQL client libraries and they will be built compatibly.  To prefer 
the MacPorts python2.6, add its framework bin directory to the front of 
your shell search PATH, so something like;

$ export 
PATH=/opt/local/Library/Frameworks/Python.framework/Versions/Current/bin:
/opt/local/bin:$PATH

You'll find more suggestions and details by searching on StackOverflow.

-- 
 Ned Deily,
 n...@acm.org

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] pyobjc with appscript

2010-10-26 Thread has
Adam Morris wrote:

> I have a python script that gives Keynote some added features useful to 
> teachers. [...]
>
> I'm looking at giving it a GUI. [...] I'd really rather use PyObjC but would 
> need a helping hand getting started on making a deployable Snow Leopard-only 
> app, and getting it so that appscript is included.

Have you looked at py2app? That will identify and bundle all your
dependencies for you.

http://pypi.python.org/pypi/py2app/

HTH

has

-- 
Learn AppleScript, 3rd edition, Sanderson & Rosenthal:
http://apress.com/book/view/9781430223610
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG