[Spambayes] Simple and direct help with Netscape integration
Meyer, Tony
T.A.Meyer at massey.ac.nz
Mon Oct 13 22:25:28 EDT 2003
> When I type
> C:\python 23\python.exe setup.py
> I get the message
> cannot open setup.py
This one is because the "setup.py" file is not in C:\python23
> When I type
> C:\python23\python.exe.\setup.py install
> I get the message
> Bad command or file name
This is because there needs to be a space between the exe and the '.'
> If I type
> C:\python23\type setup.py
> I get the message
> File not found - setup.py
Again, wrong directory (I should have been more specific).
> On the otherhand if I type
> C:\spambayes-1.0a5\type setup.py
> I get lines of code flashing across the screen (Once upon a
> time in dos pressing Ctrl P before the return would cause these
> lines to be printed but that doesn't seem to work). The lines of
> code end with
> ' Topic :: Communication :: Email :: Post-Office :: Pop3',
> ]
> )
This tells me that setup.py is there, and is the correct file - this is
the correct behaviour. If you type "c:\python23\python.exe .\setup.py
install" (exactly like that, particularly the spaces) then it should run
it (type it in this directory). Or you could do "c:\python23\python.exe
c:\spambayes-1.0a5\setup.py install".
> One of the things I have noticed is that the files in spambayes are in
a directory
> C:\spambayes-1.0a5\spambayes-1.0a5
> but I didn't have to go to the subdirectory for the code
> of setup.py to appear on screen. I don't know whether this
> is relevant to the file not opening?
You should be in the directory that has the setup.py file in it,
whichever one that is.
> In the run mode in windows I have just put in
> C:\spambayes-1.0a5\setup.py install and a return. This gave a brief
> dos screen with lines of code flashing across it which looks as
> though something installed.
This should have the exact same effect as typing
"C:\spambayes-1.0a5\setup.py install" in a console/DOS window, but
whatever works :)
> If this is the case how do I proceed from now?
The easiest way is to double-click the "pop3proxy_tray.py" file that is
in the "windows" directory in the "spambayes-1.0a5" directory. This
should add a wee mail icon to the 'tray' (by the clock). If you right
click that you should get a menu from which you can choose
"configuration", and it's hopefully straight-forward from there. You'll
want to start up pop3proxy_tray every time you start windows - the
easiest way of doing this is to put a shortcut (right-click and choose
"create shortcut") in the startup items folder.
> running C:\spambayes-1.0a5\setup.py install
> has certainly changed the files within spambayes.
> For example before this change there was a file
> C: \spambayes-1.0a5\spambayes-1.0a5\testtools\data\ spam (or ham)\set
1 (2,3,4)
> There is no such file within testtools after running the setup.py
install
Those directories should only have been created if you were using the
testing setup; presumably something you tried along the way created
them. I have no idea why they would go, either.
The way to check if the install occurred is to look in the
"C:\python23\Scripts" directory. If there is a file called
"pop3proxy.py", then it did.
=Tony Meyer
More information about the Spambayes
mailing list