autopy
autopy copied to clipboard
i am unable to install autopy ti is giving this error. please tell me hoe=w can i solve it
ERROR: Command errored out with exit status 1:
command: 'C:\Users\hp\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\setup.py'"'"'; file='"'"'C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\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'"'"'))' bdist_wheel -d 'C:\Users\hp\AppData\Local\Temp\pip-wheel-qqcpajil'
cwd: C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3
Complete output (51 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib
creating build\lib\autopy
copying autopy_init_.py -> build\lib\autopy
running build_ext
running build_rust
Updating crates.io index
cargo rustc --lib --manifest-path Cargo.toml --features pyo3/extension-module --target x86_64-pc-windows-msvc --release --verbose -- --crate-type cdylib
Compiling autocfg v1.0.1
Compiling cfg-if v1.0.0
Compiling proc-macro2 v0.4.30
Compiling unicode-xid v0.1.0
Running rustc --crate-name autocfg C:\Users\hp\.cargo\registry\src\github.com-1ecc6299db9ec823\autocfg-1.0.1\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off -C metadata=4159de32c7c883fb -C extra-filename=-4159de32c7c883fb --out-dir C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps -L dependency=C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps --cap-lints allow
Running rustc --crate-name cfg_if --edition=2018 C:\Users\hp\.cargo\registry\src\github.com-1ecc6299db9ec823\cfg-if-1.0.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=9eb8f1d8f19520d6 -C extra-filename=-9eb8f1d8f19520d6 --out-dir C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\x86_64-pc-windows-msvc\release\deps --target x86_64-pc-windows-msvc -L dependency=C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\x86_64-pc-windows-msvc\release\deps -L dependency=C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps --cap-lints allow
Running rustc --crate-name build_script_build C:\Users\hp\.cargo\registry\src\github.com-1ecc6299db9ec823\proc-macro2-0.4.30\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg "feature=\"default\"" --cfg "feature=\"proc-macro\"" -C metadata=240e1d2fea568e31 -C extra-filename=-240e1d2fea568e31 --out-dir C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\build\proc-macro2-240e1d2fea568e31 -L dependency=C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps --cap-lints allow
Running rustc --crate-name unicode_xid C:\Users\hp\.cargo\registry\src\github.com-1ecc6299db9ec823\unicode-xid-0.1.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --cfg "feature=\"default\"" -C metadata=eeded5aca77a177e -C extra-filename=-eeded5aca77a177e --out-dir C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps -L dependency=C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps --cap-lints allow
Compiling crossbeam-utils v0.8.5
Running rustc --crate-name build_script_build --edition=2018 C:\Users\hp\.cargo\registry\src\github.com-1ecc6299db9ec823\crossbeam-utils-0.8.5\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg "feature=\"default\"" --cfg "feature=\"lazy_static\"" --cfg "feature=\"std\"" -C metadata=e25eda9925fe17e1 -C extra-filename=-e25eda9925fe17e1 --out-dir C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\build\crossbeam-utils-e25eda9925fe17e1 -L dependency=C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps --cap-lints allow
Compiling lazy_static v1.4.0
Running rustc --crate-name lazy_static C:\Users\hp\.cargo\registry\src\github.com-1ecc6299db9ec823\lazy_static-1.4.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=d339eabdfbf74769 -C extra-filename=-d339eabdfbf74769 --out-dir C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\x86_64-pc-windows-msvc\release\deps --target x86_64-pc-windows-msvc -L dependency=C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\x86_64-pc-windows-msvc\release\deps -L dependency=C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps --cap-lints allow
error: linker link.exe
not found
|
= note: The system cannot find the file specified. (os error 2)
error: linker link.exe
not found
|
= note: The system cannot find the file specified. (os error 2)
note: the msvc targets depend on the msvc linker but link.exe
was not found
note: the msvc targets depend on the msvc linker but link.exe
was not found
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option
error: aborting due to previous error
error: aborting due to previous error
error: could not compile proc-macro2
Caused by:
process didn't exit successfully: rustc --crate-name build_script_build C:\Users\hp\.cargo\registry\src\github.com-1ecc6299db9ec823\proc-macro2-0.4.30\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg "feature=\"default\"" --cfg "feature=\"proc-macro\"" -C metadata=240e1d2fea568e31 -C extra-filename=-240e1d2fea568e31 --out-dir C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\build\proc-macro2-240e1d2fea568e31 -L dependency=C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps --cap-lints allow
(exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: build failed
error: cargo failed with code: 101
ERROR: Failed building wheel for autopy
Running setup.py clean for autopy
Failed to build autopy
Installing collected packages: autopy
Running setup.py install for autopy ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\hp\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\setup.py'"'"'; file='"'"'C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\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\hp\AppData\Local\Temp\pip-record-tvrhax3z\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\hp\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\autopy'
cwd: C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3
Complete output (60 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\autopy
copying autopy_init_.py -> build\lib.win-amd64-3.9\autopy
running build_ext
running build_rust
cargo rustc --lib --manifest-path Cargo.toml --features pyo3/extension-module --target x86_64-pc-windows-msvc --release --verbose -- --crate-type cdylib
Compiling autocfg v1.0.1
Compiling cfg-if v1.0.0
Compiling proc-macro2 v0.4.30
Compiling unicode-xid v0.1.0
Running rustc --crate-name autocfg C:\Users\hp\.cargo\registry\src\github.com-1ecc6299db9ec823\autocfg-1.0.1\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off -C metadata=4159de32c7c883fb -C extra-filename=-4159de32c7c883fb --out-dir C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps -L dependency=C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps --cap-lints allow
Running rustc --crate-name cfg_if --edition=2018 C:\Users\hp\.cargo\registry\src\github.com-1ecc6299db9ec823\cfg-if-1.0.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=9eb8f1d8f19520d6 -C extra-filename=-9eb8f1d8f19520d6 --out-dir C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\x86_64-pc-windows-msvc\release\deps --target x86_64-pc-windows-msvc -L dependency=C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\x86_64-pc-windows-msvc\release\deps -L dependency=C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps --cap-lints allow
Running rustc --crate-name build_script_build C:\Users\hp\.cargo\registry\src\github.com-1ecc6299db9ec823\proc-macro2-0.4.30\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg "feature=\"default\"" --cfg "feature=\"proc-macro\"" -C metadata=240e1d2fea568e31 -C extra-filename=-240e1d2fea568e31 --out-dir C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\build\proc-macro2-240e1d2fea568e31 -L dependency=C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps --cap-lints allow
Running rustc --crate-name unicode_xid C:\Users\hp\.cargo\registry\src\github.com-1ecc6299db9ec823\unicode-xid-0.1.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --cfg "feature=\"default\"" -C metadata=eeded5aca77a177e -C extra-filename=-eeded5aca77a177e --out-dir C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps -L dependency=C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps --cap-lints allow
Compiling crossbeam-utils v0.8.5
Running rustc --crate-name build_script_build --edition=2018 C:\Users\hp\.cargo\registry\src\github.com-1ecc6299db9ec823\crossbeam-utils-0.8.5\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg "feature=\"default\"" --cfg "feature=\"lazy_static\"" --cfg "feature=\"std\"" -C metadata=e25eda9925fe17e1 -C extra-filename=-e25eda9925fe17e1 --out-dir C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\build\crossbeam-utils-e25eda9925fe17e1 -L dependency=C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps --cap-lints allow
Compiling syn v0.15.44
Running rustc --crate-name build_script_build C:\Users\hp\.cargo\registry\src\github.com-1ecc6299db9ec823\syn-0.15.44\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg "feature=\"clone-impls\"" --cfg "feature=\"default\"" --cfg "feature=\"derive\"" --cfg "feature=\"extra-traits\"" --cfg "feature=\"full\"" --cfg "feature=\"parsing\"" --cfg "feature=\"printing\"" --cfg "feature=\"proc-macro\"" --cfg "feature=\"quote\"" -C metadata=c241789e09540f98 -C extra-filename=-c241789e09540f98 --out-dir C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\build\syn-c241789e09540f98 -L dependency=C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps --cap-lints allow
error: linker link.exe
not found
|
= note: The system cannot find the file specified. (os error 2)
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option
error: aborting due to previous error
error: could not compile `crossbeam-utils`
Caused by:
process didn't exit successfully: `rustc --crate-name build_script_build --edition=2018 C:\Users\hp\.cargo\registry\src\github.com-1ecc6299db9ec823\crossbeam-utils-0.8.5\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg "feature=\"default\"" --cfg "feature=\"lazy_static\"" --cfg "feature=\"std\"" -C metadata=e25eda9925fe17e1 -C extra-filename=-e25eda9925fe17e1 --out-dir C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\build\crossbeam-utils-e25eda9925fe17e1 -L dependency=C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\target\release\deps --cap-lints allow` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: linker `link.exe` not found
|
= note: The system cannot find the file specified. (os error 2)
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option
error: aborting due to previous error
error: linker `link.exe` not found
|
= note: The system cannot find the file specified. (os error 2)
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option
error: aborting due to previous error
error: build failed
error: cargo failed with code: 101
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\hp\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\setup.py'"'"'; file='"'"'C:\Users\hp\AppData\Local\Temp\pip-install-jckbtsnq\autopy_0b9363e327c748a2b51de6733d40dca3\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\hp\AppData\Local\Temp\pip-record-tvrhax3z\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\hp\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\autopy' Check the logs for full command output.