  | | | Python install, 2.4.1 | Python install, 2.4.1 2005-04-12 - By Jerry Gamache
Back You are hitting this pretty weird bug, which is not fixed yet: https://sourceforge.net/tracker/?func=detail <https://sourceforge.net/tracker/ ?func=detail&atid=105470&aid=1163244&group_id=5470> &atid=105470&aid=1163244 &group_id=5470 A workaround for you is to edit the file C:\Python24\Lib\site-packages\win32com \client\genpy.py and remove the following lines: if not hasattr(sys, "frozen") and sys.platform.startswith("win"): print >> self.file, '# -*- coding: mbcs -*-' # Is this always correct?
until Python bug 1163244 gets fixed. This should work as long as you don't use non-us COM objects.
-- --Original Message-- -- From: owner-xsi@(protected) [mailto:owner-xsi@(protected)]On Behalf Of kim aldis Posted At: Monday, April 11, 2005 9:42 AM Posted To: xsi Conversation: Python install, 2.4.1 Subject: RE: Python install, 2.4.1
I'm not using activepython, I'm using the installs from the Python site.
__ __
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of Raffaele "ThE_JacO" Fragapane Sent: 11 April 2005 09:40 To: XSI@(protected) Subject: RE: Python install, 2.4.1
Wasn't it always the case that you first had to install pythong and AFTER that install (or re-install) activepython ?
~Raffaele Fragapane ~Lead "I'm sure we can make it work" ~Peerless Camera Company
__ __
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of kim aldis Sent: Monday, April 11, 2005 10:10 AM To: XSI@(protected) Subject: Python install, 2.4.1
Word of warning; installing the latest version of Python -2.4.1 - isn't a good idea. It pretty much broke Python scripting in xsi in a fairly unpredictable sort of way. 2.4 is good.
kim@(protected)
kim@(protected)
--- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.859 / Virus Database: 585 - Release Date: 14-Feb-05 (See http://Feb-05.ora-code.com)
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.859 / Virus Database: 585 - Release Date: 14-Feb-05 (See http://Feb-05.ora-code.com)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = "urn:schemas-microsoft-com:vml" xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:w = "urn:schemas-microsoft-com:office:word" xmlns:st1 = "urn:schemas-microsoft-com:office:smarttags"><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">
<META content="MSHTML 6.00.2800.1476" name=GENERATOR><!--[if !mso]> <STYLE>v\:* { BEHAVIOR: url(#default#VML) } o\:* { BEHAVIOR: url(#default#VML) } w\:* { BEHAVIOR: url(#default#VML) } .shape { BEHAVIOR: url(#default#VML) } </STYLE> <![endif]--><o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"></o:SmartTagType><!--[if !mso]> <STYLE>st1\:* { BEHAVIOR: url(#default#ieooui) } </STYLE> <![endif]--> <STYLE>@(protected) { font-family: Tahoma; } @(protected) Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; } P.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman" } LI.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman" } DIV.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman" } A:link { COLOR: blue; TEXT-DECORATION: underline } SPAN.MsoHyperlink { COLOR: blue; TEXT-DECORATION: underline } A:visited { COLOR: purple; TEXT-DECORATION: underline } SPAN.MsoHyperlinkFollowed { COLOR: purple; TEXT-DECORATION: underline } P { FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto } SPAN.EmailStyle17 { COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply } DIV.Section1 { page: Section1 } </STYLE> </HEAD> <BODY lang=EN-US vLink=purple link=blue> <DIV><SPAN class=200210120-12042005><FONT face="Comic Sans MS" color=#008080 size=2>You are hitting this pretty weird bug, which is not fixed yet:</FONT></SPAN></DIV> <DIV><SPAN class=200210120-12042005><FONT face="Comic Sans MS" color=#008080 size=2></FONT></SPAN> </DIV> <DIV><SPAN class=200210120-12042005><FONT face="Comic Sans MS" color=#008080 size=2><A href="https://sourceforge.net/tracker/?func=detail&atid=105470&aid =1163244&group_id=5470">https://sourceforge.net/tracker/?func=detail& ;atid=105470&aid=1163244&group_id=5470</A></FONT></SPAN></DIV> <DIV><SPAN class=200210120-12042005><FONT face="Comic Sans MS" color=#008080 size=2></FONT></SPAN> </DIV> <DIV><SPAN class=200210120-12042005><FONT face="Comic Sans MS" color=#008080 size=2>A workaround for you is to edit the file C:\Python24\Lib\site-packages\win32com\client\genpy.py and remove the following lines:</FONT></SPAN></DIV> <DIV><SPAN class=200210120-12042005><FONT face="Comic Sans MS" color=#008080 size=2></FONT></SPAN> </DIV> <DIV><SPAN class=200210120-12042005><FONT face="Comic Sans MS" color=#008080 size=2> if not hasattr(sys, "frozen") and sys.platform.startswith("win"):<BR> print >> self.file, '# -*- coding: mbcs -*-' # Is this always correct?<BR></FONT></SPAN></DIV> <DIV><SPAN class=200210120-12042005><FONT face="Comic Sans MS" color=#008080 size=2>until Python bug 1163244 gets fixed. This should work as long as you don't use non-us COM objects.</DIV></FONT></SPAN> <DIV><SPAN class=200210120-12042005></SPAN><SPAN class=200210120-12042005><FONT face="Comic Sans MS" color=#008080 size=2></FONT></SPAN> </DIV> <DIV><SPAN class=200210120-12042005></SPAN><SPAN class=200210120-12042005><FONT face="Comic Sans MS" color=#008080 size=2></FONT></SPAN> </DIV> <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma size=2>-- --Original Message-- --<BR><B>From:</B> owner-xsi@(protected) [mailto:owner-xsi@(protected)]<B>On Behalf Of </B>kim aldis<BR><B>Posted At:</B> Monday, April 11, 2005 9:42 AM<BR><B>Posted To:</B> xsi<BR><B>Conversation:</B> Python install, 2.4.1<BR><B>Subject:</B> RE: Python install, 2.4.1<BR><BR></FONT></DIV> <DIV dir=ltr align=left><SPAN class=843194113-11042005><FONT face=Arial color=#0000ff size=2>I'm not using activepython, I'm using the installs from the Python site.</FONT></SPAN></DIV><BR> <BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma size=2><B>From:</B> owner-xsi@(protected) [mailto:owner-xsi@(protected)] <B>On Behalf Of </B>Raffaele "ThE_JacO" Fragapane<BR><B>Sent:</B> 11 April 2005 09:40<BR><B>To:</B> XSI@(protected)<BR><B>Subject:</B> RE: Python install, 2.4.1<BR></FONT><BR></DIV> <DIV></DIV> <DIV class=Section1> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Wasn’t it always the case that you first had to install pythong and AFTER that install (or re-install) activepython ?<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p>< /SPAN></FONT></P> <DIV> <P style="MARGIN-BOTTOM: 12pt"><FONT face="Times New Roman" color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy">~Raffaele Fragapane<BR>~Lead "I'm sure we can make it work"<BR>~Peerless Camera Company</SPAN></FONT><o:p></o:p></P></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt; TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> <HR tabIndex=-1 align=center width="100%" SIZE=2> </SPAN></FONT></DIV> <P class=MsoNormal style="MARGIN-LEFT: 36pt"><B><FONT face=Tahoma size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN ></FONT></B><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> owner-xsi@(protected) [mailto:owner-xsi@(protected)] <B><SPAN style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>kim aldis<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, April 11, 2005 10:10 AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> XSI@(protected)<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Python install, 2.4.1</SPAN></FONT><o:p></o:p></P></DIV> <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P> <DIV> <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=gray size=2><SPAN style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: Arial">Word of warning; installing the latest version of Python -2.4.1 - isn't a good idea. It pretty much broke Python scripting in xsi in a fairly unpredictable sort of way. 2.4 is good.</SPAN></FONT><o:p></o:p></P></DIV> <DIV> <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV> <TABLE class=MsoNormalTable style="BORDER-RIGHT: gray 1pt solid; BORDER-TOP: gray 1pt solid; MARGIN -LEFT: 36pt; BORDER-LEFT: gray 1pt solid; WIDTH: 52.08%; BORDER-BOTTOM: gray 1pt solid" height=62 cellSpacing=0 cellPadding=0 width="52%" align=left border=1> <TBODY> <TR> <TD style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 0cm; BORDER-BOTTOM: gray 1pt solid" colSpan=2> <P class=MsoNormal style="mso-element: frame"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><IMG id=_x0000_i1025 height=42 src="cid:843194113@(protected)" width=300><o:p></o:p></SPAN></FONT></P></TD></TR> <TR> <TD style="BORDER-RIGHT: gray 1pt solid; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; WIDTH: 50%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none" width="50%"> <P class=MsoNormal style="mso-element: frame"><FONT face="Times New Roman" color=#666666 size=3><SPAN style="FONT-SIZE: 12pt; COLOR: #666666"> </SPAN></FONT><st1 :PersonName w:st="on"><FONT face=Arial color=#666666 size=2><SPAN style="FONT-SIZE: 10pt; COLOR: #666666; FONT-FAMILY: Arial">kim@(protected) .org.uk</SPAN></FONT></st1:PersonName><o:p></o:p></P></TD> <TD style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; WIDTH: 50%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none" vAlign=top width="50%"> <P class=MsoNormal style="TEXT-ALIGN: right; mso-element: frame" align=right><FONT face=Arial color=#666666 size=2><SPAN style="FONT-SIZE: 10pt; COLOR: #666666; FONT-FAMILY: Arial">kim@(protected) -soup.com</SPAN></FONT><FONT color=#666666><SPAN style="COLOR: #666666"> </SPAN></FONT><o:p></o:p></P></TD></TR></TBODY></TABLE> <DIV> <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV></DIV><BR> <P><FONT size=2>---<BR>Incoming mail is certified Virus Free.<BR>Checked by AVG anti-virus system (http://www.grisoft.com).<BR>Version: 6.0.859 / Virus Database: 585 - Release Date: 14-Feb-05 (See http://Feb-05.ora-code.com)<BR></FONT></P> <P><FONT face=Arial size=2></FONT></P><BR> <P><FONT size=2>---<BR>Outgoing mail is certified Virus Free.<BR>Checked by AVG anti-virus system (http://www.grisoft.com).<BR>Version: 6.0.859 / Virus Database: 585 - Release Date: 14-Feb-05 (See http://Feb-05.ora-code.com)<BR></FONT></P> <P><FONT face=Arial size=2></FONT></P></BLOCKQUOTE></BLOCKQUOTE></BODY>< /HTML>
|
|
 |