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

"bzip2: I/O or other error" when displaying help under python 2 #325

Closed
ghost opened this issue Jun 1, 2015 · 7 comments
Closed

"bzip2: I/O or other error" when displaying help under python 2 #325

ghost opened this issue Jun 1, 2015 · 7 comments
Labels

Comments

@ghost
Copy link

ghost commented Jun 1, 2015

Source: https://bugs.gentoo.org/show_bug.cgi?id=409745

Steps to Reproduce:

  1. Run ranger under python 2
  2. Press '?' to open man page
  3. Quit man page
  4. Quit ranger

Result:

bzip2: I/O or other error, bailing out.  Possible reason follows.
bzip2: Broken pipe
    Input file = /usr/share/man/man1/ranger.1.bz2, output file = (stdout)

bzip2: I/O or other error, bailing out.  Possible reason follows.
bzip2: Broken pipe
    Input file = /usr/share/man/man1/ranger.1.bz2, output file = (stdout)
@ghost
Copy link
Author

ghost commented Jun 1, 2015

To be sure, I also verified that the bug happens when building directly from the repo, not only from gentoo packages.

@hut
Copy link
Member

hut commented Jun 7, 2015

Can't reproduce on archlinux. Perhaps because of

$ find /usr/share/man/ -name 'ranger*'
/usr/share/man/man1/ranger.1
/usr/share/man/man1/ranger.1.gz

To be sure, I also verified that the bug happens when building directly from the repo, not only from gentoo packages.

That's odd, because ranger's install script doesn't compress the man page.

@hut hut added the bug label Jun 7, 2015
@ghost
Copy link
Author

ghost commented Jun 7, 2015

I don't think it's related to how the man page was installed. Even though I was running directly from the repo, the /usr/share/man/man1/ranger.1.bz2 file in question was the one that I had already installed from Portage.

The interesting part is that it only happens with python 2. It probably is something about Popen that changed between 2 and 3.

@hut
Copy link
Member

hut commented Jun 7, 2015

Does it happen with this too?

python -c 'from subprocess import *; Popen(["man", "ranger"]).wait()'

@ghost
Copy link
Author

ghost commented Jun 7, 2015

Yes, but not with python3 -c 'from subprocess import *; Popen(["man", "ranger"]).wait()'. It doesn't do that an your system? So it would be an env-specific bug?

@hut
Copy link
Member

hut commented Jun 7, 2015

Yup, works for me. With both pyhon 2.7.10 and 3.4.3.

@ghost
Copy link
Author

ghost commented Jun 7, 2015

Oh, then this problem would be entirely unrelated to ranger. Sorry for the noise.

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

No branches or pull requests

1 participant