[Bug 359784] [NEW] AttributeError: CommandNotFound instance has no attribute 'priority_overrides'

Neal Crook neal at pippaluk.org.uk
Sat Apr 11 22:09:12 UTC 2009


Public bug reported:

Binary package hint: command-not-found

user at machine:~$ mysql
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:

command-not-found version: 0.2.21
Python version: 2.6.2 final 0
Distributor ID: Ubuntu
Description:    Ubuntu jaunty (development branch)
Release:        9.04
Codename:       jaunty
Exception information:

CommandNotFound instance has no attribute 'priority_overrides'
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/CommandNotFound/util.py", line 32, in crash_guard
    callback()
  File "/usr/lib/command-not-found", line 24, in main
    CommandNotFound(options.data_dir).advise(args[0], options.ignore_installed)
  File "/usr/lib/python2.6/dist-packages/CommandNotFound/CommandNotFound.py", line 163, in advise
    packages.sort(self.sortByComponent)
  File "/usr/lib/python2.6/dist-packages/CommandNotFound/CommandNotFound.py", line 103, in sortByComponent
    if (x[0] in self.priority_overrides and
AttributeError: CommandNotFound instance has no attribute 'priority_overrides'
bash: mysql: command not found


but, "in general" command-not-found works correctly. For example:

user at machine:~$ foobar
bash: foobar: command not found
user at machine:~$ gnat
The program 'gnat' is currently not installed.  You can install it by typing:
sudo apt-get install gnat-4.3
bash: gnat: command not found

Neal.

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

-- 
AttributeError: CommandNotFound instance has no attribute 'priority_overrides'
https://bugs.launchpad.net/bugs/359784
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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




More information about the universe-bugs mailing list