On Thu, October 12, 2006 22:17, [EMAIL PROTECTED] said:
>
>     Rick> Traceback (most recent call last):
>     Rick>   File "scripts/sb_server.py", line 110, in ?
>     Rick>     from spambayes import i18n
>     Rick> ImportError: cannot import name i18n
>
> The relative path to sb_server.py seems a bit suspicious to me.  What if
> you
> just try "sb_server.py"?  What does
>
>     which sb_server.py
>
> (executed at the shell prompt) return?
>
>>From an interactive python interpreter can you
>
>     import spambayes
>
> If so, can you
>
>     import spambayes.i18n
>
> ?  If you can do the first but not the second, check
>
>     spambayes.__file__
>
> and look in the
>
>     Rick> Anyone have any idea how I can solve this problem?? Is there
> some
>     Rick> other pythin module I need to have installed?
>
> Not that I'm aware of.  There is an i18n module inside the spambayes
> package.  Seems to me like you're somehow not running what you installed.
>
> Skip

I followed your instructions for my own error (see mailing list archives a
couple of weeks ago, still unsolved) and got this:

[EMAIL PROTECTED] { ~ }$ which sb_server.py
/usr/bin/sb_server.py
[EMAIL PROTECTED] { ~ }$ python
Python 2.3.5 (#2, Sep  4 2005, 22:01:42)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import spambayes
>>> import spambayes.message
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/site-packages/spambayes/message.py", line 220,
in ?
    msginfoDB = MessageInfoPickle(message_info_db_name)
  File "/usr/lib/python2.3/site-packages/spambayes/message.py", line 148,
in __init__
    self.load()
  File "/usr/lib/python2.3/site-packages/spambayes/message.py", line 160,
in load
    self.db = pickle.load(fp)
  File "/usr/lib/python2.3/pickle.py", line 1390, in load
    return Unpickler(file).load()
  File "/usr/lib/python2.3/pickle.py", line 872, in load
    dispatch[key](self)
KeyError: '\x00'


What should I do next?

-- 
Amedee Van Gasse

_______________________________________________
[email protected]
http://mail.python.org/mailman/listinfo/spambayes
Check the FAQ before asking: http://spambayes.sf.net/faq.html

Reply via email to