Re: ImportError: No module named spambayes.resources (line 12 of setup_all.py)
Erik Brown via spambayes-dev <[email protected]> Thu, 25 Aug 2022 01:18:21 -0400
| Newsgroups | gmane.mail.spam.spambayes.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============0370449006401090500==
Content-Type: multipart/alternative; boundary="----4PNEWJ5CW5WNPZ5QKVTGM8JEG72HJ8"
Content-Transfer-Encoding: 7bit
------4PNEWJ5CW5WNPZ5QKVTGM8JEG72HJ8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=UTF-8
Ok, thanks again for fast reply Mark=C2=A0 I will stop here attempting to b=
uild binary=2E I now know how to install from source on different machines =
thanks you all=2E
=E2=81=A3Erik M=2E Brown
Get BlueMail for Android =E2=
=80=8B
On Aug 25, 2022, 1:12 AM, at 1:12 AM, Mark Hammond <skippy=2Ehammon=
d@gmail=2Ecom> wrote:
>I'm afraid I have no idea about that=2E It looks lik=
e 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 "conve=
rt_db" as a
>boolean,
>but I can't remember enough about inno to know what=
might be going
>wrong=2E
>
>Spambayes was always capable of running from s=
ource, so in the first
>instance maybe try ignoring inno and follow the in=
structions in
>Outlook2000/README=2Etxt?
>
>HTH,
>
>Mark
>
>On 25/08/2022 =
3:04 pm, Erik M=2E Brown via spambayes-dev wrote:
>> Bravo Mark=2E=2E=2ELOL=
!
>>
>> So I actually found my old HD with Windows XP and Outlook 2003
>in=
stalled, and I'm booting from it, testing all of this=2E
>>
>> Because I'm=
running Outlook 2003, the link you sent actually worked=2E
>I changed it =
to the following:
>>
>> typelibs =3D [
>> ('{00062FFF-0000-0=
000-C000-000000000046}', 0, 9, 2),
>> ('{2DF8D04C-5BFA-101B-BDE5-0=
0AA0044DE52}', 0, 2, 2),
>> ('{AC0714F2-3D04-11D1-AE7D-00A0C90F26F=
4}', 0, 1, 0),
>> ]
>>
>> When I ran setup_all=2Epy this time, it app=
eared that all of the files
>were then in the build and distribution folder=
s=2E Next up was install
>Inno Setup from around that time, and I ran spam=
bayes=2Eiss=2E
>>
>> So close, but no cigar because I got the following er=
ror:
>>
>> Compiler Error
>> Line 125:
>> Column 13: - [Error] (37:13) Unk=
nown identifier 'convert_db'
>>
>> The code looks like this in the spambay=
es=2Eiss file:
>>
>> function ConvertDatabase () : Boolean;
>> begin
>> =
Result : =3Dconvert_db ;
>> end;
>>
>> Any ideas?
>>
>> Take care,
>>
=
>> Erik Brown
>>
>>
>> -----Original Message-----
>> From: Mark Hammond [=
mailto:skippy=2Ehammond@gmail=2Ecom]
>> Sent: Thursday, August 25, 2022 12:=
03 AM
>> To: Erik M=2E Brown
>> Cc: spambayes-dev@python=2Eorg
>> Subject: =
Re: [spambayes-dev] ImportError: No module named
>spambayes=2Eresources (li=
ne 12 of setup_all=2Epy)
>>
>> It looks like that's telling you Outlook 20=
00 isn't installed, which
>is probably expected=2E
>>
>> See also
>> https=
://mail=2Epython=2Eorg/pipermail/spambayes-dev/2004-July/002938=2Ehtml
>>
=
>> But that's probably out of date too - you probably need to find the
>GUI=
Ds in the registry editor under
>Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Class=
es\TypeLib, or in Pythonwin's
>"com browser"=2E
>>
>> (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=2E Brown via spambayes-de=
v 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=2E I then ran it in a CMD prompt, python setup_all=2Epy, an=
d
>it actually found the resources it needed=2E However, it ended up
>thr=
owing 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 add=
in?
>>>
>>> Please let me know what you mean=2E =3D )
>>>
>>> Take care,
>>=
>
>>> Erik Brown
>>>
>>>
>>> -----Original Message-----
>>> From: Matthew D=
ixon Cowles [mailto:matt@mondoinfo=2Ecom]
>>> Sent: Wednesday, August 24, 2=
022 7:37 PM
>>> To: Erik M=2E Brown
>>> Cc: spambayes-dev@python=2Eorg
>>> =
Subject: Re: [spambayes-dev] ImportError: No module named
>>> spambayes=2Er=
esources (line 12 of setup_all=2Epy)
>>>
>>> Eric,
>>>
>>>> Not sure if any=
one is still reading this,
>>>
>>> I am=2E And I still use SpamBayes every =
day=2E
>>>
>>>> but I'm running into an error when attempting to run
>"setu=
p_all=2Epy",
>>>> the py2exe setup script, I get the following:
>>>
>>>> Im=
portError: No module named spambayes=2Eresources (line 12 of
>>>> setup_all=
=2Epy)
>>>
>>> But I don't install it that way=2E I just copy the files=2E
=
>>>
>>>> I'm able to run Spambayes from these source files in Outlook and
>=
have
>>>> the correct python version, pywin32, as well as py2exe=2E
>>>
>>>=
Here are a couple of things I'd check:
>>>
>>> Are you sure that you're us=
ing a version of Python that's
>contemporaneous with the packaging?
>>>
>>>=
You should be able to find the version of spambayes that
>setup_all=2Epy i=
s trying to use=2E Does it in fact have a directory called
>resources?
>>> =
Or is it possible that it's finding a directory called spambayes
>that's no=
t what you want it to find?
>>>
>>> Regards,
>>> Matt
>>>
>>> _____________=
__________________________________
>>> spambayes-dev mailing list
>>> spamb=
ayes-dev@python=2Eorg
>>> https://mail=2Epython=2Eorg/mailman/listinfo/spam=
bayes-dev
>>
>> _______________________________________________
>> spambay=
es-dev mailing list
>> spambayes-dev@python=2Eorg
>> https://mail=2Epython=
=2Eorg/mailman/listinfo/spambayes-dev
------4PNEWJ5CW5WNPZ5QKVTGM8JEG72HJ8
Content-Type: text/html;
charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html><head></head><body style=3D"zoom: 0%;"><div dir=3D"auto">Ok, thanks a=
gain for fast reply Mark=C2=A0 I will stop here attempting to build binary=
=2E I now know how to install from source on different machines thanks you =
all=2E<br><br></div>
<div dir=3D"auto"><!-- tmjah_g_1299s -->Erik M=2E Brow=
n<!-- tmjah_g_1299e --><br><br></div>
<div dir=3D"auto"><!-- tmjah_g_1299s =
-->Get <!-- tmjah_g_1299e --><a href=3D"https://bluemail=2Eme"><!-- tmjah_g=
_1299s -->BlueMail for Android<!-- tmjah_g_1299e --></a><!-- tmjah_g_1299s =
--> <!-- tmjah_g_1299e --></div>
<div class=3D"gmail_quote" >On Aug 25, 202=
2, at 1:12 AM, Mark Hammond <<a href=3D"mailto:skippy=2Ehammond@gmail=2E=
com" target=3D"_blank">skippy=2Ehammond@gmail=2Ecom</a>> wrote:<blockquo=
te class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0=2E8ex; border-left:=
1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class=3D"blue">I'm=
afraid I have no idea about that=2E It looks like I don't even have <br>th=
e latest spambayes source tree here, and don't even have svn to update <br>=
it! My version does seem to correctly declare "convert_db" as a boolean, <b=
r>but I can't remember enough about inno to know what might be going wrong=
=2E<br><br>Spambayes was always capable of running from source, so in the f=
irst <br>instance maybe try ignoring inno and follow the instructions in <b=
r>Outlook2000/README=2Etxt?<br><br>HTH,<br><br>Mark<br><br>On 25/08/2022 3:=
04 pm, Erik M=2E Brown via spambayes-dev wrote:<br><blockquote class=3D"gma=
il_quote" style=3D"margin: 0pt 0pt 1ex 0=2E8ex; border-left: 1px solid #729=
fcf; padding-left: 1ex;"> Bravo Mark=2E=2E=2ELOL!<br> <br> So I actually fo=
und my old HD with Windows XP and Outlook 2003 installed, and I'm booting f=
rom it, testing all of this=2E<br> <br> Because I'm running Outlook 2003, t=
he link you sent actually worked=2E I changed it to the following:<br> <br=
> typelibs =3D [<br> ('{00062FFF-0000-0000-C000-000000000046}=
', 0, 9, 2),<br> ('{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}', 0, 2, =
2),<br> ('{AC0714F2-3D04-11D1-AE7D-00A0C90F26F4}', 0, 1, 0),<br> =
]<br> <br> When I ran setup_<a href=3D"http://all=2Epy">all=2Epy</a> th=
is time, it appeared that all of the files were then in the build and distr=
ibution folders=2E Next up was install Inno Setup from around that time, a=
nd I ran spambayes=2Eiss=2E<br> <br> So close, but no cigar because I got t=
he following error:<br> <br> Compiler Error<br> Line 125:<br> Column 13: - =
[Error] (37:13) Unknown identifier 'convert_db'<br> <br> The code looks lik=
e this in the spambayes=2Eiss file:<br> <br> function ConvertDatabase () : =
Boolean;<br> begin<br> Result : =3Dconvert_db ;<br> end;<br> <br> Any i=
deas?<br> <br> Take care,<br> <br> Erik Brown<br> <br> <br> -----Original M=
essage-----<br> From: Mark Hammond [mailto:skippy=2Ehammond@gmail=2Ecom]<br=
> Sent: Thursday, August 25, 2022 12:03 AM<br> To: Erik M=2E Brown<br> Cc: =
spambayes-dev@python=2Eorg<br> Subject: Re: [spambayes-dev] ImportError: No=
module named spambayes=2Eresources (line 12 of setup_<a href=3D"http://all=
=2Epy">all=2Epy</a>)<br> <br> It looks like that's telling you Outlook 2000=
isn't installed, which is probably expected=2E<br> <br> See also<br> <a hr=
ef=3D"https://mail=2Epython=2Eorg/pipermail/spambayes-dev/2004-July/002938=
=2Ehtml">https://mail=2Epython=2Eorg/pipermail/spambayes-dev/2004-July/0029=
38=2Ehtml</a><br> <br> But that's probably out of date too - you probably n=
eed to find the GUIDs in the registry editor under Computer\HKEY_LOCAL_MACH=
INE\SOFTWARE\Classes\TypeLib, or in Pythonwin's "com browser"=2E<br> <br> (=
Sadly I don't have office or outlook installed here, so can't tell you exac=
tly what you need)<br> <br> Mark<br> <br> On 25/08/2022 1:48 pm, Erik M=2E =
Brown via spambayes-dev wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin: 0pt 0pt 1ex 0=2E8ex; border-left: 1px solid #ad7fa8; padding-le=
ft: 1ex;"> 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 wi=
ndows path=2E I then ran it in a CMD prompt, python setup_<a href=3D"http:=
//all=2Epy">all=2Epy</a>, and it actually found the resources it needed=2E =
However, it ended up throwing a wild error:<br><br> ImportError: No modul=
e named 00062FFF-0000-C000-000000000046x0x9x0<br><br> LOL! BTW Matthew, wh=
at do you mean by copy the files? Do you mean the source files and you man=
ually install the com addin?<br><br> Please let me know what you mean=2E =
=3D )<br><br> Take care,<br><br> Erik Brown<br><br><br> -----Original Messa=
ge-----<br> From: Matthew Dixon Cowles [mailto:matt@mondoinfo=2Ecom]<br> Se=
nt: Wednesday, August 24, 2022 7:37 PM<br> To: Erik M=2E Brown<br> Cc: spam=
bayes-dev@python=2Eorg<br> Subject: Re: [spambayes-dev] ImportError: No mod=
ule named<br> spambayes=2Eresources (line 12 of setup_<a href=3D"http://all=
=2Epy">all=2Epy</a>)<br><br> Eric,<br><br><blockquote class=3D"gmail_quote"=
style=3D"margin: 0pt 0pt 1ex 0=2E8ex; border-left: 1px solid #8ae234; padd=
ing-left: 1ex;"> Not sure if anyone is still reading this,<br></blockquote>=
<br> I am=2E And I still use SpamBayes every day=2E<br><br><blockquote clas=
s=3D"gmail_quote" style=3D"margin: 0pt 0pt 1ex 0=2E8ex; border-left: 1px so=
lid #8ae234; padding-left: 1ex;"> but I'm running into an error when attemp=
ting to run "setup_<a href=3D"http://all=2Epy">all=2Epy</a>",<br> the py2ex=
e setup script, I get the following:<br></blockquote><br><blockquote class=
=3D"gmail_quote" style=3D"margin: 0pt 0pt 1ex 0=2E8ex; border-left: 1px sol=
id #8ae234; padding-left: 1ex;"> ImportError: No module named spambayes=2Er=
esources (line 12 of<br> setup_<a href=3D"http://all=2Epy">all=2Epy</a>)<br=
></blockquote><br> But I don't install it that way=2E I just copy the files=
=2E<br><br><blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 1ex 0=
=2E8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"> I'm able to ru=
n Spambayes from these source files in Outlook and have<br> the correct pyt=
hon version, pywin32, as well as py2exe=2E<br></blockquote><br> Here are a =
couple of things I'd check:<br><br> Are you sure that you're using a versio=
n of Python that's contemporaneous with the packaging?<br><br> You should b=
e able to find the version of spambayes that setup_<a href=3D"http://all=2E=
py">all=2Epy</a> is trying to use=2E Does it in fact have a directory calle=
d resources?<br> Or is it possible that it's finding a directory called spa=
mbayes that's not what you want it to find?<br><br> Regards,<br> Matt<br><b=
r><hr><br> spambayes-dev mailing list<br> spambayes-dev@python=2Eorg<br> <a=
href=3D"https://mail=2Epython=2Eorg/mailman/listinfo/spambayes-dev">https:=
//mail=2Epython=2Eorg/mailman/listinfo/spambayes-dev</a><br></blockquote> <=
br><hr><br> spambayes-dev mailing list<br> spambayes-dev@python=2Eorg<br> <=
a href=3D"https://mail=2Epython=2Eorg/mailman/listinfo/spambayes-dev">https=
://mail=2Epython=2Eorg/mailman/listinfo/spambayes-dev</a><br></blockquote><=
br></pre></blockquote></div></body></html>
------4PNEWJ5CW5WNPZ5QKVTGM8JEG72HJ8--
--===============0370449006401090500==
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
--===============0370449006401090500==--