<HTML dir=ltr><HEAD><TITLE>Re: [Spambayes] Win7 and Outlook 2010 64-bit</TITLE>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904"></HEAD>
<BODY>
<DIV dir=ltr id=idOWAReplyText41086>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial>Mi Mark,</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Thanks for the reply.&nbsp; I'll try playing with that later today.</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Point of clarification: you mentioned that you're on Win7 x64.&nbsp; I'm also running Outlook 2010 x64.&nbsp; Same for you?</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Thanks,</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Greg</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> Mark Hammond [mailto:skippy.hammond@gmail.com]<BR><B>Sent:</B> Mon 6/7/2010 2:49 AM<BR><B>To:</B> Greg Bahns<BR><B>Cc:</B> spambayes@python.org<BR><B>Subject:</B> Re: [Spambayes] Win7 and Outlook 2010 64-bit<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>I got a bit further with this and I've got things partially working.<BR><BR>1) There seems to be an issue with how we detect if we are running as a<BR>console for debugging purposes.&nbsp; In the Outlook2000\addin.py file there<BR>is a block:<BR><BR>try:<BR>&nbsp;&nbsp;&nbsp;&nbsp; win32api.GetConsoleTitle()<BR>except win32api.error:<BR>&nbsp;&nbsp;&nbsp;&nbsp; # No console - if we are running from Python sources,<BR>&nbsp;&nbsp;&nbsp;&nbsp; # redirect to win32traceutil, but if running from a binary<BR><BR>This does *not* enter the exception handler as expected.&nbsp; If you modify<BR>that block so the exception block is always entered, you should get the<BR>logging back and should avoid an error caused by attempting to 'print'<BR>in a GUI program.<BR><BR>2) After this things work for me, except that as with all versions of<BR>SpamBayes, there is a problem filtering IMAP messages - and I didn't get<BR>to test the POP behaviour.<BR><BR>Apart from that the spambayes manager and toolbar items all worked fine.<BR>&nbsp; This was on Windows 7 x64.<BR><BR>HTH,<BR><BR>Mark<BR><BR>On 6/06/2010 8:09 AM, Greg Bahns wrote:<BR>&gt; According the posts I&#8217;ve seen in recent months, there&#8217;s no sign that<BR>&gt; anyone has gotten SpamBayes to work with Outlook 2010 64-bit, so I&#8217;m<BR>&gt; giving it a try.<BR>&gt;<BR>&gt; Here&#8217;s what I&#8217;ve tried:<BR>&gt;<BR>&gt; 1. Install 64-bit Python (<A href="http://www.python.org/download/">http://www.python.org/download/</A>)<BR>&gt;<BR>&gt; a. Python 2.6.5 Windows X86-64 installer<BR>&gt;<BR>&gt; 2. Install Distribute (<A href="http://pypi.python.org/pypi/distribute">http://pypi.python.org/pypi/distribute</A>)<BR>&gt;<BR>&gt; 3. Install 64-bit pywin32 (<A href="http://sourceforge.net/projects/pywin32/files/">http://sourceforge.net/projects/pywin32/files/</A>)<BR>&gt;<BR>&gt; a. pywin32-214.win-amd64-py2.6.exe<BR>&gt;<BR>&gt; 4. Installed Spambayes from source<BR>&gt;<BR>&gt; a. Download 1.1a6 source<BR>&gt;<BR>&gt; b. Extracted to C:\spambayes-1.1a6<BR>&gt;<BR>&gt; c. python setup.py install<BR>&gt;<BR>&gt; d. It apparently installed to C:\Program<BR>&gt; Files\Python26\Lib\site-packages\spambayes-1.1a6-py2.6.egg<BR>&gt;<BR>&gt; 5. permissions to write in spambayes Program Files folder<BR>&gt;<BR>&gt; a. cd \Program Files\Python26\Lib\site-packages\spambayes-1.1a6-py2.6.egg<BR>&gt;<BR>&gt; b. icacls spambayes /grant users:F /T<BR>&gt;<BR>&gt; 6. Install Outlook add-in<BR>&gt;<BR>&gt; a. Cd \spambayes-1.1a6\Outlook2000<BR>&gt;<BR>&gt; b. Python addin.py<BR>&gt;<BR>&gt; Everything appears to have executed successfully, but when I start<BR>&gt; Outlook and view the COM add-ins, SpamBayes is disabled. It says &#8220;Not<BR>&gt; loaded. A runtime error occurred during the loading of the COM Add-in.&#8221;<BR>&gt;<BR>&gt; I&#8217;ve looked for more details on the error in several places:<BR>&gt;<BR>&gt; 1. C:\Users\greg\AppData\Roaming\SpamBayes<BR>&gt;<BR>&gt; 2. C:\Users\greg\AppData\Local\SpamBayes<BR>&gt;<BR>&gt; 3. NT Event Log<BR>&gt;<BR>&gt; 4. Python Trace Collector in PythonWIn<BR>&gt;<BR>&gt; I was really hopeful that useful troubleshooting info would appear in<BR>&gt; PythonWin, but nothing, which makes me think Outlook is probably failing<BR>&gt; to load the Add-in at all. Any suggestions on what I can try from here?<BR>&gt;<BR>&gt; Thanks,<BR>&gt;<BR>&gt; Greg<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; SpamBayes@python.org<BR>&gt; <A href="http://mail.python.org/mailman/listinfo/spambayes">http://mail.python.org/mailman/listinfo/spambayes</A><BR>&gt; Info/Unsubscribe: <A href="http://mail.python.org/mailman/listinfo/spambayes">http://mail.python.org/mailman/listinfo/spambayes</A><BR>&gt; Check the FAQ before asking: <A href="http://spambayes.sf.net/faq.html">http://spambayes.sf.net/faq.html</A><BR><BR><BR></FONT></P></DIV></BODY></HTML>