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

name 'keyboard' is not defined #599

Closed
andreguiw opened this issue Apr 28, 2024 · 1 comment
Closed

name 'keyboard' is not defined #599

andreguiw opened this issue Apr 28, 2024 · 1 comment

Comments

@andreguiw
Copy link

I got this nameError exactly where all events are being called using the non blocking fashion in my last function of the code which I defined as start() as you guys can see in the print below. Is anyone having this issue??

nameerror

@moses-palmer
Copy link
Owner

Thank you for your report.

Since you only have included a screenshot and not the full source, I can only make a guess as to what the issue might be, but the Python interpreter raising a NameError indicates that you have not imported the keyboard module. Are you sure that you have an from pynput import keyboard statement at the top of the file?

I will close this issue, as I doubt that this is a bug with pynput. If you disagree, please reopen.

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