py2app and Bittornado

Robert Kern rkern at
Wed Aug 31 01:17:00 CEST 2005

bsharitt at wrote:
> I'm trying to get Bittornado to run on Mac OS X (10.4 with Python
> 2.3.5) but I've only ever dealt with Python at lower lever scripting
> stuff, never wxPython or another GUI stuff. py2app is supposed to be
> the tool to create Mac friendly Python applications(like py2exe on
> Windows), but the documentation for py2app doesn't seem to be much
> help. The script that comes with BitTornado doesn't run when I
> type python py2app and produces the following error:
> usage: [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
>    or: --help [cmd1 cmd2 ...]
>    or: --help-commands
>    or: cmd --help
> error: invalid command 'py2app' (no module named
> 'distutils.command.py2app')

You need to write a (actually, probably you should name it
something else like "") that specifies the appropriate
information. From the py2app documentation, the simplest example would be

    from distutils.core import setup
    import py2app


Then you can do

    python py2app

If you need more help, I suggest asking on the PythonMac-SIG mailing list.

Robert Kern
rkern at

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter

More information about the Python-list mailing list