command-not-found crashed with NameError in __main__: name 'sys' is not defined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
got mistaken in name of command "top" in terminal: type tp instead, command-not-found crashes
ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: command-not-found 0.2.44ubuntu1
ProcVersionSign
Uname: Linux 3.0.0-12-generic i686
ApportVersion: 1.23-0ubuntu2
Architecture: i386
Date: Sun Oct 2 13:46:58 2011
ExecutablePath: /usr/lib/
InstallationMedia: Lubuntu 10.10 "Maverick Meerkat" - i386 (20101010)
InterpreterPath: /usr/bin/python2.7
PackageArchitec
ProcCmdline: /usr/bin/python /usr/lib/
ProcEnviron:
SHELL=/bin/bash
LANG=ru_RU.UTF-8
PythonArgs: ['/usr/
SourcePackage: command-not-found
Title: command-not-found crashed with NameError in __main__: name 'sys' is not defined
Traceback:
Traceback (most recent call last):
File "/usr/lib/
sys.exit(127)
NameError: name 'sys' is not defined
UpgradeStatus: Upgraded to oneiric on 2011-09-11 (21 days ago)
UserGroups: adm admin cdrom dialout dip fuse lpadmin plugdev sambashare
Related branches
tags: | removed: need-duplicate-check |
This is a race condition; it happens if you manage to interrupt command-not-found before it's managed to import sys.
Perhaps the exception handler should import sys again?