Re: Any thoughts on this exception?
Mark Hammond <[email protected]> Thu, 14 Dec 2023 11:29:29 -0500
| Newsgroups | gmane.mail.spam.spambayes.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============3275261581201988135== Content-Type: multipart/alternative; boundary="------------4fIlBCLlM1pnwgD0MoGh6iZB" Content-Language: en-US This is a multi-part message in MIME format. --------------4fIlBCLlM1pnwgD0MoGh6iZB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit That exception looks more like we can't access the message store rather than a 64/32 bit mismatch. It may be that you need to enable MAPI access or something similar but I'm afraid I've never used newer versions of office. Googling for MAPI_E_INVALID_ENTRYID with Office 365 is probably the best path forward. Cheers, Mark On 2023-12-13 11:37 p.m., John Cherney wrote: > > I’ve made some progress. I’ve cloned smontanaro’s spambayes repo and > used that as a starting point. I think I’ve gotten most, of the 2.x to > 3.x conversions. I have the Add-in registered. I have the Add-ins menu > showing up. But (and there has to be a ‘but’) I can’t seem to get the > win32com mapi to read anything meaningful. I haven’t seen anything > helpful in my Google searches. I’m throwing this out there hoping that > someone has seen something like this and can get me unstuck. > > Loaded bayes database from 'C:\<redacted>\default_bayes_database.fs' > > Loaded message database from 'C:\<redacted>\default_message_database.fs' > > Bayes database initialized with 0 spam and 0 good messages > > SpamBayes Outlook Addin Version 2.0a1 (Aug 25, 2022) from source > > on Windows 10.0.19045 () > > using Python 3.12.0 (tags/v3.12.0:0fb18b0, Oct 2 2023, 13:03:39) [MSC > v.1935 64 bit (AMD64)] > > Log created Wed Dec 13 22:53:24 2023 > > *** SpamBayes is NOT enabled, so will not filter incoming mail. *** > > Creating new SpamBayes toolbar to host our buttons > > Error finding the MAPI folders for a folder switch event > > ERROR: 'There appears to be a problem with the SpamBayes > configuration\r\n\r\nPlease select the SpamBayes manager, and run > the\r\nConfiguration Wizard to reconfigure the filter.' > > Traceback (most recent call last): > > File "C:\<redacted>\spambayes\Outlook2000\msgstore.py", line 347, in > GetFolder > > folder = self._OpenEntry(folder_id) > > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > > File "C:\<redacted>\spambayes\Outlook2000\msgstore.py", line 274, in > _OpenEntry > > store = self._GetMessageStore(store_id) > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > File "C:\<redacted>\spambayes\Outlook2000\msgstore.py", line 247, in > _GetMessageStore > > store = self.session.OpenMsgStore( > > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > > pywintypes.com_error: (-2147221241, 'OLE error 0x80040107', None, None) > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > > File "C:\<redacted>\spambayes\Outlook2000\addin.py", line 1178, in > OnFolderSwitch > > mapi_folder = self.manager.message_store.GetFolder(outlook_folder) > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > File "C:\<redacted>\spambayes\Outlook2000\msgstore.py", line 355, in > GetFolder > > raise MsgStoreExceptionFromCOMException(details) > > msgstore.MsgStoreException: MsgStoreException: Exception 0x-7ffbfef9 > (MAPI_E_INVALID_ENTRYID): OLE error 0x80040107 > > ERROR: 'There appears to be a problem with the SpamBayes > configuration\r\n\r\nPlease select the SpamBayes manager, and run > the\r\nConfiguration Wizard to reconfigure the filter.' > > One thing I’m suspicious of (and I hope I’m wrong) is if the problem > is the win32 related modules. I’m doing this on a 64bit machine, > trying to get this to work with the 64bit install of Outlook (Office > 365). Could that be my problem? Should I be looking for win64 related > modules? (Do any exist? I didn’t see any on pypi.org? Or is that also > a wrong direction?) At this point, I don’t know enough about COM or > 32bit vs 64bit to know what to try next. > > Thanks in advance, > > jwc > > > _______________________________________________ > spambayes-dev mailing list > [email protected] > https://mail.python.org/mailman/listinfo/spambayes-dev --------------4fIlBCLlM1pnwgD0MoGh6iZB Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <p>That exception looks more like we can't access the message store rather than a 64/32 bit mismatch. It may be that you need to enable MAPI access or something similar but I'm afraid I've never used newer versions of office. Googling for MAPI_E_INVALID_ENTRYID with Office 365 is probably the best path forward.<br> </p> <p>Cheers,</p> <p>Mark<br> </p> <div class="moz-cite-prefix">On 2023-12-13 11:37 p.m., John Cherney wrote:<br> </div> <blockquote type="cite" cite="mid:CY8PR11MB73374734729BF5EA49694CC4BC8CA-+TBpIqyXpGHJ1KV99BRGNZPPoyLQLiKMvxpqHgZTriW3zl9H0oFU5g@public.gmane.org"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="Generator" content="Microsoft Word 15 (filtered medium)"> <style>@font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; font-size:11.0pt; font-family:"Calibri",sans-serif; mso-ligatures:standardcontextual;}span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri",sans-serif; color:windowtext;}.MsoChpDefault {mso-style-type:export-only; font-family:"Calibri",sans-serif;}div.WordSection1 {page:WordSection1;}</style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1" /> </o:shapelayout></xml><![endif]--> <div class="WordSection1"> <p class="MsoNormal">I’ve made some progress. I’ve cloned smontanaro’s spambayes repo and used that as a starting point. I think I’ve gotten most, of the 2.x to 3.x conversions. I have the Add-in registered. I have the Add-ins menu showing up. But (and there has to be a ‘but’) I can’t seem to get the win32com mapi to read anything meaningful. I haven’t seen anything helpful in my Google searches. I’m throwing this out there hoping that someone has seen something like this and can get me unstuck. <o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">Loaded bayes database from 'C:\<redacted>\default_bayes_database.fs'<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">Loaded message database from 'C:\<redacted>\default_message_database.fs'<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">Bayes database initialized with 0 spam and 0 good messages<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">SpamBayes Outlook Addin Version 2.0a1 (Aug 25, 2022) from source<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">on Windows 10.0.19045 ()<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">using Python 3.12.0 (tags/v3.12.0:0fb18b0, Oct 2 2023, 13:03:39) [MSC v.1935 64 bit (AMD64)]<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">Log created Wed Dec 13 22:53:24 2023<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">*** SpamBayes is NOT enabled, so will not filter incoming mail. ***<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">Creating new SpamBayes toolbar to host our buttons<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">Error finding the MAPI folders for a folder switch event<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">ERROR: 'There appears to be a problem with the SpamBayes configuration\r\n\r\nPlease select the SpamBayes manager, and run the\r\nConfiguration Wizard to reconfigure the filter.'<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">Traceback (most recent call last):<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""> File "C:\<redacted>\spambayes\Outlook2000\msgstore.py", line 347, in GetFolder<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""> folder = self._OpenEntry(folder_id)<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""> ^^^^^^^^^^^^^^^^^^^^^^^^^^<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""> File "C:\<redacted>\spambayes\Outlook2000\msgstore.py", line 274, in _OpenEntry<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""> store = self._GetMessageStore(store_id)<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""> File "C:\<redacted>\spambayes\Outlook2000\msgstore.py", line 247, in _GetMessageStore<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""> store = self.session.OpenMsgStore(<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""> ^^^^^^^^^^^^^^^^^^^^^^^^^^<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">pywintypes.com_error: (-2147221241, 'OLE error 0x80040107', None, None)<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">During handling of the above exception, another exception occurred:<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">Traceback (most recent call last):<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""> File "C:\<redacted>\spambayes\Outlook2000\addin.py", line 1178, in OnFolderSwitch<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""> mapi_folder = self.manager.message_store.GetFolder(outlook_folder)<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""> File "C:\<redacted>\spambayes\Outlook2000\msgstore.py", line 355, in GetFolder<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""> raise MsgStoreExceptionFromCOMException(details)<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">msgstore.MsgStoreException: MsgStoreException: Exception 0x-7ffbfef9 (MAPI_E_INVALID_ENTRYID): OLE error 0x80040107<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">ERROR: 'There appears to be a problem with the SpamBayes configuration\r\n\r\nPlease select the SpamBayes manager, and run the\r\nConfiguration Wizard to reconfigure the filter.'<o:p></o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">One thing I’m suspicious of (and I hope I’m wrong) is if the problem is the win32 related modules. I’m doing this on a 64bit machine, trying to get this to work with the 64bit install of Outlook (Office 365). Could that be my problem? Should I be looking for win64 related modules? (Do any exist? I didn’t see any on pypi.org? Or is that also a wrong direction?) At this point, I don’t know enough about COM or 32bit vs 64bit to know what to try next. <o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Thanks in advance,<o:p></o:p></p> <p class="MsoNormal">jwc<o:p></o:p></p> </div> <br> <fieldset class="moz-mime-attachment-header"></fieldset> <pre wrap="" class="moz-quote-pre">_______________________________________________ spambayes-dev mailing list <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> <a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/spambayes-dev">https://mail.python.org/mailman/listinfo/spambayes-dev</a> </pre> </blockquote> </body> </html> --------------4fIlBCLlM1pnwgD0MoGh6iZB-- --===============3275261581201988135== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ spambayes-dev mailing list [email protected] https://mail.python.org/mailman/listinfo/spambayes-dev --===============3275261581201988135==--