Ask coding questions

← Back to all posts
When trying to use mouse / import, I'm getting a recursion error / package operation fail
LightInIn1 (0)

from webbot import Browser
import time
from keyboard import press
import mouse

web = Browser()

tab = 1
add = 1

web.go_to('https://tankster.io')
time.sleep(7.5)

mouse.move(585, 335, absolute=True, duration=0.5)
mouse.click('left')

text_areas = web.find_elements(xpath='//input')
web.type(web.Key.ENTER,into=text_areas[0].text)

time.sleep(3)

global h
h = 100

while(h > 99):
press('enter')
time.sleep(5)

Start-up starts out normal:

Repl.it: Updating package configuration

--> python3 -m poetry add mouse

Using version ^0.7.1 for mouse

Then produces the following error:

[RecursionError]
maximum recursion depth exceeded
exit status 1

Repl.it: Package operation failed.

I've never gotten any errors like this before, any help would be greatly appreciated!

Answered by BD103 (139) [earned 5 cycles]
View Answer
Comments
hotnewtop
BD103 (139)

This seems to be a bug with the mouse package. See here