autopy icon indicating copy to clipboard operation
autopy copied to clipboard

Autopy is not installing

Open CoderZ90 opened this issue 3 years ago • 6 comments

I am trying to install autopy but it is not installing i dont whats the problem

CoderZ90 avatar Jun 25 '21 06:06 CoderZ90

Kindly share the error

Urmila17 avatar Jul 01 '21 06:07 Urmila17

Facing the same issue ! It says that it is unable to build the wheel and gives a huge error of about 1000 lines The last error in it was : ERROR: Command errored out with exit status 1: 'c:\users\tanis\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\tanis\\AppData\\Local\\Temp\\pip-install-samkc724\\autopy_b403c348405c42f88ef195b9aeb46af1\\setup.py'"'"'; __file__='"'"'C:\\Users\\tanis\\AppData\\Local\\Temp\\pip-install-samkc724\\autopy_b403c348405c42f88ef195b9aeb46af1\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\tanis\AppData\Local\Temp\pip-record-xjxgsy3x\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\tanis\appdata\local\programs\python\python39\Include\autopy' Check the logs for full command output. Python version - 3.9.5 Rustup nightly version - 2019-10-05 Thanks

TanishqSinghAnand avatar Jul 09 '21 15:07 TanishqSinghAnand

I tried to install it in python 3.7.0 and it worked fine but it is still not able to install it in python 3.9.5

TanishqSinghAnand avatar Jul 09 '21 15:07 TanishqSinghAnand

autopy does not support python above 9 so downgrade , it will work. With the current release of 3.9.1+, not all features have been upgraded. Move all your code that used to utilize this tool to "pyautogui" which enables the same functionality for keyboard and mouse manipulation through python.

Urmila17 avatar Jul 10 '21 02:07 Urmila17

Okay thank you

TanishqSinghAnand avatar Jul 10 '21 06:07 TanishqSinghAnand

When i try to install autopy i get this error:

EDIT (Sorry for the weird format, idk)

Collecting autopy==4.0.0 Using cached autopy-4.0.0.tar.gz (20 kB)

ERROR: Command errored out with exit status 1:
 command: 'F:\PyCharmProjects\VirtualMouseAI\venv\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\maxia\\AppData\\Local\\Temp\\pip-install-bc05paqq\\autopy_a61a6f8060e84428abc5254903e33bb2\\setup.py'"'"'; __file__='"'"'C:\\Users\\maxia\\AppData\\Local\\Temp\\pip-install-bc05paqq\\autopy_a61a6f8060e84428abc5254903e33bb2\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\maxia\AppData\Local\Temp\pip-pip-egg-info-6djyb16q'
     cwd: C:\Users\maxia\AppData\Local\Temp\pip-install-bc05paqq\autopy_a61a6f8060e84428abc5254903e33bb2\
Complete output (5 lines):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\maxia\AppData\Local\Temp\pip-install-bc05paqq\autopy_a61a6f8060e84428abc5254903e33bb2\setup.py", line 8, in <module>
    from setuptools_rust import Binding, RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'
----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/3d/3e/e589bfe03c7ee1c3d832dda10b908557f25a09d66acfc8fc7d982ee23d1a/autopy-4.0.0.tar.gz#sha256=b889dc1245426aa06769d3d87df0d96904ca729d0e9441a0096aa3ae9fbae43f (from https://pypi.org/simple/autopy/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement autopy==4.0.0 (from versions: 0.5, 0.51, 1.0.0, 1.0.1, 1.1.0, 1.1.1, 2.0.0, 2.1.0, 3.0.0, 3.0.1, 3.1.0, 4.0.0) ERROR: No matching distribution found for autopy==4.0.0 WARNING: You are using pip version 21.1.2; however, version 21.2.1 is available. You should consider upgrading via the 'F:\PyCharmProjects\VirtualMouseAI\venv\Scripts\python.exe -m pip install --upgrade pip' command.

IBims1ckoky avatar Jul 29 '21 14:07 IBims1ckoky