<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">I am attaching a word document
copy of this EMail which might be easier to read and follow if your EMail window
rearanges things to much.</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face=Arial
size=2></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">I would like thank Dax Reyes and
John Fouhy for taking the trouble to respond to my attempt to create
an _.EXE from
a Python program.<SPAN
style="FONT-FAMILY: 'Arial Unicode MS'"><?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face=Arial
size=2></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">The question now is;
can the PY2EXE
procedure make
PROG.EXE ( Or a set of files. )
from PROG.PY that
will allow
PROG.EXE to run on a machine that does not
have Python installed on it, and if so what has
to be fixed and how?<BR><BR>I have
created
PROG.EXE from
PROG.PY , but
it appears <STRONG>NOT </STRONG> to be portable in
that when I try to run<SPAN style="mso-spacerun: yes">
</SPAN>PROG.EXE<SPAN style="mso-spacerun: yes">
</SPAN>on my wife's machine which does not have Python
installed on it I get a " See the logfile PROG.EXE log for
details". The logfile has the following ;<BR
style="mso-special-character: line-break"><BR
style="mso-special-character: line-break"></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><BR><B
style="mso-bidi-font-weight: normal"><SPAN style="COLOR: red">Traceback (most
recent call last):<BR><BR> File "PROG.PY", line 364, in ?<BR><BR>
File "PROG.PY", line 320, in Main<BR><BR>EOFError: EOF when reading a
line<BR></SPAN></B><BR><BR><BR>Lines 320 and 364 are shown below.<SPAN
style="mso-spacerun: yes"> </SPAN>Line 364 is the last line of the
program.<SPAN style="mso-spacerun: yes"> </SPAN>No line reference on
the<SPAN style="mso-spacerun: yes"> </SPAN>EOFError<SPAN
style="mso-spacerun: yes"> </SPAN>was given.<BR><BR><B
style="mso-bidi-font-weight: normal"><SPAN style="COLOR: red">
filename=raw_input("Enter destination and filename as >
C:\Name.STR <: ") <SPAN
style="mso-spacerun: yes"> </SPAN> <SPAN
style="mso-tab-count: 1"> </SPAN><SPAN
style="mso-tab-count: 2">
</SPAN><SPAN
style="mso-tab-count: 2">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN># line 320 listed in traceback
log.<BR>Main()
<SPAN
style="mso-tab-count: 1">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN># line 360 listed in traceback log.<BR
style="mso-special-character: line-break"><BR
style="mso-special-character: line-break"><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><BR>The 6 lines of<SPAN
style="mso-spacerun: yes"> </SPAN>
PyToExe.PY used to make<SPAN
style="mso-spacerun: yes"> </SPAN>PROG.EXE<SPAN
style="mso-spacerun: yes"> </SPAN>, is shown below
starting with<SPAN style="mso-spacerun: yes"> </SPAN>### in line
#1.<BR><BR><B style="mso-bidi-font-weight: normal"><SPAN
style="COLOR: red">### PyToExe.PY = file name. _.PY >
_.EXE<BR><BR>from distutils.core import setup<BR>import
py2exe<BR><BR>setup(windows=['PROG.PY'])<BR></SPAN></B><BR>The<SPAN
style="mso-spacerun: yes"> </SPAN> DOS com line<SPAN
style="mso-spacerun: yes"> </SPAN>command was :<B
style="mso-bidi-font-weight: normal"><SPAN
style="COLOR: red"> PYTHON PyToExe.PY
PY2EXE</SPAN></B> .<BR><BR style="mso-special-character: line-break"><BR
style="mso-special-character: line-break"></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">The program,
PROG.PY <SPAN style="mso-spacerun: yes"> </SPAN> has no errors
and runs fine under Python24, as does PROG.EXE <SPAN
style="mso-spacerun: yes"> </SPAN>on a Python equipped machine.
Actually I can delete PROG.EXE and double
click the<SPAN style="mso-spacerun: yes">
</SPAN>PROG.PY icon in the
Python24 folder and it runs fine. </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">I am running an XP machine with a
1.8 GHz CPU, 700 Meg of memory and 36 Gbyte of free space on disk.<BR><BR>I am
attaching<SPAN style="mso-spacerun: yes">
</SPAN>PROG.PY<SPAN
style="mso-spacerun: yes"> </SPAN>in case
anyone has any questions on it.</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"> <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">At some point over the course of
trying to run<SPAN style="mso-spacerun: yes">
</SPAN>PROG.EXE<SPAN style="mso-spacerun: yes"> </SPAN>it was
indicated that<SPAN style="mso-spacerun: yes">
</SPAN>Python24.dll<SPAN style="mso-spacerun: yes"> </SPAN>was
missing so it has been copied into the<SPAN
style="mso-spacerun: yes"> </SPAN>DIST<SPAN
style="mso-spacerun: yes"> </SPAN>folder where </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="mso-spacerun: yes"> </SPAN>PROG.EXE<SPAN
style="mso-spacerun: yes"> </SPAN>is located as
well as<SPAN
style="mso-spacerun: yes">
</SPAN>WINDOWS\SYSTEM32\DRIVERS<SPAN
style="mso-spacerun: yes"> </SPAN>,<SPAN
style="mso-spacerun: yes">
</SPAN></P><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><SPAN
style="mso-spacerun: yes">
</SPAN>WINDOWS<SPAN
style="mso-spacerun: yes">
</SPAN>and<SPAN
style="mso-spacerun: yes">
</SPAN>WINDOWS\SYSTEM<SPAN style="mso-spacerun: yes"> </SPAN>.<BR><BR>Jack
Anema<BR style="mso-special-character: line-break"></SPAN></FONT></FONT><FONT
face=Arial size=2></DIV></FONT></BODY></HTML>