Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken pipe when piping to less #29

Open
maleasy opened this issue Oct 4, 2022 · 0 comments
Open

Broken pipe when piping to less #29

maleasy opened this issue Oct 4, 2022 · 0 comments

Comments

@maleasy
Copy link

maleasy commented Oct 4, 2022

When piping parquet-tools csv output to less, I consistently get a BrokenPipeError when less is closed:

> parquet-tools csv my.parquet | less
Traceback (most recent call last):
  File "/.../bin/parquet-tools", line 10, in <module>
    sys.exit(main())
  File ".../lib/python3.9/site-packages/parquet_tools/cli.py", line 26, in main
    args.handler(args)
  File "/.../lib/python3.9/site-packages/parquet_tools/commands/csv.py", line 46, in _cli
    _execute(
  File "/.../lib/python3.9/site-packages/parquet_tools/commands/csv.py", line 62, in _execute
    print(df_select.to_csv(index=None))
  File "/.../lib/python3.9/site-packages/colorama/ansitowin32.py", line 47, in write
    self.__convertor.write(text)
  File "/.../lib/python3.9/site-packages/colorama/ansitowin32.py", line 170, in write
    self.write_and_convert(text)
  File "/.../lib/python3.9/site-packages/colorama/ansitowin32.py", line 198, in write_and_convert
    self.write_plain_text(text, cursor, len(text))
  File "/.../lib/python3.9/site-packages/colorama/ansitowin32.py", line 203, in write_plain_text
    self.wrapped.write(text[start:end])
BrokenPipeError: [Errno 32] Broken pipe

It is not a deal breaker, since in less I can see the output just fine. It is just a bit distracting, so I thought I'd mention it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant