From kirebrow at yahoo.com Wed Aug 24 10:34:18 2022 From: kirebrow at yahoo.com (Erik M. Brown) Date: Wed, 24 Aug 2022 10:34:18 -0400 Subject: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) References: <009d01d8b7c6$98eff560$cacfe020$.ref@yahoo.com> Message-ID: <009d01d8b7c6$98eff560$cacfe020$@yahoo.com> Hey all! Not sure if anyone is still reading this, but I'm running into an error when attempting to run "setup_all.py", the py2exe setup script, I get the following: ImportError: No module named spambayes.resources (line 12 of setup_all.py) I'm able to run Spambayes from these source files in Outlook and have the correct python version, pywin32, as well as py2exe. Any idea on how to resolve this module import error? Thank you! Erik Brown From matt at mondoinfo.com Wed Aug 24 19:36:50 2022 From: matt at mondoinfo.com (Matthew Dixon Cowles) Date: Wed, 24 Aug 2022 18:36:50 -0500 (CDT) Subject: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) In-Reply-To: <009d01d8b7c6$98eff560$cacfe020$@yahoo.com> References: <009d01d8b7c6$98eff560$cacfe020$.ref@yahoo.com> <009d01d8b7c6$98eff560$cacfe020$@yahoo.com> Message-ID: <1661380136.07.967@mint-julep.mondoinfo.com> Eric, > Not sure if anyone is still reading this, I am. And I still use SpamBayes every day. > but I'm running into an error when attempting to run > "setup_all.py", the py2exe setup script, I get the following: > ImportError: No module named spambayes.resources (line 12 of > setup_all.py) But I don't install it that way. I just copy the files. > I'm able to run Spambayes from these source files in Outlook and > have the correct python version, pywin32, as well as py2exe. Here are a couple of things I'd check: Are you sure that you're using a version of Python that's contemporaneous with the packaging? You should be able to find the version of spambayes that setup_all.py is trying to use. Does it in fact have a directory called resources? Or is it possible that it's finding a directory called spambayes that's not what you want it to find? Regards, Matt From skip.montanaro at gmail.com Wed Aug 24 19:40:35 2022 From: skip.montanaro at gmail.com (Skip Montanaro) Date: Wed, 24 Aug 2022 18:40:35 -0500 Subject: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) In-Reply-To: <1661380136.07.967@mint-julep.mondoinfo.com> References: <009d01d8b7c6$98eff560$cacfe020$.ref@yahoo.com> <009d01d8b7c6$98eff560$cacfe020$@yahoo.com> <1661380136.07.967@mint-julep.mondoinfo.com> Message-ID: > > You should be able to find the version of spambayes that setup_all.py > is trying to use. Does it in fact have a directory called resources? > At the top-level spambayes directory, there is a spambayes/windows/setup_all.py. That suggests to me that something about the way the Windows package is built equates the spambayes/windows directory with spambayes. That's about all I know. I have never done anything with Windows development. Skip -------------- next part -------------- An HTML attachment was scrubbed... URL: From kirebrow at yahoo.com Wed Aug 24 23:48:31 2022 From: kirebrow at yahoo.com (Erik M. Brown) Date: Wed, 24 Aug 2022 23:48:31 -0400 Subject: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) In-Reply-To: <1661380136.07.967@mint-julep.mondoinfo.com> References: <009d01d8b7c6$98eff560$cacfe020$.ref@yahoo.com> <009d01d8b7c6$98eff560$cacfe020$@yahoo.com> <1661380136.07.967@mint-julep.mondoinfo.com> Message-ID: <01b301d8b835$8b9eb080$a2dc1180$@yahoo.com> Thank you all for the quick replys! So I'm not a dev, more of a power user, and I just added the python folder and script folder to the windows path. I then ran it in a CMD prompt, python setup_all.py, and it actually found the resources it needed. However, it ended up throwing a wild error: ImportError: No module named 00062FFF-0000-C000-000000000046x0x9x0 LOL! BTW Matthew, what do you mean by copy the files? Do you mean the source files and you manually install the com addin? Please let me know what you mean. = ) Take care, Erik Brown -----Original Message----- From: Matthew Dixon Cowles [mailto:matt at mondoinfo.com] Sent: Wednesday, August 24, 2022 7:37 PM To: Erik M. Brown Cc: spambayes-dev at python.org Subject: Re: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) Eric, > Not sure if anyone is still reading this, I am. And I still use SpamBayes every day. > but I'm running into an error when attempting to run "setup_all.py", > the py2exe setup script, I get the following: > ImportError: No module named spambayes.resources (line 12 of > setup_all.py) But I don't install it that way. I just copy the files. > I'm able to run Spambayes from these source files in Outlook and have > the correct python version, pywin32, as well as py2exe. Here are a couple of things I'd check: Are you sure that you're using a version of Python that's contemporaneous with the packaging? You should be able to find the version of spambayes that setup_all.py is trying to use. Does it in fact have a directory called resources? Or is it possible that it's finding a directory called spambayes that's not what you want it to find? Regards, Matt From skippy.hammond at gmail.com Thu Aug 25 00:02:38 2022 From: skippy.hammond at gmail.com (Mark Hammond) Date: Thu, 25 Aug 2022 14:02:38 +1000 Subject: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) In-Reply-To: <01b301d8b835$8b9eb080$a2dc1180$@yahoo.com> References: <009d01d8b7c6$98eff560$cacfe020$.ref@yahoo.com> <009d01d8b7c6$98eff560$cacfe020$@yahoo.com> <1661380136.07.967@mint-julep.mondoinfo.com> <01b301d8b835$8b9eb080$a2dc1180$@yahoo.com> Message-ID: <4fe865cc-6be7-5756-825b-0908a6e631b0@gmail.com> It looks like that's telling you Outlook 2000 isn't installed, which is probably expected. See also https://mail.python.org/pipermail/spambayes-dev/2004-July/002938.html But that's probably out of date too - you probably need to find the GUIDs in the registry editor under Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib, or in Pythonwin's "com browser". (Sadly I don't have office or outlook installed here, so can't tell you exactly what you need) Mark On 25/08/2022 1:48 pm, Erik M. Brown via spambayes-dev wrote: > Thank you all for the quick replys! So I'm not a dev, more of a power user, and I just added the python folder and script folder to the windows path. I then ran it in a CMD prompt, python setup_all.py, and it actually found the resources it needed. However, it ended up throwing a wild error: > > ImportError: No module named 00062FFF-0000-C000-000000000046x0x9x0 > > LOL! BTW Matthew, what do you mean by copy the files? Do you mean the source files and you manually install the com addin? > > Please let me know what you mean. = ) > > Take care, > > Erik Brown > > > -----Original Message----- > From: Matthew Dixon Cowles [mailto:matt at mondoinfo.com] > Sent: Wednesday, August 24, 2022 7:37 PM > To: Erik M. Brown > Cc: spambayes-dev at python.org > Subject: Re: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) > > Eric, > >> Not sure if anyone is still reading this, > > I am. And I still use SpamBayes every day. > >> but I'm running into an error when attempting to run "setup_all.py", >> the py2exe setup script, I get the following: > >> ImportError: No module named spambayes.resources (line 12 of >> setup_all.py) > > But I don't install it that way. I just copy the files. > >> I'm able to run Spambayes from these source files in Outlook and have >> the correct python version, pywin32, as well as py2exe. > > Here are a couple of things I'd check: > > Are you sure that you're using a version of Python that's contemporaneous with the packaging? > > You should be able to find the version of spambayes that setup_all.py is trying to use. Does it in fact have a directory called resources? > Or is it possible that it's finding a directory called spambayes that's not what you want it to find? > > Regards, > Matt > > _______________________________________________ > spambayes-dev mailing list > spambayes-dev at python.org > https://mail.python.org/mailman/listinfo/spambayes-dev From matt at mondoinfo.com Thu Aug 25 00:08:23 2022 From: matt at mondoinfo.com (Matthew Dixon Cowles) Date: Wed, 24 Aug 2022 23:08:23 -0500 (CDT) Subject: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) In-Reply-To: <01b301d8b835$8b9eb080$a2dc1180$@yahoo.com> References: <009d01d8b7c6$98eff560$cacfe020$.ref@yahoo.com> <009d01d8b7c6$98eff560$cacfe020$@yahoo.com> <1661380136.07.967@mint-julep.mondoinfo.com> <01b301d8b835$8b9eb080$a2dc1180$@yahoo.com> Message-ID: <1661399380.69.967@mint-julep.mondoinfo.com> Erik, > BTW Matthew, what do you mean by copy the files? Do you mean the > source files and you manually install the com addin? I do mean copying the Python source files. I'm not much of a Windows guy so I have only the most general idea of what a com addin is. Regards, Matt From kirebrow at yahoo.com Thu Aug 25 00:56:19 2022 From: kirebrow at yahoo.com (Erik M. Brown) Date: Thu, 25 Aug 2022 00:56:19 -0400 Subject: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) In-Reply-To: <1661399380.69.967@mint-julep.mondoinfo.com> References: <009d01d8b7c6$98eff560$cacfe020$.ref@yahoo.com> <009d01d8b7c6$98eff560$cacfe020$@yahoo.com> <1661380136.07.967@mint-julep.mondoinfo.com> <01b301d8b835$8b9eb080$a2dc1180$@yahoo.com> <1661399380.69.967@mint-julep.mondoinfo.com> Message-ID: <01b501d8b83f$05762970$10627c50$@yahoo.com> Roger that, I was assuming you were using the Outlook add-in. Take care, Erik Brown -----Original Message----- From: Matthew Dixon Cowles [mailto:matt at mondoinfo.com] Sent: Thursday, August 25, 2022 12:08 AM To: Erik M. Brown Cc: spambayes-dev at python.org Subject: RE: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) Erik, > BTW Matthew, what do you mean by copy the files? Do you mean the > source files and you manually install the com addin? I do mean copying the Python source files. I'm not much of a Windows guy so I have only the most general idea of what a com addin is. Regards, Matt From kirebrow at yahoo.com Thu Aug 25 01:04:45 2022 From: kirebrow at yahoo.com (Erik M. Brown) Date: Thu, 25 Aug 2022 01:04:45 -0400 Subject: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) In-Reply-To: <4fe865cc-6be7-5756-825b-0908a6e631b0@gmail.com> References: <009d01d8b7c6$98eff560$cacfe020$.ref@yahoo.com> <009d01d8b7c6$98eff560$cacfe020$@yahoo.com> <1661380136.07.967@mint-julep.mondoinfo.com> <01b301d8b835$8b9eb080$a2dc1180$@yahoo.com> <4fe865cc-6be7-5756-825b-0908a6e631b0@gmail.com> Message-ID: <01b601d8b840$32ebedd0$98c3c970$@yahoo.com> Bravo Mark...LOL! So I actually found my old HD with Windows XP and Outlook 2003 installed, and I'm booting from it, testing all of this. Because I'm running Outlook 2003, the link you sent actually worked. I changed it to the following: typelibs = [ ('{00062FFF-0000-0000-C000-000000000046}', 0, 9, 2), ('{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}', 0, 2, 2), ('{AC0714F2-3D04-11D1-AE7D-00A0C90F26F4}', 0, 1, 0), ] When I ran setup_all.py this time, it appeared that all of the files were then in the build and distribution folders. Next up was install Inno Setup from around that time, and I ran spambayes.iss. So close, but no cigar because I got the following error: Compiler Error Line 125: Column 13: - [Error] (37:13) Unknown identifier 'convert_db' The code looks like this in the spambayes.iss file: function ConvertDatabase () : Boolean; begin Result : =convert_db ; end; Any ideas? Take care, Erik Brown -----Original Message----- From: Mark Hammond [mailto:skippy.hammond at gmail.com] Sent: Thursday, August 25, 2022 12:03 AM To: Erik M. Brown Cc: spambayes-dev at python.org Subject: Re: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) It looks like that's telling you Outlook 2000 isn't installed, which is probably expected. See also https://mail.python.org/pipermail/spambayes-dev/2004-July/002938.html But that's probably out of date too - you probably need to find the GUIDs in the registry editor under Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib, or in Pythonwin's "com browser". (Sadly I don't have office or outlook installed here, so can't tell you exactly what you need) Mark On 25/08/2022 1:48 pm, Erik M. Brown via spambayes-dev wrote: > Thank you all for the quick replys! So I'm not a dev, more of a power user, and I just added the python folder and script folder to the windows path. I then ran it in a CMD prompt, python setup_all.py, and it actually found the resources it needed. However, it ended up throwing a wild error: > > ImportError: No module named 00062FFF-0000-C000-000000000046x0x9x0 > > LOL! BTW Matthew, what do you mean by copy the files? Do you mean the source files and you manually install the com addin? > > Please let me know what you mean. = ) > > Take care, > > Erik Brown > > > -----Original Message----- > From: Matthew Dixon Cowles [mailto:matt at mondoinfo.com] > Sent: Wednesday, August 24, 2022 7:37 PM > To: Erik M. Brown > Cc: spambayes-dev at python.org > Subject: Re: [spambayes-dev] ImportError: No module named > spambayes.resources (line 12 of setup_all.py) > > Eric, > >> Not sure if anyone is still reading this, > > I am. And I still use SpamBayes every day. > >> but I'm running into an error when attempting to run "setup_all.py", >> the py2exe setup script, I get the following: > >> ImportError: No module named spambayes.resources (line 12 of >> setup_all.py) > > But I don't install it that way. I just copy the files. > >> I'm able to run Spambayes from these source files in Outlook and have >> the correct python version, pywin32, as well as py2exe. > > Here are a couple of things I'd check: > > Are you sure that you're using a version of Python that's contemporaneous with the packaging? > > You should be able to find the version of spambayes that setup_all.py is trying to use. Does it in fact have a directory called resources? > Or is it possible that it's finding a directory called spambayes that's not what you want it to find? > > Regards, > Matt > > _______________________________________________ > spambayes-dev mailing list > spambayes-dev at python.org > https://mail.python.org/mailman/listinfo/spambayes-dev From skippy.hammond at gmail.com Thu Aug 25 01:12:49 2022 From: skippy.hammond at gmail.com (Mark Hammond) Date: Thu, 25 Aug 2022 15:12:49 +1000 Subject: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) In-Reply-To: <01b601d8b840$32ebedd0$98c3c970$@yahoo.com> References: <009d01d8b7c6$98eff560$cacfe020$.ref@yahoo.com> <009d01d8b7c6$98eff560$cacfe020$@yahoo.com> <1661380136.07.967@mint-julep.mondoinfo.com> <01b301d8b835$8b9eb080$a2dc1180$@yahoo.com> <4fe865cc-6be7-5756-825b-0908a6e631b0@gmail.com> <01b601d8b840$32ebedd0$98c3c970$@yahoo.com> Message-ID: <33d677d3-34b1-45a9-0860-de9107edc51a@gmail.com> I'm afraid I have no idea about that. It looks like I don't even have the latest spambayes source tree here, and don't even have svn to update it! My version does seem to correctly declare "convert_db" as a boolean, but I can't remember enough about inno to know what might be going wrong. Spambayes was always capable of running from source, so in the first instance maybe try ignoring inno and follow the instructions in Outlook2000/README.txt? HTH, Mark On 25/08/2022 3:04 pm, Erik M. Brown via spambayes-dev wrote: > Bravo Mark...LOL! > > So I actually found my old HD with Windows XP and Outlook 2003 installed, and I'm booting from it, testing all of this. > > Because I'm running Outlook 2003, the link you sent actually worked. I changed it to the following: > > typelibs = [ > ('{00062FFF-0000-0000-C000-000000000046}', 0, 9, 2), > ('{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}', 0, 2, 2), > ('{AC0714F2-3D04-11D1-AE7D-00A0C90F26F4}', 0, 1, 0), > ] > > When I ran setup_all.py this time, it appeared that all of the files were then in the build and distribution folders. Next up was install Inno Setup from around that time, and I ran spambayes.iss. > > So close, but no cigar because I got the following error: > > Compiler Error > Line 125: > Column 13: - [Error] (37:13) Unknown identifier 'convert_db' > > The code looks like this in the spambayes.iss file: > > function ConvertDatabase () : Boolean; > begin > Result : =convert_db ; > end; > > Any ideas? > > Take care, > > Erik Brown > > > -----Original Message----- > From: Mark Hammond [mailto:skippy.hammond at gmail.com] > Sent: Thursday, August 25, 2022 12:03 AM > To: Erik M. Brown > Cc: spambayes-dev at python.org > Subject: Re: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) > > It looks like that's telling you Outlook 2000 isn't installed, which is probably expected. > > See also > https://mail.python.org/pipermail/spambayes-dev/2004-July/002938.html > > But that's probably out of date too - you probably need to find the GUIDs in the registry editor under Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib, or in Pythonwin's "com browser". > > (Sadly I don't have office or outlook installed here, so can't tell you exactly what you need) > > Mark > > On 25/08/2022 1:48 pm, Erik M. Brown via spambayes-dev wrote: >> Thank you all for the quick replys! So I'm not a dev, more of a power user, and I just added the python folder and script folder to the windows path. I then ran it in a CMD prompt, python setup_all.py, and it actually found the resources it needed. However, it ended up throwing a wild error: >> >> ImportError: No module named 00062FFF-0000-C000-000000000046x0x9x0 >> >> LOL! BTW Matthew, what do you mean by copy the files? Do you mean the source files and you manually install the com addin? >> >> Please let me know what you mean. = ) >> >> Take care, >> >> Erik Brown >> >> >> -----Original Message----- >> From: Matthew Dixon Cowles [mailto:matt at mondoinfo.com] >> Sent: Wednesday, August 24, 2022 7:37 PM >> To: Erik M. Brown >> Cc: spambayes-dev at python.org >> Subject: Re: [spambayes-dev] ImportError: No module named >> spambayes.resources (line 12 of setup_all.py) >> >> Eric, >> >>> Not sure if anyone is still reading this, >> >> I am. And I still use SpamBayes every day. >> >>> but I'm running into an error when attempting to run "setup_all.py", >>> the py2exe setup script, I get the following: >> >>> ImportError: No module named spambayes.resources (line 12 of >>> setup_all.py) >> >> But I don't install it that way. I just copy the files. >> >>> I'm able to run Spambayes from these source files in Outlook and have >>> the correct python version, pywin32, as well as py2exe. >> >> Here are a couple of things I'd check: >> >> Are you sure that you're using a version of Python that's contemporaneous with the packaging? >> >> You should be able to find the version of spambayes that setup_all.py is trying to use. Does it in fact have a directory called resources? >> Or is it possible that it's finding a directory called spambayes that's not what you want it to find? >> >> Regards, >> Matt >> >> _______________________________________________ >> spambayes-dev mailing list >> spambayes-dev at python.org >> https://mail.python.org/mailman/listinfo/spambayes-dev > > _______________________________________________ > spambayes-dev mailing list > spambayes-dev at python.org > https://mail.python.org/mailman/listinfo/spambayes-dev From kirebrow at yahoo.com Thu Aug 25 01:18:21 2022 From: kirebrow at yahoo.com (Erik Brown) Date: Thu, 25 Aug 2022 01:18:21 -0400 Subject: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) In-Reply-To: <33d677d3-34b1-45a9-0860-de9107edc51a@gmail.com> References: <009d01d8b7c6$98eff560$cacfe020$.ref@yahoo.com> <009d01d8b7c6$98eff560$cacfe020$@yahoo.com> <1661380136.07.967@mint-julep.mondoinfo.com> <01b301d8b835$8b9eb080$a2dc1180$@yahoo.com> <4fe865cc-6be7-5756-825b-0908a6e631b0@gmail.com> <01b601d8b840$32ebedd0$98c3c970$@yahoo.com> <33d677d3-34b1-45a9-0860-de9107edc51a@gmail.com> Message-ID: <3043821b-e06d-4e9f-a687-eb404f823711@yahoo.com> Ok, thanks again for fast reply Mark? I will stop here attempting to build binary. I now know how to install from source on different machines thanks you all. ?Erik M. Brown Get BlueMail for Android ? On Aug 25, 2022, 1:12 AM, at 1:12 AM, Mark Hammond wrote: >I'm afraid I have no idea about that. It looks like I don't even have >the latest spambayes source tree here, and don't even have svn to >update >it! My version does seem to correctly declare "convert_db" as a >boolean, >but I can't remember enough about inno to know what might be going >wrong. > >Spambayes was always capable of running from source, so in the first >instance maybe try ignoring inno and follow the instructions in >Outlook2000/README.txt? > >HTH, > >Mark > >On 25/08/2022 3:04 pm, Erik M. Brown via spambayes-dev wrote: >> Bravo Mark...LOL! >> >> So I actually found my old HD with Windows XP and Outlook 2003 >installed, and I'm booting from it, testing all of this. >> >> Because I'm running Outlook 2003, the link you sent actually worked. >I changed it to the following: >> >> typelibs = [ >> ('{00062FFF-0000-0000-C000-000000000046}', 0, 9, 2), >> ('{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}', 0, 2, 2), >> ('{AC0714F2-3D04-11D1-AE7D-00A0C90F26F4}', 0, 1, 0), >> ] >> >> When I ran setup_all.py this time, it appeared that all of the files >were then in the build and distribution folders. Next up was install >Inno Setup from around that time, and I ran spambayes.iss. >> >> So close, but no cigar because I got the following error: >> >> Compiler Error >> Line 125: >> Column 13: - [Error] (37:13) Unknown identifier 'convert_db' >> >> The code looks like this in the spambayes.iss file: >> >> function ConvertDatabase () : Boolean; >> begin >> Result : =convert_db ; >> end; >> >> Any ideas? >> >> Take care, >> >> Erik Brown >> >> >> -----Original Message----- >> From: Mark Hammond [mailto:skippy.hammond at gmail.com] >> Sent: Thursday, August 25, 2022 12:03 AM >> To: Erik M. Brown >> Cc: spambayes-dev at python.org >> Subject: Re: [spambayes-dev] ImportError: No module named >spambayes.resources (line 12 of setup_all.py) >> >> It looks like that's telling you Outlook 2000 isn't installed, which >is probably expected. >> >> See also >> https://mail.python.org/pipermail/spambayes-dev/2004-July/002938.html >> >> But that's probably out of date too - you probably need to find the >GUIDs in the registry editor under >Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib, or in Pythonwin's >"com browser". >> >> (Sadly I don't have office or outlook installed here, so can't tell >you exactly what you need) >> >> Mark >> >> On 25/08/2022 1:48 pm, Erik M. Brown via spambayes-dev wrote: >>> Thank you all for the quick replys! So I'm not a dev, more of a >power user, and I just added the python folder and script folder to the >windows path. I then ran it in a CMD prompt, python setup_all.py, and >it actually found the resources it needed. However, it ended up >throwing a wild error: >>> >>> ImportError: No module named 00062FFF-0000-C000-000000000046x0x9x0 >>> >>> LOL! BTW Matthew, what do you mean by copy the files? Do you mean >the source files and you manually install the com addin? >>> >>> Please let me know what you mean. = ) >>> >>> Take care, >>> >>> Erik Brown >>> >>> >>> -----Original Message----- >>> From: Matthew Dixon Cowles [mailto:matt at mondoinfo.com] >>> Sent: Wednesday, August 24, 2022 7:37 PM >>> To: Erik M. Brown >>> Cc: spambayes-dev at python.org >>> Subject: Re: [spambayes-dev] ImportError: No module named >>> spambayes.resources (line 12 of setup_all.py) >>> >>> Eric, >>> >>>> Not sure if anyone is still reading this, >>> >>> I am. And I still use SpamBayes every day. >>> >>>> but I'm running into an error when attempting to run >"setup_all.py", >>>> the py2exe setup script, I get the following: >>> >>>> ImportError: No module named spambayes.resources (line 12 of >>>> setup_all.py) >>> >>> But I don't install it that way. I just copy the files. >>> >>>> I'm able to run Spambayes from these source files in Outlook and >have >>>> the correct python version, pywin32, as well as py2exe. >>> >>> Here are a couple of things I'd check: >>> >>> Are you sure that you're using a version of Python that's >contemporaneous with the packaging? >>> >>> You should be able to find the version of spambayes that >setup_all.py is trying to use. Does it in fact have a directory called >resources? >>> Or is it possible that it's finding a directory called spambayes >that's not what you want it to find? >>> >>> Regards, >>> Matt >>> >>> _______________________________________________ >>> spambayes-dev mailing list >>> spambayes-dev at python.org >>> https://mail.python.org/mailman/listinfo/spambayes-dev >> >> _______________________________________________ >> spambayes-dev mailing list >> spambayes-dev at python.org >> https://mail.python.org/mailman/listinfo/spambayes-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From skip.montanaro at gmail.com Thu Aug 25 07:07:54 2022 From: skip.montanaro at gmail.com (Skip Montanaro) Date: Thu, 25 Aug 2022 06:07:54 -0500 Subject: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) In-Reply-To: <33d677d3-34b1-45a9-0860-de9107edc51a@gmail.com> References: <009d01d8b7c6$98eff560$cacfe020$.ref@yahoo.com> <009d01d8b7c6$98eff560$cacfe020$@yahoo.com> <1661380136.07.967@mint-julep.mondoinfo.com> <01b301d8b835$8b9eb080$a2dc1180$@yahoo.com> <4fe865cc-6be7-5756-825b-0908a6e631b0@gmail.com> <01b601d8b840$32ebedd0$98c3c970$@yahoo.com> <33d677d3-34b1-45a9-0860-de9107edc51a@gmail.com> Message-ID: > > I'm afraid I have no idea about that. It looks like I don't even have > the latest spambayes source tree here, and don't even have svn to update > it! > Hi Mark, Good to see you're still around. The current SpamBayes source is on GitHub: https://github.com/smontanaro/spambayes My intent in moving it there was to do a proper Python 3 port, but I got distracted, in part because most demand is for Windows, and I don't do Windows... Skip -------------- next part -------------- An HTML attachment was scrubbed... URL: From skippy.hammond at gmail.com Thu Aug 25 07:46:31 2022 From: skippy.hammond at gmail.com (Mark Hammond) Date: Thu, 25 Aug 2022 21:46:31 +1000 Subject: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) In-Reply-To: References: <009d01d8b7c6$98eff560$cacfe020$.ref@yahoo.com> <009d01d8b7c6$98eff560$cacfe020$@yahoo.com> <1661380136.07.967@mint-julep.mondoinfo.com> <01b301d8b835$8b9eb080$a2dc1180$@yahoo.com> <4fe865cc-6be7-5756-825b-0908a6e631b0@gmail.com> <01b601d8b840$32ebedd0$98c3c970$@yahoo.com> <33d677d3-34b1-45a9-0860-de9107edc51a@gmail.com> Message-ID: <9b120f01-cc24-9cb8-db41-2aa0a0d20348@gmail.com> Hey Skip - good to see you still active too! Happy to see the github repo! Sadly the latest there still gives me no clues as to how `convert_db` is not working for Erik, and I doubt I'll get back into spambayes, but I'm really happy to see this activity! But-where's-tim-ly?, Mark On 25/8/2022 9:07 pm, Skip Montanaro wrote: > > I'm afraid I have no idea about that. It looks like I don't even have > the latest spambayes source tree here, and don't even have svn to > update > it! > > > Hi Mark, > > Good to see you're still around. The current SpamBayes source is on > GitHub: > > https://github.com/smontanaro/spambayes > > My intent in moving it there was to do a proper Python 3 port, but I > got distracted, in part because most demand is for Windows, and I > don't do Windows... > > Skip > > > _______________________________________________ > spambayes-dev mailing list > spambayes-dev at python.org > https://mail.python.org/mailman/listinfo/spambayes-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim.peters at gmail.com Thu Aug 25 14:40:47 2022 From: tim.peters at gmail.com (Tim Peters) Date: Thu, 25 Aug 2022 13:40:47 -0500 Subject: [spambayes-dev] ImportError: No module named spambayes.resources (line 12 of setup_all.py) In-Reply-To: <9b120f01-cc24-9cb8-db41-2aa0a0d20348@gmail.com> References: <009d01d8b7c6$98eff560$cacfe020$.ref@yahoo.com> <009d01d8b7c6$98eff560$cacfe020$@yahoo.com> <1661380136.07.967@mint-julep.mondoinfo.com> <01b301d8b835$8b9eb080$a2dc1180$@yahoo.com> <4fe865cc-6be7-5756-825b-0908a6e631b0@gmail.com> <01b601d8b840$32ebedd0$98c3c970$@yahoo.com> <33d677d3-34b1-45a9-0860-de9107edc51a@gmail.com> <9b120f01-cc24-9cb8-db41-2aa0a0d20348@gmail.com> Message-ID: [Mark Hammond ] > But-where's-tim-ly?, As always, lurking on the spambayes mailing lists ;-) It's been many years since I used Outlook, and gmail (which I've used ever since) has "good enough" spam detection - although I think spambayes did better for me! In any case, it must be well over a decade since I even looked at the code. Hey, Skip! Could you reset the spambayes-dev admin password to something trivial and mail it to me (then I'll log in and change it to something "secure")? I'm still the list owner, but somehow lost the password last year. Spam has been building up in the moderation queue ever since. _Legitmate_ moderated traffic to this list is non-existent, so I never bothered asking before. Or if someone else wants to volunteer to own this all-but-dead list, that would be fine too. Spambayes was a lot more fun when we were all working on it :-) From skip.montanaro at gmail.com Thu Aug 25 16:41:31 2022 From: skip.montanaro at gmail.com (Skip Montanaro) Date: Thu, 25 Aug 2022 15:41:31 -0500 Subject: [spambayes-dev] Python 3 branch Message-ID: With the sudden flurry of emails about SpamBayes, I went ahead and created a new python3 branch at https://github.com/smontanaro/spambayes This is the result of a basic run of 2to3 nearly two years ago (!) followed by most functional changes to Neil Schemenauer's Python 3 partial port: https://github.com/nascheme/spambayes-core/ Nothing has been tested. I haven't even tried running anything yet. Given that I use Gmail, I suspect I will have to try getting the IMAP filter to run to make it semi-useful. Skip -------------- next part -------------- An HTML attachment was scrubbed... URL: