autopy icon indicating copy to clipboard operation
autopy copied to clipboard

AttributeError: module 'autopy' has no attribute 'mouse'

Open x011 opened this issue 4 years ago • 2 comments

Traceback (most recent call last):

File "/home/user/script.py", line 366, in <module>
    autopy.mouse.move(500, 550)
AttributeError: module 'autopy' has no attribute 'mouse'

ubuntu 20

Any idea how to fix this?

x011 avatar May 24 '20 05:05 x011

This may be a duplicate of #58. Is there another folder in your current working directory named "autopy"? If so, can you change directories and try again?

msanders avatar May 24 '20 20:05 msanders

No, I don't have file or folder named autopy on the same dir, but uninstalling the version installed by root and re-installing using -U seems to solve the problem:

pip3 uninstall -y autopy
pip3 install autopy -U

x011 avatar May 29 '20 01:05 x011