<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> </DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Thanks for the reply. I'll try playing with that later today.</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Point of clarification: you mentioned that you're on Win7 x64. I'm also running Outlook 2010 x64. Same for you?</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT> </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. In the Outlook2000\addin.py file there<BR>is a block:<BR><BR>try:<BR> win32api.GetConsoleTitle()<BR>except win32api.error:<BR> # No console - if we are running from Python sources,<BR> # redirect to win32traceutil, but if running from a binary<BR><BR>This does *not* enter the exception handler as expected. 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> 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>> According the posts I’ve seen in recent months, there’s no sign that<BR>> anyone has gotten SpamBayes to work with Outlook 2010 64-bit, so I’m<BR>> giving it a try.<BR>><BR>> Here’s what I’ve tried:<BR>><BR>> 1. Install 64-bit Python (<A href="http://www.python.org/download/">http://www.python.org/download/</A>)<BR>><BR>> a. Python 2.6.5 Windows X86-64 installer<BR>><BR>> 2. Install Distribute (<A href="http://pypi.python.org/pypi/distribute">http://pypi.python.org/pypi/distribute</A>)<BR>><BR>> 3. Install 64-bit pywin32 (<A href="http://sourceforge.net/projects/pywin32/files/">http://sourceforge.net/projects/pywin32/files/</A>)<BR>><BR>> a. pywin32-214.win-amd64-py2.6.exe<BR>><BR>> 4. Installed Spambayes from source<BR>><BR>> a. Download 1.1a6 source<BR>><BR>> b. Extracted to C:\spambayes-1.1a6<BR>><BR>> c. python setup.py install<BR>><BR>> d. It apparently installed to C:\Program<BR>> Files\Python26\Lib\site-packages\spambayes-1.1a6-py2.6.egg<BR>><BR>> 5. permissions to write in spambayes Program Files folder<BR>><BR>> a. cd \Program Files\Python26\Lib\site-packages\spambayes-1.1a6-py2.6.egg<BR>><BR>> b. icacls spambayes /grant users:F /T<BR>><BR>> 6. Install Outlook add-in<BR>><BR>> a. Cd \spambayes-1.1a6\Outlook2000<BR>><BR>> b. Python addin.py<BR>><BR>> Everything appears to have executed successfully, but when I start<BR>> Outlook and view the COM add-ins, SpamBayes is disabled. It says “Not<BR>> loaded. A runtime error occurred during the loading of the COM Add-in.”<BR>><BR>> I’ve looked for more details on the error in several places:<BR>><BR>> 1. C:\Users\greg\AppData\Roaming\SpamBayes<BR>><BR>> 2. C:\Users\greg\AppData\Local\SpamBayes<BR>><BR>> 3. NT Event Log<BR>><BR>> 4. Python Trace Collector in PythonWIn<BR>><BR>> I was really hopeful that useful troubleshooting info would appear in<BR>> PythonWin, but nothing, which makes me think Outlook is probably failing<BR>> to load the Add-in at all. Any suggestions on what I can try from here?<BR>><BR>> Thanks,<BR>><BR>> Greg<BR>><BR>><BR>><BR>> _______________________________________________<BR>> SpamBayes@python.org<BR>> <A href="http://mail.python.org/mailman/listinfo/spambayes">http://mail.python.org/mailman/listinfo/spambayes</A><BR>> Info/Unsubscribe: <A href="http://mail.python.org/mailman/listinfo/spambayes">http://mail.python.org/mailman/listinfo/spambayes</A><BR>> 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>