question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mouse.click() does not work for the interpreter in terminal

See original GitHub issue

Steps to reproduce:

  1. Install mouse: python3 -m pip install mouse
  2. Open the interpreter with sudo: sudo python3
  3. Do the following:
import mouse
import time

while True:
  time.sleep(1)
  mouse.click()

No errors are thrown; It just silently fails. My mouse doesn’t appear to select anything when I slowly glide it by some text in a text editor.

I am running Ubuntu 18.04.5 LTS

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:10
  • Comments:9

github_iconTop GitHub Comments

2reactions
vincens2005commented, May 19, 2021

I’m having this same issue on Manjaro

2reactions
SerxoLaxecommented, Feb 1, 2021

I have the same problem, I’m running Ubuntu 19.10

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is pyauto gui and Pycharm not working for me?
One possible reason why this issue may occur is because your Python interpreter on PyCharm is an older version (2.7 or older).
Read more >
Mouse clicks suddenly stopped working in Ubuntu - Super User
The odd thing is, it doesn't take clicks from my mouse, but it fully recognizes my touchpad. Anyway, opening a terminal (e.g., with...
Read more >
Terminal emulator | PyCharm Documentation - JetBrains
Right-click a project item in the Project tool window and choose Open in terminal from the context menu. This way the terminal will...
Read more >
16.04 - Mouse cursor turned into a "thick plus", cannot click but ...
'exit -f' also works if you don't care about the contents of the current terminal window. – jackw11111. Feb 18, 2019 at 0:52....
Read more >
curses — Terminal handling for character-cell displays ...
The resize_term() function attempts to resize all windows. However, due to the calling convention of pads, it is not possible to resize these...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found