[Tutor] Wrestling with the Py2exe Install, Win7[XP!], Py2.5

Wayne Watson sierra_mtnview at sbcglobal.net
Fri Feb 19 16:38:41 CET 2010

Sneaky! :-) Yes, I now recall you mentioning it earlier. I'm looking at 
dist right now. I see a program I built in a folder above dist, 
pylab_scatter.exe. Interestingly, if I fire it up from the Win folder, a 
dos-window appears and it dies. A few lines appear too quickly to read. 
If I execute it from the command prompt, it works fine. Still the 
mystery to me is why I don't need to add exe in the cmd prompt to 
execute it. Further, how did it know to look in the dist folder? I 
checked with IDLE's path browser, and don't see it there. I'm not yet on 
board with the browser, but it looks like a starting point for finding 
py files I've run under IDLE.

I looked for your post that had details, and I don't see it. I know you 
did post it. I had some trouble a few days ago trying to reply to one of 
your posts. It's not in my trash. Strange.

The two directories are discussed just above section 4, right at the end 
of the a long output list. I missed that, since I thought the paragraph 
described the list, which I wasn't really interested in at the time. I 
would think that all the extras in dist are useful to other compiles of 
programs in my py folder?

  I have a  comment about the tutorial.
The command line shown a few lines into section 3. does not need python 
in the line in my case. setup.py py2exe works.

I've glanced at section 5 and understand the basics. I'll be back to it 
later as needed.

I didn't notice your reply in the queue this morning, and posted a msg 
about the disappearing file thinking there was a disconnect on the posts 
I had trouble with as above. I'll fix that post shortly.

On 2/19/2010 5:34 AM, Robert Berman wrote:
> Wayne,
> Somewhere in the tutorial should be a comment about py2exe creating two
> additional directories: build and dist. Forget about the build directory. If
> you look in the dist directory you will find the exe file and all supporting
> files. If you look back to an earlier email you will see a more detailed
> explanation I sent you.
> Robert Berman
>> -----Original Message-----
>> From: Wayne Watson [mailto:sierra_mtnview at sbcglobal.net]
>> Sent: Thursday, February 18, 2010 11:10 PM
>> To: Robert Berman
>> Cc: tutor at python.org
>> Subject: Re: [Tutor] Wrestling with the Py2exe Install, Win7[XP!],
>> Py2.5
>> There's a bit of an anomaly. I've compiled 3 small programs now, and
>> in
>> cmd prompt a Dir does not find the file. It finds the py file, but
>> not
>> the completed file. Nevertheless, if I type in the prefix, the
>> desired
>> program executes.
>> On 2/18/2010 4:48 PM, Wayne Watson wrote:
>>> Got it. Fooled myself. I'm converting to  Win7 and have my XP
>> keyboard
>>> and monitor side by side with the same for XP. I did the world
>> program
>>> in XP and py2exe module in W7!!
>>> world compiled and ran successfully. Now for a bigger program with
>>> matplotlib and tkinter. Maybe I'll just settle for a small
>> matplotlib
>>> program for the moment. VBG
>>> Thanks very much.
>> --
>>               "There is nothing so annoying as to have two people
>>                talking when you're busy interrupting." -- Mark Twain

             "There is nothing so annoying as to have two people
              talking when you're busy interrupting." -- Mark Twain

More information about the Tutor mailing list