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

Hard hang in find_python_version() #107

Open
mathrick opened this issue Sep 7, 2021 · 4 comments
Open

Hard hang in find_python_version() #107

mathrick opened this issue Sep 7, 2021 · 4 comments

Comments

@mathrick
Copy link

mathrick commented Sep 7, 2021

I'm not sure what's causing this, and what details of my environment might be relevant, but I'm encountering a hard hang when calling Finder.find_python_version or Finder.find_all_python_versions. The Python process becomes entirely unresponsive, ignoring Ctrl+C, Ctrl+Z and the like. Killing it from another terminal is the only way to quit.

Environment:

  • Ubuntu 20.04
  • Python 3.x (tried with 3.6.8 and 3.8.5)
  • Using pyenv with pyenv-virtualenv
  • Seems to affect all virtualenvs equally
@blueyed
Copy link

blueyed commented Sep 7, 2021

Try Ctrl-d.

I am seeing this with pyrepl being installed (via pdb++), which ships pythoni, which gets picked up / tried by pythonfinder, but acts as an interactive shell always (ignoring --version etc).

I think pythonfinder maybe should close stdin when trying out existing python interpreters maybe at least.

Of course, try also strace, pstree etc to figure out what happens really.

@mathrick
Copy link
Author

mathrick commented Sep 7, 2021

@blueyed: you're right, I do have pdb++ installed. Ctrl+D didn't help (I'm assuming because pythonfinder doesn't attach the TTY when spawning subprocesses), but that sounds very likely.

@mathrick
Copy link
Author

mathrick commented Sep 7, 2021

Now that you mention it, I see pythoni in the ps output, so you're definitely right.

@blueyed
Copy link

blueyed commented Sep 7, 2021

You might need it several times: press it and wait a few seconds, before pressing it again (to not accidentally close the terminal).

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

2 participants