[Tutor] Making the binary when more than a single file is involved

Praveen Pathiyil ppathiyi@cisco.com
Mon, 21 May 2001 18:28:41 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_03FC_01C0E223.DC1FD3E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
        My python application consists of two files config.py and =
Server.py.
        The config.py file consists of some configurable parameters and =
a single function call main(), which is defined in Server.py. I do a =
"vi" of the config.py to change the values in that.

config.py looks like ----

### CONFIGURABLE PARAMETERS START ####

---- parameters ----

#### CONFIGURABLE PARAMETERS END ####

from Server import *

main()


where Server is the one and only class defined in Server.py.

But when i made the binary of these two files using freeze.py and tried =
to run the same, i got an error saying that the module "Server" was not =
found.

Any suggestions on this ?

TIA,
Praveen.

------=_NextPart_000_03FC_01C0E223.DC1FD3E0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3103.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
My python=20
application consists of two files config.py and Server.py.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
The config.py=20
file consists of some configurable parameters and a single function call =
main(),=20
which is defined in Server.py. I do a "vi" of the config.py to change =
the values=20
in that.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>config.py looks like ----</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>### CONFIGURABLE PARAMETERS START =
####</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>---- parameters ----</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>#### CONFIGURABLE PARAMETERS END =
####</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>from Server import *</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>main()</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>where Server is the one and only class =
defined in=20
Server.py.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>But when i made the binary of these two =
files using=20
freeze.py and tried to run the same, i got an error saying that the =
module=20
"Server" was not found.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any suggestions on this ?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>TIA,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Praveen.</FONT></DIV></BODY></HTML>

------=_NextPart_000_03FC_01C0E223.DC1FD3E0--