Skip to content

Error when piping output into another program #2

Open
@kortina

Description

@kortina

On os x, I had a list in my clipboard, did:
pbpaste | bar_chart.py -v |head -n 30

The chart works fin when I do not pipe into head, but I wanted to only show the top 30 items. Piping into head does limit to 30 rows, as expected, but at the end I also see this error output printed:

close failed in file object destructor:
Error in sys.excepthook:

Original exception was:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions