<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=標楷體 size=4><SPAN class=819250108-29112004>I
have a twistd-based web server by running a web.tap file like
this:</SPAN></FONT></DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004></SPAN></FONT> </DIV>
<DIV><FONT face=標楷體 size=4><SPAN class=819250108-29112004>$twistd -o -f web.tap
-l /var/log/twistd.log</SPAN></FONT></DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004></SPAN></FONT> </DIV>
<DIV><FONT face=標楷體 size=4><SPAN class=819250108-29112004>Great, it works.
</SPAN></FONT><FONT face=標楷體 size=4><SPAN class=819250108-29112004>Then, I use
cx_freeze to freeze it.</SPAN></FONT></DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004></SPAN></FONT> </DIV>
<DIV><FONT face=標楷體 size=4><SPAN class=819250108-29112004>$FreezePython
--install-dir freeze_twistd twistd</SPAN></FONT></DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004></SPAN></FONT> </DIV>
<DIV><FONT face=標楷體 size=4><SPAN class=819250108-29112004>That is ok, lots of
*.so have been copied into freeze_twistd/*.</SPAN></FONT></DIV>
<DIV><FONT face=標楷體 size=4><SPAN class=819250108-29112004>After moving those all
into another machine, and run the executable</SPAN></FONT></DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004></SPAN></FONT> </DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004>$freeze_twistd/twistd</SPAN></FONT></DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004></SPAN></FONT> </DIV>
<DIV><FONT face=標楷體 size=4><SPAN class=819250108-29112004>I got complains on
missing some modules.</SPAN></FONT></DIV>
<DIV><FONT face=標楷體 size=4><SPAN class=819250108-29112004>I realized that those
twisted/* don't be freezed.</SPAN></FONT></DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004></SPAN></FONT> </DIV>
<DIV><FONT face=標楷體 size=4><SPAN class=819250108-29112004>Then, I
try:</SPAN></FONT></DIV>
<DIV><FONT face=標楷體 size=4><SPAN class=819250108-29112004>
<DIV><FONT face=標楷體 size=4><SPAN class=819250108-29112004>$FreezePython
--include-modules=cgi,calendar,twisted </SPAN></FONT><FONT face=標楷體
size=4><SPAN class=819250108-29112004>--install-dir=freeze_twistd
twistd</SPAN></FONT></DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004></SPAN></FONT> </DIV>
<DIV><FONT face=標楷體 size=4><SPAN class=819250108-29112004>That is ok too. But
twisted still not been included.</SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV><FONT face=標楷體 size=4><SPAN class=819250108-29112004>Any
suggestion?</SPAN></FONT></DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004></SPAN></FONT> </DIV>
<DIV><FONT face=標楷體 size=4><SPAN class=819250108-29112004>Thanks in
advance.</SPAN></FONT></DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004></SPAN></FONT> </DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004>Iap.</SPAN></FONT></DIV>
<DIV><FONT face=標楷體 size=4><SPAN class=819250108-29112004>BTW: I searched
google with keywords "twisted freeze", "twistd freeze". Not so many
hits.</SPAN></FONT></DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004></SPAN></FONT> </DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004></SPAN></FONT> </DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004></SPAN></FONT> </DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004></SPAN></FONT> </DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004></SPAN></FONT> </DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004></SPAN></FONT> </DIV>
<DIV><FONT face=標楷體 size=4><SPAN
class=819250108-29112004></SPAN></FONT> </DIV></BODY></HTML>