Bug 9868

Summary: yocto-bsp: help command throws exception and messes terminal
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Humberto Ibarra <humberto.ibarra.lopez>
Component: Scripts and ToolsAssignee: Humberto Ibarra <humberto.ibarra.lopez>
Status: RESOLVED FIXED QA Contact: David Rodriguez <david.israelx.rodriguez.castellanos>
Severity: normal    
Priority: Medium+ CC: jose.perez.carranza, richard.purdie, ross.burton
Version: 2.2   
Target Milestone: 2.2 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Humberto Ibarra 2016-07-01 20:47:16 UTC
Issuing 'yocto-bsp help create' throws the following output:

  File "/home/humberto/poky-test43/scripts/lib/bsp/help.py", line 67, in invoke_subcommand
    yocto_help(args, main_command_usage, subcommands)
  File "/home/humberto/poky-test43/scripts/lib/bsp/help.py", line 54, in yocto_help
    if len(args) == 1 or not display_help(args[1], subcommands):
  File "/home/humberto/poky-test43/scripts/lib/bsp/help.py", line 45, in display_help
    pager.communicate(help)
  File "/usr/local/lib/python3.4/subprocess.py", line 943, in communicate
    self.stdin.write(input)
TypeError: 'str' does not support the buffer interface
(END)[humberto@jhibarra-MOBL1 build]$ 


Also after exiting pager, the terminal is messed and needs to be closed.
Comment 1 Humberto Ibarra 2016-07-02 18:17:37 UTC
Sent patch

https://lists.yoctoproject.org/pipermail/poky/2016-July/010604.html