Re: [Pythonmac-SIG] Building multiple command-line( ( CLI ) programs with py2app

2006-01-16 Thread Read Roberts
I think I will go for the shell script option. That works very nicely, and I can provide a small Python script that will create a sym-link from the /Applications directory to the top level of my distribution dir tree. Thank you very much for help! Read Roberts Adobe SJ on Weds, home office 415-64

Re: [Pythonmac-SIG] Building multiple command-line( ( CLI ) programs with py2app

2006-01-16 Thread Bob Ippolito
That solves a different problem. Presumably he's using py2app because it collects all of the dependencies (python, dylibs, packages, modules and extensions) for a Python-based application in such a way that it works correctly on a stock machine. Platypus just wraps a CLI tool with a GUI,

Re: [Pythonmac-SIG] Building multiple command-line( ( CLI ) programs with py2app

2006-01-16 Thread Larry Meyn
You might try using Platypus to give an interface to your application. I haven't used it in awhile, but it may be worth a look. --Larry On Jan 16, 2006, at 12:59 PM, Read Roberts wrote: > I've run into a glitch in this approach. Although I can easily bui

Re: [Pythonmac-SIG] Building multiple command-line( ( CLI ) programs with py2app

2006-01-16 Thread Bob Ippolito
py2app is not designed to build command-line tools, and Mac OS X application bundles are not designed to be used as such, so whatever you do is a workaround. What you'll need is a shell script that executes the application with its full path. You could use something like this

Re: [Pythonmac-SIG] Building multiple command-line( ( CLI ) programs with py2app

2006-01-16 Thread Nicholas Riley
On Mon, Jan 16, 2006 at 12:59:41PM -0800, Read Roberts wrote: > I've run into a glitch in this approach. Although I can easily build a > py2app application that takes the action name as the first argument, and > invoke it from the command line with: > FDK.app/Contents/MacOS/FDK, > > I cannot exec

Re: [Pythonmac-SIG] Building multiple command-line( ( CLI ) programs with py2app

2006-01-16 Thread Read Roberts
I've run into a glitch in this approach. Although I can easily build a py2app application that takes the action name as the first argument, and invoke it from the command line with: FDK.app/Contents/MacOS/FDK, I cannot execute a symbolic link to the same file, The following produces an error: Ln

Re: [Pythonmac-SIG] MySQLdb Lib Help

2006-01-16 Thread Chris Porter
> That's not where it should be. It should be in /Library/Python/2.3/ > site-packages -- the thing is that since he's using the system Python > and old packages, he must install TigerPython23Compat before any of > those old packages will work. > > -bob You folks rock!. Thank you so much, I

Re: [Pythonmac-SIG] MySQLdb Lib Help

2006-01-16 Thread Chris Porter
Found the files, possibly in the wrong place. I found this: System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages(alias) Clicking on the alias brings up these files: Extras.pth README .DS_Store(system file, I know) I also found this: Library/Python/2.3/ Opening

Re: [Pythonmac-SIG] MySQLdb Lib Help

2006-01-16 Thread Chris Porter
> Chris, > > My previous comments assumed that you had installed the framework > build of Python, which if I had read your message better I would have > know was wrong. Sorry, no morning coffee yet. It is possible that > the MySQLdb was installed in the wrong location. As Craig said it

Re: [Pythonmac-SIG] MySQLdb Lib Help

2006-01-16 Thread Chris Porter
> Hi - > > > >>> import MySQLdb > > Traceback (most recent call last): > > File "", line 1, in ? > > ImportError: No module named MySQLdb > > What is the output from > > ls > /Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/ > > That's where you should find the M

Re: [Pythonmac-SIG] MySQLdb Lib Help

2006-01-16 Thread Bob Ippolito
That's not where it should be. It should be in /Library/Python/2.3/ site-packages -- the thing is that since he's using the system Python and old packages, he must install TigerPython23Compat before any of those old packages will work. -bob On Jan 16, 2006, at 9:59 AM, Larry Meyn wrote: >

Re: [Pythonmac-SIG] MySQLdb Lib Help

2006-01-16 Thread Larry Meyn
Chris, My previous comments assumed that you had installed the framework build of Python, which if I had read your message better I would have know was wrong. Sorry, no morning coffee yet. It is possible that the MySQLdb was installed in the wrong location. As Craig said it should be in

Re: [Pythonmac-SIG] MySQLdb Lib Help

2006-01-16 Thread Larry Meyn
Chris,You can create or modify the .bash_profile file in your home directory to modify PATH.  An example is shown below.Larry# .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then        . ~/.bashrcfi# User specific environment and startup programsPATH=/usr/local/bin:$PATH;export P

Re: [Pythonmac-SIG] MySQLdb Lib Help

2006-01-16 Thread Larry Meyn
My guess is that your PATH needs to have /usr/local/bin prepended to it to make sure the correct python installation is being used when running from the terminal. --Larry On Jan 16, 2006, at 8:56 AM, Chris Porter wrote: > Hello, complete python newbie here. > > I've got: > > OSX 10.4.3 > Pyt

Re: [Pythonmac-SIG] MySQLdb Lib Help

2006-01-16 Thread Craig Amundsen
Hi - > >>> import MySQLdb > Traceback (most recent call last): > File "", line 1, in ? > ImportError: No module named MySQLdb What is the output from ls /Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/ That's where you should find the MySQLdb directory if it got

[Pythonmac-SIG] MySQLdb Lib Help

2006-01-16 Thread Chris Porter
Hello, complete python newbie here. I've got: OSX 10.4.3 Python 2.3.5 MySQL 4.1.15-standard (of course, all pre-installed, except for MySQL) I don't seem to have the right python module that will allow python to interact with my MySQL databases. I am completely not a programmer, but I can fol

Re: [Pythonmac-SIG] appscript: selecting many songs in iTunes

2006-01-16 Thread has
Niko Matsakis wrote: >I have a program which identifies duplicates in iTunes and attempts to delete >them automatically. It seems to work like a charm, except for one problem: >once I have identified the set of songs to delete, I have to go through them >one-by-one and delete them. So, if

Re: [Pythonmac-SIG] appscript: selecting many songs in iTunes

2006-01-16 Thread Niko Matsakis
> >> To that end, it seems like what I want to do is something like: >> >> allsongs.filter (its.database_ID in songdbids]).delete () >> >> except I don't think that the 'in' operator works, > > See ch.8 of the appscript manual for a list of supported comparison > forms. Not all Pyth

[Pythonmac-SIG] appscript: selecting many songs in iTunes

2006-01-16 Thread Niko Matsakis
I have a program which identifies duplicates in iTunes and attempts to delete them automatically. It seems to work like a charm, except for one problem: once I have identified the set of songs to delete, I have to go through them one-by-one and delete them. So, if I have accumulated the d