Public bug reported:

Binary package hint: command-not-found
So, the most important bit is this:
|  File "/usr/lib/python2.5/gettext.py", line 85, in c2py
|     tokens = tokenize.generate_tokens(StringIO(plural).readline)
| AttributeError: 'module' object has no attribute 'generate_tokens'

Now, I could go and try to reinstall c2py or gettext, but I don't think
I should have to :|.  I haven't wittingly modified any Python packages
since doing a clean install.  It's regular faults like these that make
me wonder why people keep trying to use Python more and more on the
desktop.  :(

Cheers, 
  Richard

------------------------------------
[EMAIL PROTECTED]:~/directory$ conduit
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/ubuntu/+source/command-not-found
Please include the following information with the report:
'module' object has no attribute 'generate_tokens'
Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 28, in <module>
    CommandNotFound(options.data_dir).advise(args[0], options.ignore_installed)
  File "/usr/lib/python2.5/site-packages/CommandNotFound/CommandNotFound.py", 
line 69, in __init__
    self.sources_list = self._getSourcesList()
  File "/usr/lib/python2.5/site-packages/CommandNotFound/CommandNotFound.py", 
line 97, in _getSourcesList
    for source in SourcesList():
  File "/usr/lib/python2.5/site-packages/aptsources/sourceslist.py", line 223, 
in __init__
    self.matcher = SourceEntryMatcher(matcherPath)
  File "/usr/lib/python2.5/site-packages/aptsources/sourceslist.py", line 397, 
in __init__
    dist = DistInfo(f,base_dir=matcherPath)
  File "/usr/lib/python2.5/site-packages/aptsources/distinfo.py", line 159, in 
__init__
    self.changelogs_uri = _(value)
  File "/usr/lib/python2.5/site-packages/aptsources/distinfo.py", line 34, in _
    def _(s): return gettext.dgettext("python-apt", s)
  File "/usr/lib/python2.5/gettext.py", line 545, in dgettext
    codeset=_localecodesets.get(domain))
  File "/usr/lib/python2.5/gettext.py", line 493, in translation
    t = _translations.setdefault(key, class_(open(mofile, 'rb')))
  File "/usr/lib/python2.5/gettext.py", line 180, in __init__
    self._parse(fp)
  File "/usr/lib/python2.5/gettext.py", line 315, in _parse
    self.plural = c2py(plural)
  File "/usr/lib/python2.5/gettext.py", line 85, in c2py
    tokens = tokenize.generate_tokens(StringIO(plural).readline)
AttributeError: 'module' object has no attribute 'generate_tokens'
Python version: 2.5.2 final 0
bash: conduit: command not found

** Affects: command-not-found (Ubuntu)
     Importance: Undecided
         Status: New

-- 
command-not-found crash: 'generate_tokens' missing on module for 'tokenize'
https://bugs.launchpad.net/bugs/260791
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to