You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(116) |
Sep
(146) |
Oct
(78) |
Nov
(69) |
Dec
(70) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(188) |
Feb
(142) |
Mar
(143) |
Apr
(131) |
May
(97) |
Jun
(221) |
Jul
(127) |
Aug
(89) |
Sep
(83) |
Oct
(66) |
Nov
(47) |
Dec
(70) |
2003 |
Jan
(77) |
Feb
(91) |
Mar
(103) |
Apr
(98) |
May
(134) |
Jun
(47) |
Jul
(74) |
Aug
(71) |
Sep
(48) |
Oct
(23) |
Nov
(37) |
Dec
(13) |
2004 |
Jan
(24) |
Feb
(15) |
Mar
(52) |
Apr
(119) |
May
(49) |
Jun
(41) |
Jul
(34) |
Aug
(91) |
Sep
(169) |
Oct
(38) |
Nov
(32) |
Dec
(47) |
2005 |
Jan
(61) |
Feb
(47) |
Mar
(101) |
Apr
(130) |
May
(51) |
Jun
(65) |
Jul
(71) |
Aug
(96) |
Sep
(28) |
Oct
(20) |
Nov
(39) |
Dec
(62) |
2006 |
Jan
(13) |
Feb
(19) |
Mar
(18) |
Apr
(34) |
May
(39) |
Jun
(50) |
Jul
(63) |
Aug
(18) |
Sep
(37) |
Oct
(14) |
Nov
(56) |
Dec
(32) |
2007 |
Jan
(30) |
Feb
(13) |
Mar
(25) |
Apr
(3) |
May
(15) |
Jun
(42) |
Jul
(5) |
Aug
(17) |
Sep
(6) |
Oct
(25) |
Nov
(49) |
Dec
(10) |
2008 |
Jan
(12) |
Feb
|
Mar
(17) |
Apr
(18) |
May
(12) |
Jun
(2) |
Jul
(2) |
Aug
(6) |
Sep
(4) |
Oct
(15) |
Nov
(45) |
Dec
(9) |
2009 |
Jan
(1) |
Feb
(3) |
Mar
(18) |
Apr
(8) |
May
(3) |
Jun
|
Jul
(13) |
Aug
(2) |
Sep
(1) |
Oct
(9) |
Nov
(13) |
Dec
|
2010 |
Jan
(2) |
Feb
(3) |
Mar
(9) |
Apr
(10) |
May
|
Jun
(1) |
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
(1) |
Dec
(4) |
2011 |
Jan
|
Feb
|
Mar
(10) |
Apr
(44) |
May
(9) |
Jun
(22) |
Jul
(2) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(2) |
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(1) |
Jun
|
Jul
(3) |
Aug
(8) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Tim B. <tb...@bi...> - 2004-06-01 20:00:13
|
I've got a PythonCard app that I have been converting to win32 standalone using py2exe to distribute. I've been using the resulting .exe for a while with no problems, but recently I made a seemingly minor change to my app that causes the resulting windows .exe (without console) to crash, presumably somewhere on background init. My app uses several constants that are defined in a module, Constants.py, which contains simple assignment statements like "a=1", "b=a", and "c=a+b". Previously, at the top of my app, I was simply doing "from Constants import *". But I wanted to be able to empower the user to dynamically update the constants used in their app without having to update the entire distribution folder. So I made the following change: From: from Constants import * To: try: f = open("Constants.py", "r") lines = f.readlines() for line in lines: try: eval(compile(string.replace(line,"\n",""), "", "single")) except exceptions.StandardError, e: traceback.print_exc() f.close() except exceptions.StandardError, e: print "\n\n\n" + line + "\n\n\n" print e traceback.print_exc() f.close() so that these variables get defined in the namespace of my Pythoncard app by compiling each expression and evaluating it dynamically. Now, the interesting thing is that the app runs fine under python.exe and pythonw.exe, and even the py2exe-generated console .exe. But the windows .exe won't run. Apparently, no errors are occurring in the above block because no tracebacks are being printed. Any ideas what might be going wrong? Are there any known problems with dynamically evaluating compiled expressions in a py2exe app? FYI - I tried using execfile("Constants.py") instead of evaluating individual lines, and the result is identical: runs fine under python.exe, pythonw.exe, and the py2exe-generated console .exe, but the windows .exe won't run. Thanks, Tim |
From: gaston <ga...@nt...> - 2004-05-31 17:54:00
|
suppaman wrote: > Hi folks, > I've just subscribed to this list so this is a presentation: my name > is Andrea, I'm 25, I am from Italy and I was an HyperCard fellower. > > I am new to python and I'm trying to understand something deep inside > it, could you suggest me something to read ? > > Thanks > > bye > > Andrea > > > > > > -- > > Email.it, the professional e-mail, gratis per te: http://www.email.it/f > > > > Sponsor: > > Partecipa a NetObserver il sondaggio sugli usi e costumi di chi vive > Internet. Puoi vincere 1500 Euro! > > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2549&d=31-5 > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle > 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > Hello andrea, here's a few books you can read online. http://www.freenetpages.co.uk/hp/alan.gauld/ http://ibiblio.org/obp/thinkCS/python.php http://python.org/doc/Intros.html Hope it helps. |
From: Ruben M. <rmc...@ya...> - 2004-05-31 14:45:32
|
I recommend the book Learning Python: http://www.oreilly.com/catalog/lpython/ It is an excellent introduction to Python. If you prefer to go the free way, you could try: http://diveintopython.org/ -Ruben --- suppaman <sup...@em...> wrote: > Hi folks, > I've just subscribed to this list so this is a > presentation: my name is > Andrea, I'm 25, I am from Italy and I was an > HyperCard fellower. > > I am new to python and I'm trying to understand > something deep inside > it, could you suggest me something to read ? > > Thanks > > bye > > Andrea > > > > > > -- > > Email.it, the professional e-mail, gratis per te: > http://www.email.it/f > > > > Sponsor: > > Partecipa a NetObserver il sondaggio sugli usi e > costumi di chi vive Internet. Puoi vincere 1500 > Euro! > > Clicca qui: > http://adv.email.it/cgi-bin/foclick.cgi?mid=2549&d=31-5 > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the > market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the > exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ |
From: suppaman <sup...@em...> - 2004-05-31 11:07:49
|
Hi folks, I've just subscribed to this list so this is a presentation: my name is Andrea, I'm 25, I am from Italy and I was an HyperCard fellower. I am new to python and I'm trying to understand something deep inside it, could you suggest me something to read ? Thanks bye Andrea -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Partecipa a NetObserver il sondaggio sugli usi e costumi di chi vive Internet. Puoi vincere 1500 Euro! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2549&d=31-5 |
From: Ruben M. <rmc...@ya...> - 2004-05-20 19:41:15
|
> We're still relying on some of the design decisions > and simplifications > we made in PythonCard several years ago and that is > limiting some of > the things we might do. One of the big reasons to > finish off 1.0 > without radically changing the basic PythonCard > design is so that work > can be started on 2.0, which might end up much more > in sync with other > wxWidget tools like XRC resource editor. One of the > big questions is > still who is the target audience for PythonCard 1.0 > or 2.0? If someone > is comfortable with wxPython then PythonCard 1.0 > probably doesn't make > much sense for them. Yes, I can see that 1.0 should be a finished implementation of the initial concepts. It is a great tool for what it does. It has weaned me off of wxPython, maybe a bit too much at this point in time since I now have to get my mind around it again. However, I definetly think that the 2.x goal should be a more ambitious one (something like full support for wxPython widgets for example ;). So, maybe it is still to early to talk about this. 1.0 seems to be very close, and very worth while. But, thanks for your in depth response. -Ruben __________________________________ Do you Yahoo!? Yahoo! Domains Claim yours for only $14.70/year http://smallbusiness.promotions.yahoo.com/offer |
From: Kevin A. <al...@se...> - 2004-05-20 18:33:16
|
Below is the updated childWindow function in model.py that should be able to find the resource file for a given background module based on the module name. The code is for release 0.7.3.1. The function starts on line 138 in model.py. You still need to include your .rsrc.py files in the data_files list your py2exe setup.py script. The code below assumes that the module is in the library.zip file, so it won't work for the McMillan installer or bundlebuilder or freeze, so for those tools you'll need to continue to provide the path or loaded Resource for a child window in a standalone. ka --- def childWindow(parent, frameClass, filename=None, rsrc=None): if filename is None: if rsrc is None: if util.main_is_frozen(): # KEA 2004-05-20 # running standalone # need to support py2exe differently than bundlebuilder and mcmillan probably # but this is the py2exe 0.5 way # figure out the .rsrc.py filename based on the module name stored in library.zip filename = os.path.split(sys.modules[frameClass.__module__].__file__)[1] filename = os.path.join(parent.stack.app.applicationDirectory, filename) else: # figure out the .rsrc.py filename based on the module name filename = sys.modules[frameClass.__module__].__file__ # chop the .pyc or .pyo from the end base, ext = os.path.splitext(filename) filename = internationalResourceName(base) rsrc = res.ResourceFile(filename).getResource() elif isinstance(rsrc, dict): rsrc = res.Resource(rsrc) else: rsrc = res.ResourceFile(filename).getResource() return frameClass(parent, rsrc.stack.backgrounds[0]) ka |
From: Kevin A. <al...@se...> - 2004-05-20 18:09:02
|
On May 19, 2004, at 1:04 PM, Ruben Marquez wrote: > I know that it is not a simple matter to add support > for wxNotebook as things stand now. However, I was > wondering if plans are to do so in the future. I > noticed that wxPython now ships with XRC and an XRC > Editor. It looks like some of the goals of this > effort are simmilar to PythonCard's. Also, it seems > that they have some support for wxNotebook on it > already (although I have not yet figured out how it > all works). So, I wonder if PythonCard can benefit > from some of the work, code, or concepts from the XRC > project. > > Just wondering as I am currently having to go back to > raw wxPython for an app that I really think will be > better using wxNotebook. > I don't know, but I'm guessing that you'll be better off with raw wxPython in the short-term. There are a number of conceptual and code issues with supporting wxNotebook in the current PythonCard framework. Just creating a wxNotebook component would be a simple wrapper. Then there is the question of what goes into the wxNotebook pages. The current Background class is a wxFrame that contains a wxPanel and all the components go on that. What we probably need for wxNotebook is a lot of the Background functionality, but for it to just be a wxPanel. Every page in the wxNotebook would sort of be like a child window. The reference to a particular component on each page might be long-winded outside of the page itself, but when just referring to siblings it would look like it does today in a Background. Supporting wxNotebook in the resourceEditor is much more work and I would want to save that until the resourceEditor is refactored; I use the term refactored loosely since it will be more like building the beast from scratch. If PythonCard adopted the XRC file format the only sensible way to do that would be to start working with Roman Rolinsky and leverage the code he has already done on XRCed. We're still relying on some of the design decisions and simplifications we made in PythonCard several years ago and that is limiting some of the things we might do. One of the big reasons to finish off 1.0 without radically changing the basic PythonCard design is so that work can be started on 2.0, which might end up much more in sync with other wxWidget tools like XRC resource editor. One of the big questions is still who is the target audience for PythonCard 1.0 or 2.0? If someone is comfortable with wxPython then PythonCard 1.0 probably doesn't make much sense for them. The XRCed resource editor is just a way of editing XRC files. So it is analogous to the PythonCard resourceEditor as a way of building layouts. But it isn't a framework like PythonCard. If you adopted the PythonCard naming conventions for events, it would be relatively easy to adapt the PythonCard event binding that will be in release 0.8 and use that along with XRC files. That still requires the programmer to understand a lot more of the guts of wxPython, but would be very good solution for those that want it. Anyway, I would love to get feedback on what parts of Boa, wxGlade, XRC resource editor, etc. people on this list like and are comfortable with and what they don't like or find too daunting. ka |
From: Kevin A. <al...@se...> - 2004-05-20 17:13:37
|
On May 19, 2004, at 6:26 AM, Brian Debuire wrote: > Hi everyone, > =A0 > I want to thank Kevin Altis for the help he gave me with this problem,=20= > but i have a question, should i do this fix (path fix) in all my apps=20= > that need child windows??? > With an unmodified release 0.7.3.1 you will need to build the path=20 yourself for child windows and custom dialogs if you're making a=20 standalone. However, I think I figured out how to work around this requirement at=20 least for py2exe 0.5, so I'll post the release 0.8 code and required=20 mod for 0.7.3.1 in a separate thread once I have verified that it works=20= and checked it into cvs. ka |
From: Kevin A. <al...@se...> - 2004-05-20 17:07:57
|
On May 19, 2004, at 3:43 PM, Tim Black wrote: > I need to go back to pure wxPython to be able to use some controls not=20= > yet supported in PCP. I=92d like to be able to (automatically) convert=20= > some of my .rsrc.py files to .xrc format to import into a wxPython=20 > app. Is there a way to convert a .rsrc.py to a .xrc file? > No such beast exists, but it would be really useful if someone wants=20 to start working on it. If PythonCard was going to support XRC in the=20 future we'll need it and I would then be more inclined to look into the=20= custom loading code and resourceEditor support that would be necessary=20= for each component if XRC was used. The more difficult problem of parsing XRC files to pull out all the=20 relevant info could be saved for later. ka |
From: Tim B. <tb...@bi...> - 2004-05-19 22:38:12
|
I need to go back to pure wxPython to be able to use some controls not yet supported in PCP. I'd like to be able to (automatically) convert some of my .rsrc.py files to .xrc format to import into a wxPython app. Is there a way to convert a .rsrc.py to a .xrc file? Thanks, Tim Black |
From: Andy T. <an...@ha...> - 2004-05-19 20:30:45
|
Robert H. Lord wrote: > Hello, > This is my first post for this user's group. While modifying a form on > Fedora Linux I've received errors trying trying to open font dialogs > for a number of components. The following error was received while > trying to open the font dialog for a button: > > "(resourceEditor.py:6302): Gtk-WARNING **: Error loading icon: Failed > to load image '/usr/share/icons/Bluecurve/20x20/stock/gtk-cancel.png': > Fatal error in PNG image file: invalid stored block lengths". > > What's weird is that line number 6302 doesn't exist within file > resourceEditor.py. Thanks in advance. > > I'm not running Fedora (or even Red Hat) but it sounds to me like you have a problem with either your Gnome, pyGTK or wxPython installations. Does you desktop work OK? Can you run the wxPython demo? From looking at the error message you should have problems displaying any normal accept/cancel dialogue windows, do you see problems with other applications? Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: Ruben M. <rmc...@ya...> - 2004-05-19 20:04:31
|
I know that it is not a simple matter to add support for wxNotebook as things stand now. However, I was wondering if plans are to do so in the future. I noticed that wxPython now ships with XRC and an XRC Editor. It looks like some of the goals of this effort are simmilar to PythonCard's. Also, it seems that they have some support for wxNotebook on it already (although I have not yet figured out how it all works). So, I wonder if PythonCard can benefit from some of the work, code, or concepts from the XRC project. Just wondering as I am currently having to go back to raw wxPython for an app that I really think will be better using wxNotebook. -Ruben __________________________________ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/ |
From: Brian D. <deb...@ho...> - 2004-05-19 13:27:05
|
<html><div style='background-color:'><DIV class=RTE>Hi everyone,</DIV> <DIV class=RTE> </DIV> <DIV class=RTE>I want to thank Kevin Altis for the help he gave me with this problem, but i have a question, should i do this fix (path fix) in all my apps that need child windows???</DIV> <DIV class=RTE> </DIV> <DIV class=RTE>Thanks,</DIV> <DIV class=RTE> </DIV> <DIV class=RTE>Brian</DIV></div><br clear=all><hr>Add photos to your messages with <a href="http://g.msn.com/8HMBEN/2749??PS=47575">MSN 8. </a> Get 2 months FREE*.</html> |
From: Ruben M. <rmc...@ya...> - 2004-05-18 20:02:19
|
--- Kevin Altis <al...@se...> wrote: >ASPN is > much better. > > Interestingly, however, ASPN atributes my last post to Chris Fields. Fancy that. gmane shows it correctly. Not that I care about the cerdit, but it is interesting from a technical aspect. -Ruben __________________________________ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/ |
From: Kevin A. <al...@se...> - 2004-05-18 16:52:50
|
On May 18, 2004, at 9:06 AM, bri...@sy... wrote: > > > > > I can't find anything in the archive later than April 2. Archive > calendar > shows 5 items for April and none for May. > > http://sourceforge.net/mailarchive/forum.php?forum_id=740 > > > I know that not everything I've received as PythonCard e-mail has been > for > the -cvs (non-archived) list, or has it? > Welcome to the wonderful world of SF mailing list archiving. ASPN is much better. http://aspn.activestate.com/ASPN/Mail/Browse/Threaded/PythonCard There is also a gmane archive. http://news.gmane.org/gmane.comp.python.pythoncard/cutoff=681 Of course you can also read the gmane archive via your newsreader. ka |
From: <bri...@sy...> - 2004-05-18 16:06:55
|
I can't find anything in the archive later than April 2. Archive calendar shows 5 items for April and none for May. http://sourceforge.net/mailarchive/forum.php?forum_id=740 I know that not everything I've received as PythonCard e-mail has been for the -cvs (non-archived) list, or has it? |
From: Ruben M. <rmc...@ya...> - 2004-05-17 17:38:29
|
If your app works well before using py2exe then this is really not a PythonCard question but a py2exe question. You should focus some of your resources in reading and understanding how py2exe works. Now, if you really want more help you need to provide more info. What error messages do you get? When you say that you included the resource file for the child window of your app, what do you mean? Do you mean that you included it by manually copying the file into the same folder of your exe (which I believe should work), or did you try to include it by means of py2exe. If the latter, are you sure you did it right as per the py2exe documentation? -Ruben --- Brian Debuire <deb...@ho...> wrote: --------------------------------- Hi there, I have included the resource file for the child window of my app, but it still is not working I dont know what to do...please help me here some more What else do you need to know about my problem??? Thanks, Brian --------------------------------- The new MSN 8: smart spam protection and 2 months FREE* -------------------------------------------------------This SF.Net email is sponsored by: SourceForge.net BroadbandSign-up now for SourceForge Broadband and get the fastest6.0/768 connection for only $19.95/mo for the first 3 months!http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click_______________________________________________Pythoncard-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/pythoncard-users __________________________________ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/ |
From: Brian D. <deb...@ho...> - 2004-05-16 20:34:13
|
<html><div style='background-color:'><DIV class=RTE>Hi there,</DIV> <DIV class=RTE> </DIV> <DIV class=RTE>I have included the resource file for the child window of my app, but it still is not working</DIV> <DIV class=RTE> </DIV> <DIV class=RTE>I dont know what to do...please help me here some more</DIV> <DIV class=RTE> </DIV> <DIV class=RTE>What else do you need to know about my problem???</DIV> <DIV class=RTE> </DIV> <DIV class=RTE>Thanks,</DIV> <DIV class=RTE> </DIV> <DIV class=RTE> </DIV> <DIV class=RTE>Brian</DIV></div><br clear=all><hr>The new <a href="http://g.msn.com/8HMBEN/2737??PS=47575">MSN 8:</a> smart spam protection and 2 months FREE* </html> |
From: Kevin A. <al...@se...> - 2004-05-15 23:58:06
|
On May 15, 2004, at 4:02 PM, Brian Debuire wrote: > IOError: [Errno 2] No such file or directory: '<Graficos from=20 > archive>.rsrc.py' > =A0 > > I think i am not compiling the child window but i dont know how, or=20 > does the setup.py and py2exe knows what to do when there are child=20 > windows??? > How are the child windows compiled??? > Are they inside the .exe?? > I am so lost here > The child window resources must be included in the list of files to be=20= included in the archive just like the primary window .rsrc.py file. The=20= source module is imported by your main source file so py2exe doesn't=20 need to know about that it will be picked up automatically. ka |
From: Brian D. <deb...@ho...> - 2004-05-15 23:03:04
|
<html><div style='background-color:'><DIV class=RTE>Hi there,</DIV> <DIV class=RTE> </DIV> <DIV class=RTE>I have tryed everything to compile a Pyhton Card App with child windows.</DIV> <DIV class=RTE> </DIV> <DIV class=RTE><SPAN style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman">When the console window opens, this is what it displays: (running the .exe)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></DIV> <DIV class=RTE> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><o:p><FONT face="Times New Roman" size=3> </FONT></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman">C:\My Documents\SIEGFRIED 2004\My Python Card\Conjuntos\dist\Discretas\Discretas<o:p></o:p></FONT></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman">.exe:128: UserWarning: PyCrust has been renamed to Py.<SPAN style="mso-spacerun: yes"> </SPAN>Use 'from wx import py'<o:p></o:p></FONT></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>-¢¥-VsúS+ü­¢£¦¦¡-<SPAN style="mso-special-character: footnote"><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">[1]</SPAN></SPAN>ĵD&áB<SPAN style="mso-special-character: footnote"><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">[1]</SPAN></SPAN>÷-"+`#d __â¦++@û(]át<o:p></o:p></FONT></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman">Traceback (most recent call last):<o:p></o:p></FONT></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>File "PythonCardPrototype\binding.pyc", line 268, in dispatchOpenBackground<o:p></o:p></FONT></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>File "PythonCardPrototype\dispatch.pyc", line 81, in eventOccurred<o:p></o:p></FONT></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>File "<string>", line 16, in on_openBackground<o:p></o:p></FONT></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>File "PythonCardPrototype\model.pyc", line 144, in childWindow<o:p></o:p></FONT></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>File "PythonCardPrototype\res.pyc", line 45, in __init__<o:p></o:p></FONT></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>File "PythonCardPrototype\util.pyc", line 30, in readAndEvalFile<o:p></o:p></FONT></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman">IOError: [Errno 2] No such file or directory: '<Graficos from archive>.rsrc.py'</FONT></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman"></FONT></FONT></SPAN> </P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman">I think i am not compiling the child window but i dont know how, or does the setup.py and py2exe knows what to do when there are child windows???</FONT></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT face="Times New Roman" size=3>How are the child windows compiled???</FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT face="Times New Roman" size=3>Are they inside the .exe??</FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT face="Times New Roman" size=3></FONT></SPAN> </P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT face="Times New Roman" size=3>I am so lost here</FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT face="Times New Roman" size=3></FONT></SPAN> </P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT face="Times New Roman" size=3>Thanks for your help :)</FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT face="Times New Roman" size=3></FONT></SPAN> </P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><FONT face="Times New Roman" size=3>Brian</FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><o:p><FONT face="Times New Roman" size=3> </FONT></o:p></SPAN></P></DIV> <DIV class=RTE> </DIV></div><br clear=all><hr>The new <a href="http://g.msn.com/8HMBEN/2737??PS=47575">MSN 8:</a> smart spam protection and 2 months FREE* </html> |
From: Kevin A. <al...@se...> - 2004-05-14 21:59:34
|
On May 14, 2004, at 2:41 PM, Tim Black wrote: > The word button does not appear in my app .py file and it only appears=20= > in my resource .rsrc.py file once, in the component declaration for=20 > it=92s type (I have one button in this one). Also, my py2exe setup = file=20 > is as basic as it gets: > > from distutils.core import setup > > import py2exe > > setup( name =3D "BOAMessenger", > > =A0=A0=A0=A0=A0=A0 console =3D ["BOAMessenger.py"], > > =A0=A0=A0=A0=A0=A0 data_files =3D [ (".", ["BOAMessenger.rsrc.py"]) ] > > =A0=A0=A0=A0=A0=A0 ) > > This is why I think it=92s a PythonCard issue. > > T > If you look at the minimalStandalone.py sample you will see the=20 following comment: # KEA 2001-12-11 # if you want to build a standalone executable using py2exe # then uncomment the import line below # due to the way the dynamic imports of components work, each # component that an app uses needs to be imported statically when # doing a py2exe build from PythonCard.components import textfield So, in your app .py file you have to provide similar imports for every=20= component you use. ka |
From: Tim B. <tb...@bi...> - 2004-05-14 21:37:11
|
The word button does not appear in my app .py file and it only appears in my resource .rsrc.py file once, in the component declaration for it's type (I have one button in this one). Also, my py2exe setup file is as basic as it gets: from distutils.core import setup import py2exe setup( name = "BOAMessenger", console = ["BOAMessenger.py"], data_files = [ (".", ["BOAMessenger.rsrc.py"]) ] ) This is why I think it's a PythonCard issue. T |
From: Kevin A. <al...@se...> - 2004-05-14 20:57:59
|
On May 14, 2004, at 1:49 PM, Tim Black wrote: > All my py2exe errors have gone away since upgrading from Pythoncard=20 > 0.7.2. to 0.7.3.1 and from wxPython 2.4.2.4 to 2.5.1.5. The app runs=20= > fine with no errors using python. However, the resulting .exe does not=20= > run properly. I built and ran it as a console exe, after putting an=20 > exception handler around the instantiation of the PythonCardApp, and=20= > here is what=92s going wrong: > > =A0 > > cannot import module 'button > > Traceback (most recent call last): > =A0 File "BOAMessenger.py", line 383, in ? > =A0 File "PythonCardPrototype\model.pyc", line 218, in __init__ > =A0 File "PythonCardPrototype\res.pyc", line 48, in getResource > =A0 File "PythonCardPrototype\res.pyc", line 86, in __init__ > =A0 File "PythonCardPrototype\res.pyc", line 91, in __init__ > =A0 File "PythonCardPrototype\res.pyc", line 91, in __init__ > =A0 File "PythonCardPrototype\res.pyc", line 96, in __init__ > =A0 File "PythonCardPrototype\res.pyc", line 130, in enforceSpec > =A0 File "PythonCardPrototype\res.pyc", line 30, in = loadComponentModule > ImportError: cannot import module 'button > > > It looks like there is a typo somewhere. I double checked my resource=20= > file, but the button component is: > {'type':'Button', > =A0=A0=A0 'name':'btnSend', > =A0=A0=A0 'position':(5, 5), > =A0=A0=A0 'size':(40, -1), > =A0=A0=A0 'label':'Send', > =A0=A0=A0 }, > > Looks fine to me. Has anyone seen this button import exception before? > Did you add an explicit import of the button component to your code=20 such as: from PythonCardPrototype.components import button as in the examples, and/or tell py2exe to include that module when it=20 does its build? All components are imported dynamically, so py2exe has=20= no way of knowing which components you used in the resource. Thomas and=20= I have had some recent discussion about how to best inform py2exe of=20 the necessary imports and there is a discussion about the issue going=20 on on the ctypes-users mailing list as well which you can read on gmane=20= as gmane.comp.python.ctypes. See the Metadata for py2exe thread. ka= |
From: Tim B. <tb...@bi...> - 2004-05-14 20:44:26
|
All my py2exe errors have gone away since upgrading from Pythoncard 0.7.2. to 0.7.3.1 and from wxPython 2.4.2.4 to 2.5.1.5. The app runs fine with no errors using python. However, the resulting .exe does not run properly. I built and ran it as a console exe, after putting an exception handler around the instantiation of the PythonCardApp, and here is what's going wrong: cannot import module 'button Traceback (most recent call last): File "BOAMessenger.py", line 383, in ? File "PythonCardPrototype\model.pyc", line 218, in __init__ File "PythonCardPrototype\res.pyc", line 48, in getResource File "PythonCardPrototype\res.pyc", line 86, in __init__ File "PythonCardPrototype\res.pyc", line 91, in __init__ File "PythonCardPrototype\res.pyc", line 91, in __init__ File "PythonCardPrototype\res.pyc", line 96, in __init__ File "PythonCardPrototype\res.pyc", line 130, in enforceSpec File "PythonCardPrototype\res.pyc", line 30, in loadComponentModule ImportError: cannot import module 'button It looks like there is a typo somewhere. I double checked my resource file, but the button component is: {'type':'Button', 'name':'btnSend', 'position':(5, 5), 'size':(40, -1), 'label':'Send', }, Looks fine to me. Has anyone seen this button import exception before? Thanks, Tim Black |
From: Kevin A. <al...@se...> - 2004-05-13 20:38:51
|
I think this particular issue was fixed with release 0.7.3.1 which was=20= upgraded for py2exe 0.5 and removed support for older versions of=20 PyCrust which led to the warning messages. However, you'll probably=20 want to figure out your other problem with pythonw.exe first as well as=20= upgrading to 0.7.3.1 before trying to diagnose the problem further. ka On May 13, 2004, at 12:11 PM, Tim Black wrote: > Greetings, all. I have chosen to use wxPython/PythonCardPrototype to=20= > develop front end apps to drive a set of tools I have developed in=20 > Python. I am having trouble running executable versions of my=20 > PythonCard apps created with py2exe. The console .exe=92s that I have=20= > created with py2exe seem to run ok, but I have yet to create a windows=20= > version that will run. =A0I have thus returned to square one to try = and=20 > get a handle on what is going wrong. > > =A0 > > The short story: py2exe creates minimal.exe but states: "The following=20= > modules appear to be missing ['wxPython.lib.PyCrust.introspect']"=20 > minimal.exe will execute but does not appear to properly run the=20 > PythonCard app, I.e. it does nothing. Also, when I run minimal.exe=20 > from the command line, no errors are output to the console. > > =A0 > > The long story: > > =A0 > > 1.=A0=A0=A0=A0=A0 I am using Windows XP, Python version 2.3.3, = wxPython version=20 > 2.4.2.4, PythonCardPrototype version 0.7.2, and py2exe version 0.5.0. > > 2.=A0=A0=A0=A0=A0 I am using the minimalStandalone sample, which runs=20= > successfully with python.exe or pythonw.exe. > > 3.=A0=A0=A0=A0=A0 I am trying to compile the minimalStandalone sample, = using the=20 > following setup file setup.py (located in the same dir as my source=20 > files minimal.py and minimal.rsrc.py): > > =A0 > > from distutils.core import setup > > import py2exe > > =A0 > > setup(name=3D"minimal", > > =A0=A0=A0=A0=A0 windows=3D["minimal.py"], > > =A0=A0=A0=A0=A0 data_files=3D[ (".", ["minimal.rsrc.py"]) ]) > > =A0 > > 4.=A0=A0=A0=A0=A0 I run py2exe from command line: > > =A0 > > python setup.py py2exe --excludes=3DImage > > =A0 > > =A0=A0=A0=A0 and get the following output: > > =A0=A0=A0=A0 > > running py2exe > > *** searching for required modules *** > > *** parsing results *** > > creating python loader for extension 'wxPython.wxc' > > creating python loader for extension 'datetime' > > creating python loader for extension 'wxPython.helpc' > > creating python loader for extension '_sre' > > creating python loader for extension '_socket' > > creating python loader for extension 'wxPython.stc_c' > > creating python loader for extension 'pyexpat' > > creating python loader for extension '_ssl' > > *** finding dlls needed *** > > *** create binaries *** > > *** byte compile python files *** > > skipping byte-compilation of=20 > C:\Python23\lib\site-packages\wxPython\py\frame.py to=20 > wxPython\py\frame.pyc > > skipping byte-compilation of c:\Python23\lib\code.py to code.pyc > > skipping byte-compilation of=20 > C:\Python23\lib\site-packages\wxPython\fonts.py to wxPython\fonts.pyc > > skipping byte-compilation of c:\Python23\lib\random.py to random.pyc > > skipping byte-compilation of=20 > C:\Python23\lib\site-packages\wx\py\__init__.py to wx\py\__init__.pyc > > =A0 > > . > > .=A0=A0 [many more =93skipping byte-compilation of=94 lines=85] > > . > > =A0 > > skipping byte-compilation of=20 > C:\Python23\lib\site-packages\wx\py\introspect.py to=20 > wx\py\introspect.pyc > > skipping byte-compilation of c:\Python23\lib\linecache.py to=20 > linecache.pyc > > skipping byte-compilation of=20 > C:\Python23\lib\site-packages\wxPython\frames.py to=20 > wxPython\frames.pyc > > skipping byte-compilation of=20 > C:\Python23\lib\site-packages\wxPython\__init__.py to=20 > wxPython\__init__.pyc > > skipping byte-compilation of=20 > C:\Python23\lib\site-packages\PythonCardPrototype\pom.py to=20 > PythonCardPrototype\pom.pyc > > *** copy extensions *** > > *** copy dlls *** > > *** copy data files *** > > copying C:\Python23\lib\site-packages\py2exe\run_w.exe ->=20 > C:\Python23\StandAloneTest_Windows\dist\minimal.exe > > The following modules appear to be missing > > ['wxPython.lib.PyCrust.introspect'] > > =A0 > > 5.=A0=A0=A0=A0=A0 As you can see, py2exe creates minimal.exe but = states: "The=20 > following modules appear to be missing=20 > ['wxPython.lib.PyCrust.introspect']" > > 6.=A0=A0=A0=A0=A0 minimal.exe runs but does not appear to execute the = app. When=20 > I run minimal.exe from the command line, no errors are output to the=20= > console. > > =A0 > > Does anyone know what might be going wrong? > > =A0 > > Thanks, > > Tim Black > > =A0 |