Bug 1072430

Summary: [abrt] spambayes: classifier.py:492:_wordinfoget:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
Product: [Fedora] Fedora Reporter: José Matos <jamatos>
Component: spambayesAssignee: Orphan Owner <extras-orphan>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: i, paul
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/adb7d614d73a77772d4720afef12e9d6358a5188
Whiteboard: abrt_hash:991ba845355f66efe9cc302926c33f0180b4ad11
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-30 00:55:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description José Matos 2014-03-04 14:56:43 UTC
Description of problem:
I got this problem while using kmail to filter some messages

Version-Release number of selected component:
spambayes-1.1-0.8.b1.fc20

Additional info:
reporter:       libreport-2.1.12
cmdline:        /usr/bin/python2 /usr/bin/sb_filter.py -s
executable:     /usr/bin/sb_filter.py
kernel:         3.13.5-200.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
classifier.py:492:_wordinfoget:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/bin/sb_filter.py", line 277, in <module>
    main()
  File "/usr/bin/sb_filter.py", line 268, in main
    action(msg)
  File "/usr/bin/sb_filter.py", line 199, in train_spam
    self.h.train_spam(msg, Options.options["Headers", "include_trained"])
  File "/usr/lib/python2.7/site-packages/spambayes/hammie.py", line 231, in train_spam
    self.train(msg, True, add_header)
  File "/usr/lib/python2.7/site-packages/spambayes/hammie.py", line 164, in train
    self.bayes.learn(tokenize(msg), is_spam)
  File "/usr/lib/python2.7/site-packages/spambayes/classifier.py", line 252, in learn
    self._add_msg(wordstream, is_spam)
  File "/usr/lib/python2.7/site-packages/spambayes/classifier.py", line 354, in _add_msg
    record = self._wordinfoget(word)
  File "/usr/lib/python2.7/site-packages/spambayes/classifier.py", line 492, in _wordinfoget
    return self.wordinfo.get(word)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)

Local variables in innermost frame:
self: <spambayes.storage._PersistentClassifier object at 0x1268488>
word: u'filename:fname piece:doc'

Comment 1 José Matos 2014-03-04 14:56:47 UTC
Created attachment 870452 [details]
File: backtrace

Comment 2 José Matos 2014-03-04 14:56:49 UTC
Created attachment 870453 [details]
File: environ

Comment 3 Christopher Meng 2014-03-08 05:22:51 UTC
Did you meet this before?

I just pushed this b1 update as it's the latest upstream version.

Comment 4 José Matos 2014-03-19 23:18:52 UTC
I had this problem once after reporting, but no new incantation after more than two weeks.

Comment 5 Fedora Admin XMLRPC Client 2015-02-17 09:11:33 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Fedora End Of Life 2015-05-29 11:08:39 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Fedora End Of Life 2015-06-30 00:55:45 UTC
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.