To clarify, I went into the COM manager, and saw that it read that a runtime error occurred during the loading of it.
> -----Original Message----- > From: Ocean [mailto:oc...@cobaltnight.com] > Sent: Tuesday, June 08, 2010 9:30 AM > To: 'mhamm...@skippinet.com.au' > Cc: 'spambayes@python.org' > Subject: RE: [Spambayes] Win7 and Outlook 2010 64-bit > > > I tried REM'ing out those three lines (from "try" to "except"). That allowed Outlook > to start without the customary error, which I was very happy to see. > > However, the toolbar buttons don't work. When I try to click on the main > SpamBayes button, nothing happens. There is also no log file in my temp directory. > > > A few things to note: > > 1. I did not uninstall and re-install the add-in after making that change to the source. > > 2. I'm running 1.1a4 from source. > > 3. I still have the changes I told you about before, such as making sure the logging goes to > an actual file even though it's running from source. > > 4. I'm running Outlook 2007 32-bit on Win 7 x64. > > > If I made a mistake anywhere above in my procedure, please let me know. > Otherwise, I'd appreciate any advice you have on rectifying the current predicament. :) > > > > > > > -----Original Message----- > > From: spambayes-bounces+ocean=cobaltnight....@python.org [mailto:spambayes- > > bounces+ocean=cobaltnight....@python.org] On Behalf Of Mark Hammond > > Sent: Monday, June 07, 2010 2:50 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 _______________________________________________ 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