Bug 9868 - yocto-bsp: help command throws exception and messes terminal
Summary: yocto-bsp: help command throws exception and messes terminal
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.2 M2
Assignee: Humberto Ibarra
QA Contact: David Rodriguez
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-07-01 20:47 UTC by Humberto Ibarra
Modified: 2016-07-29 15:57 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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