From: Luanne C. <lua...@gm...> - 2005-01-19 05:06:55
|
It worked !!! Very stupid of me...thanks for all your help. -Luanne On Mon, 17 Jan 2005 14:06:38 -0800 (PST), Ruben Marquez <rmc...@ya...> wrote: > Luanne, the line: > > from PythonCard.components import textfield, > statictext, button > > should be in your acual aplication file, not on the > setup.py. I believe there is a minimal sample that > shows this in the samples directory. > > -Ruben > > --- Luanne Coutinho <lua...@gm...> wrote: > > > I do have the button imported- this is my setup.py > > > > #!/usr/bin/python > > > > """ > > __version__ = "$Revision: 1.10 $" > > __date__ = "$Date: 2004/04/24 22:13:31 $" > > """ > > > > from distutils.core import setup > > from PythonCard.components import > > textfield,statictext,button > > import py2exe > > > > setup(name="AutoPhoto", > > console=["AutoPhoto.py"], > > data_files=[(".",["AutoPhoto.rsrc.py"])] > > ) > > > > > > Thanks, > > Luanne > > > > > > On Wed, 5 Jan 2005 15:10:21 +0000, XXXXXXXXXXX > > XXXXXXXXXXXXXXXXXXXXXXXXXX wrote: > > > On Mon, 3 Jan 2005 11:36:01 +0530, Luanne Coutinho > > wrote: > > > > > > >However, the dist directory does get created and > > I can see the exe. > > > >When I try to run the exe, this is the output I > > get: > > > > > > > >Traceback (most recent call last): > > > > File "AutoPhoto.py", line 181, in ? > > > > File "PythonCard\model.pyc", line 337, in > > __init__ > > > > File "PythonCard\resource.pyc", line 48, in > > getResource > > > > File "PythonCard\resource.pyc", line 86, in > > __init__ > > > > File "PythonCard\resource.pyc", line 91, in > > __init__ > > > > File "PythonCard\resource.pyc", line 91, in > > __init__ > > > > File "PythonCard\resource.pyc", line 96, in > > __init__ > > > > File "PythonCard\resource.pyc", line 139, in > > enforceSpec > > > > File "PythonCard\resource.pyc", line 30, in > > loadComponentModule > > > >ImportError: cannot import module 'button > > > > > > > >What am I doing wrong? > > > > > > It looks like you're missing "button" from the > > list of imported > > > PythonCard components: > > > > > > from PythonCard.Components import button > > > > > > I forgot to include the staticline component a > > couple of days ago when > > > using the McMillan Installer and got a virtually > > identical traceback when > > > running the app. > > > > > > Neil > > > > > > > > > ------------------------------------------------------- > > > The SF.Net email is sponsored by: Beat the > > post-holiday blues > > > Get a FREE limited edition SourceForge.net t-shirt > > from ThinkGeek. > > > It's fun and FREE -- well, > > almost....http://www.thinkgeek.com/sfshirt > > > _______________________________________________ > > > Pythoncard-users mailing list > > > Pyt...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > > > > > > > > -- > > http://ladyluanne.blogspot.com > > > > > > > ------------------------------------------------------- > > The SF.Net email is sponsored by: Beat the > > post-holiday blues > > Get a FREE limited edition SourceForge.net t-shirt > > from ThinkGeek. > > It's fun and FREE -- well, > > almost....http://www.thinkgeek.com/sfshirt > > _______________________________________________ > > Pythoncard-users mailing list > > Pyt...@li... > > > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > > > > __________________________________ > Do you Yahoo!? > Meet the all-new My Yahoo! - Try it today! > http://my.yahoo.com > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > -- http://ladyluanne.blogspot.com |