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