> I'm running the pop3proxy_service version of spambayes1.0.1 on > WindowsXPsp2 with python2.4alpha3 and pywin32extensions > pywin32-203.win32-py2.4. [...] > "c:\programme\python\Lib\site-packages\spambayes\message.py", > line 249, in setPayload > . prs._parseheaders(self, fp) > .AttributeError: Parser instance has no attribute '_parseheaders'
Unfortunately, this is because you are using Python 2.4, which includes version 3.0 of the email package, which changes the way it does things (a lot). If you have Python 2.3 installed as well as Python 2.4, then switching to use 2.3 for SpamBayes will fix the problem. Otherwise, the CVS source of SpamBayes has this problem fixed - this will become the 1.1 release (a first alpha will probably be out in January). If you are able to run from CVS, then that would also solve the problem. Otherwise, please open a bug tracker on sourceforge (so I don't forget about this issue): <http://sf.net/projects/spambayes>. I'll figure out a way to patch message.py to work with Python 2.4 - this will appear in 1.0.2, but you could also apply the patch locally (if you run from source). > I don't know if this might be related, but another problem I have is > that I cannot get the tray to compile because of the > following error: > C:\Programme\Python\Scripts>c:\programme\python\python > pop3proxy_tray.py Traceback (most recent call last): > File "pop3proxy_tray.py", line 556, in ? > main() > File "pop3proxy_tray.py", line 552, in main > w = MainWindow() > File "pop3proxy_tray.py", line 181, in __init__ > 16, 16, icon_flags) > pywintypes.error: (2, 'LoadImage', 'Das System kann die > angegebene Datei > nicht finden.') > (system cannot find the referenced file) This is unfortunately an unresolved issue (i.e. the developers haven't decided what the correct behaviour is). It slipped through without a fix making it into 1.0.1, sorry (it works fine with the binary version, so isn't a problem for most users). The problem is that the tray application is looking for two icon files in the directory '{directory sb_server.py is in }\..\windows\resources\' (from the paths above, probably 'C:\Programme\Python\windows\resources\' for you). However, "python setup.py install" doesn't install these icon files. To fix this you can either: 1. Modify the source of pop3proxy_tray.py to include a path that is correct for your system. 2. Copy the icon files from the source distribution to the correct place (you'll probably have to create folders along the way). or 3. Run SpamBayes from the source archive, rather than using "python setup.py install" (you'll have to ensure that SpamBayes is on your PYTHONPATH). I'll try to remember that we need to get this resolved for 1.0.2, but if you like, you can add a bug report about this, too, which will ensure that we get it solved. =Tony.Meyer -- Please always include the list ([EMAIL PROTECTED]) in your replies (reply-all), and please don't send me personal mail about SpamBayes. http://www.massey.ac.nz/~tameyer/writing/reply_all.html explains this. _______________________________________________ [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/spambayes Check the FAQ before asking: http://spambayes.sf.net/faq.html
