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

Autopy is not installing #78

Open
CoderZ90 opened this issue Jun 25, 2021 · 6 comments
Open

Autopy is not installing #78

CoderZ90 opened this issue Jun 25, 2021 · 6 comments

Comments

@CoderZ90
Copy link

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

@Urmila17
Copy link

Urmila17 commented Jul 1, 2021

Kindly share the error

@TanishqSinghAnand
Copy link

TanishqSinghAnand commented Jul 9, 2021

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
Copy link

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

@Urmila17
Copy link

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.

@TanishqSinghAnand
Copy link

Okay thank you

@IBims1ckoky
Copy link

IBims1ckoky commented Jul 29, 2021

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.

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

4 participants