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

readkey does not work in PyCharm debugger #51

Closed
adlerzei opened this issue Mar 30, 2020 · 6 comments
Closed

readkey does not work in PyCharm debugger #51

adlerzei opened this issue Mar 30, 2020 · 6 comments

Comments

@adlerzei
Copy link

adlerzei commented Mar 30, 2020

Hi,

I love your work but noticed that in PyCharm using the debugger the readkey function never returns anything. I am using Ubuntu 18.04 and PyCharm Community 2019.3.4. readchar is installed via pip in version 2.0.1. Do you know how I can fix it?

Cheerz

@lwanger
Copy link
Contributor

lwanger commented Mar 30, 2020

Have you tried checking the box in the PyCharm debugger for terminal emulation (it is in the run configuration (see picture below). That has solved similar issues for me.

Annotation 2020-03-30 110431
)?

@adlerzei
Copy link
Author

adlerzei commented Apr 7, 2020

Ah sorry for the late reply. Yes I already did that, but without success. Do you have any other idea?

@lwanger
Copy link
Contributor

lwanger commented Apr 7, 2020

Sorry, I don't except for trying the next option down to run with the Python Console. Unfortunately PyCharm likes to grab input when debugging. I had similar problems with working on my cooked_input package.

@adlerzei
Copy link
Author

adlerzei commented Apr 7, 2020

ok, thank you anyway! Anyone else having an idea?

@damc
Copy link

damc commented Feb 17, 2021

In my case, when I check that option, I don't have the error "termios..." and the program works but it halts on readkey function execution and even when I press key in the console, the program still is halting on readkey execution. Has anyone had that problem and solved it?

@spuliaiev-sfdc
Copy link

I have been able to solve it by this fix: #70

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

5 participants