Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > py2app, pythoncard build problems

Reply
Thread Tools

py2app, pythoncard build problems

 
 
loren.davie@gmail.com
Guest
Posts: n/a
 
      05-02-2006
Hi,

I'm attempting to build a small app that uses pythoncard for a gui
layer. The intention is to use py2app to construct an .app bundle for
the Mac. I'm running OS 10.4 on an Intel MacBook Pro. I'm using the
default installed Python 2.3

The .app bundle appears to build, but when I start up it fails -
checking the console reveals that it can't find the "wx" package, as
its called from some pythoncard code. (The app launches just fine in
non-bundled form when I run it from the command line using pythonw).

Not sure where to go with this. Any help would be greatly appreciated
- thanks.

 
Reply With Quote
 
 
 
 
Serge Orlov
Guest
Posts: n/a
 
      05-02-2006

http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> Hi,
>
> I'm attempting to build a small app that uses pythoncard for a gui
> layer. The intention is to use py2app to construct an .app bundle for
> the Mac. I'm running OS 10.4 on an Intel MacBook Pro. I'm using the
> default installed Python 2.3
>
> The .app bundle appears to build, but when I start up it fails -
> checking the console reveals that it can't find the "wx" package, as
> its called from some pythoncard code. (The app launches just fine in
> non-bundled form when I run it from the command line using pythonw).
>
> Not sure where to go with this. Any help would be greatly appreciated


Most likely py2app analyzes code of pythoncard and cannot find
dependance on wx. As a quick workaround you can just insert "import wx"
in the beginning of your program where you import pythoncard. For a
more flexible solution you will need to read py2app docs how to force
bunding of a package from setup.py

 
Reply With Quote
 
 
 
 
James Stroud
Guest
Posts: n/a
 
      05-03-2006
(E-Mail Removed) wrote:
> Hi,
>
> I'm attempting to build a small app that uses pythoncard for a gui
> layer. The intention is to use py2app to construct an .app bundle for
> the Mac. I'm running OS 10.4 on an Intel MacBook Pro. I'm using the
> default installed Python 2.3
>
> The .app bundle appears to build, but when I start up it fails -
> checking the console reveals that it can't find the "wx" package, as
> its called from some pythoncard code. (The app launches just fine in
> non-bundled form when I run it from the command line using pythonw).
>
> Not sure where to go with this. Any help would be greatly appreciated
> - thanks.
>


Did you explicitly specify packages to bundle via the packages keyword?
E.g.:

setup(
app=['%s.py' % appname],
name=appname,
options={'py2app' : {'strip': True,
'packages': ['helptext',
'tkHyperlinkManager',
'rst2tkinter',
'Crypto',
'SecureRandom',
'ResettableTimer'],
'iconfile': '%s.icns' % appname,
'argv_emulation' : True}}

Jaems

--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095

http://www.jamesstroud.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SWsoft Acronis Disk Director Suite 9.0 Build 508, Acronis OS Selector 8.0 Build 917, Acronis Partition Expert 2003 Build 292, Acronis Power Utilities 2004 Build 502, F-SECURE.ANTI vIRUS.PROXY v1.10.17.WINALL, F-SECURE.ANTI vIRUS v5.50.10260 for CITRI vvcd Computer Support 0 09-25-2004 01:38 AM
ANN: PythonCard 0.7.2 Kevin Altis Python 0 09-17-2003 04:03 AM
GUI versions using PythonCard are available Ron Stephens Python 0 09-13-2003 01:36 AM
PythonCard newbie question Karl Lopes Python 1 07-13-2003 04:59 PM
Form using HTML on PythonCard Luiz Siqueira Neto Python 3 07-04-2003 10:25 PM



Advertisments