py2app and Bittornado



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 setup.py script that comes with BitTornado doesn't run when I
type python setup.py py2app and produces the following error:

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: invalid command 'py2app' (no module named
'distutils.command.py2app')

When I drag the script to PackageInstaller, it creates a Mac installer
package, but all that does is mostly copy the the sane stuff stuff to
/usr/local/bin and when I try to run btdownloadgui.py all I get is:

Traceback (most recent call last):
File "btdownloadgui.py", line 29, in ?
from BitTornado.ConfigReader import configReader
File "/Library/Python/2.3/site-packages/BitTornado/ConfigReader.py",
line 40, in ?
_CHECKINGCOLOR =
ColorToHex(wxSystemSettings_GetColour(wxSYS_COLOUR_3DSHADOW))
File
"/BinaryCache/wxWidgets/wxWidgets-2.root~174/System/Library/Frameworks/Python.framework/Versions/2.3/Extras/lib/python/wx-2.5.3-mac-unicode/wx/_misc.py",
line 145, in SystemSettings_GetColour
wx._core.PyNoAppError: The wx.App object must be created first!

Any help would be appreciated. Either reply to this or email me.

.



Relevant Pages

  • Re: Removing .DS_Store files from mac folders
    ... I should have included the traceback in my message. ... so it seems that python can see the file to recognize it as the current_file while walking the heirarchy but it cannot see the hidden file to remove it with os.remove. ... I have been using this method for some time when I put together code in a tarball since with mac the .DS_Store pollutes your files. ... Then run your script a few times and see if the modified times are ...
    (comp.lang.python)
  • Re: py2app and Bittornado
    ... > I'm trying to get Bittornado to run on Mac OS X (10.4 with Python ... but the documentation for py2app doesn't seem to be much ... The setup.py script that comes with BitTornado doesn't run when I ...
    (comp.lang.python)
  • Re: OS X py2app confusion
    ... Python as a Mac OS X install ... If you have several ones are you sure that the one you are using is the same as the one used to isntall py2app? ...
    (comp.lang.python)
  • Re: perl to python
    ... sed and perl can let you do all that quick command line stuff. ... into a full blown script. ... scripts, call it from the python interpreter, whatever I need. ... If I stick to the traditional unix approach, ...
    (comp.lang.python)
  • Re: Learning Tkinter
    ... and how the command option is used to call the function callback. ... gui programming to see if the python programs I have written can be made ... search their computer for this file, execute the python code and then ... This is the meaning of the test on __name__: this magical variable is set to the string '__main__' if and only if the current script is the top-most one, i.e the one you ran python on. ...
    (comp.lang.python)