[Bug 1073919] Re: Crash with Python 3

Barry Warsaw 1073919 at bugs.launchpad.net
Mon Jul 29 23:01:47 UTC 2013


** Description changed:

  Désolé, command-not-found s'est arrêté anormalement ! Veuillez remplir un rapport de bogue à :
  https://bugs.launchpad.net/command-not-found/+filebug
  Veuillez inclure les informations suivantes dans le rapport :
  
  Version de command-not-found : 0.3
  Version de python : 3.2.3 final 0
  Distributor ID:	Ubuntu
  Description:	Ubuntu 12.10
  Release:	12.10
  Codename:	quantal
  Information sur l'exception :
  
  'str' object has no attribute 'decode'
  Traceback (most recent call last):
-   File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
-     callback()
-   File "/usr/lib/command-not-found", line 87, in main
-     if not cnf.advise(args[0], options.ignore_installed) and not options.no_failure_msg:
-   File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 277, in advise
-     self.install_prompt(packages[0][0])
-   File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 217, in install_prompt
-     answer = answer.decode(sys.stdin.encoding)
+   File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
+     callback()
+   File "/usr/lib/command-not-found", line 87, in main
+     if not cnf.advise(args[0], options.ignore_installed) and not options.no_failure_msg:
+   File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 277, in advise
+     self.install_prompt(packages[0][0])
+   File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 217, in install_prompt
+     answer = answer.decode(sys.stdin.encoding)
  AttributeError: 'str' object has no attribute 'decode'
+ 
+ [Impact]
+ COMMAND_NOT_FOUND_INSTALL_PROMPT=1 cannot be used.
+ 
+ [Test Case]
+ $ COMMAND_NOT_FOUND_INSTALL_PROMPT=1 tworld
+ then hit 'y' at the prompt
+ observe the traceback
+ 
+ (you may have to select a different command if you have tworld already
+ installed!)
+ 
+ [Regression Potential]
+ None known

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to command-not-found in Ubuntu.
https://bugs.launchpad.net/bugs/1073919

Title:
  Crash with Python 3

Status in command-not-found handler:
  In Progress
Status in “command-not-found” package in Ubuntu:
  In Progress
Status in “command-not-found” source package in Raring:
  In Progress
Status in “command-not-found” source package in Saucy:
  In Progress

Bug description:
  Désolé, command-not-found s'est arrêté anormalement ! Veuillez remplir un rapport de bogue à :
  https://bugs.launchpad.net/command-not-found/+filebug
  Veuillez inclure les informations suivantes dans le rapport :

  Version de command-not-found : 0.3
  Version de python : 3.2.3 final 0
  Distributor ID:	Ubuntu
  Description:	Ubuntu 12.10
  Release:	12.10
  Codename:	quantal
  Information sur l'exception :

  'str' object has no attribute 'decode'
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
      callback()
    File "/usr/lib/command-not-found", line 87, in main
      if not cnf.advise(args[0], options.ignore_installed) and not options.no_failure_msg:
    File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 277, in advise
      self.install_prompt(packages[0][0])
    File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 217, in install_prompt
      answer = answer.decode(sys.stdin.encoding)
  AttributeError: 'str' object has no attribute 'decode'

  [Impact]
  COMMAND_NOT_FOUND_INSTALL_PROMPT=1 cannot be used.

  [Test Case]
  $ COMMAND_NOT_FOUND_INSTALL_PROMPT=1 tworld
  then hit 'y' at the prompt
  observe the traceback

  (you may have to select a different command if you have tworld already
  installed!)

  [Regression Potential]
  None known

To manage notifications about this bug go to:
https://bugs.launchpad.net/command-not-found/+bug/1073919/+subscriptions




More information about the foundations-bugs mailing list