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

Unable to install autopy - Compilation errors? #70

Open
kookok0 opened this issue Apr 11, 2021 · 2 comments
Open

Unable to install autopy - Compilation errors? #70

kookok0 opened this issue Apr 11, 2021 · 2 comments

Comments

@kookok0
Copy link

kookok0 commented Apr 11, 2021

Hi,

I'd like to apologize in advance for digging up this thread. I was trying to troubleshoot this myself, but here's what I did, and how it's not working for me:
(I am also very new to the python/rust thingy. I know a bit about C/C++, and also code structure, but my knowledge is very limited, so I also apologize for that in advance)

C:\Users\havoc\Desktop\granblue-automation-pyautogui-main>rustup show
Default host: x86_64-pc-windows-msvc
rustup home:  C:\Users\havoc\.rustup
[compilation_error2.txt](https://github.com/autopilot-rs/autopy/files/6292195/compilation_error2.txt)

installed toolchains
--------------------

stable-x86_64-pc-windows-gnu
stable-x86_64-pc-windows-msvc (default)
nightly-x86_64-pc-windows-msvc

active toolchain
----------------

stable-x86_64-pc-windows-msvc (default)
rustc 1.51.0 (2fd73fabe 2021-03-23)


C:\Users\havoc\Desktop\granblue-automation-pyautogui-main>rustup override set nightly
info: using existing install for 'nightly-x86_64-pc-windows-msvc'
info: override toolchain for 'C:\Users\havoc\Desktop\granblue-automation-pyautogui-main' set to 'nightly-x86_64-pc-windows-msvc'

  nightly-x86_64-pc-windows-msvc unchanged - rustc 1.53.0-nightly (a836d9b64 2021-04-10)


C:\Users\havoc\Desktop\granblue-automation-pyautogui-main>rustup show
Default host: x86_64-pc-windows-msvc
rustup home:  C:\Users\havoc\.rustup

installed toolchains
--------------------

stable-x86_64-pc-windows-gnu
stable-x86_64-pc-windows-msvc (default)
nightly-x86_64-pc-windows-msvc

active toolchain
----------------

nightly-x86_64-pc-windows-msvc (directory override for '\\?\C:\Users\havoc\Desktop\granblue-automation-pyautogui-main')
rustc 1.53.0-nightly (a836d9b64 2021-04-10)


C:\Users\havoc\Desktop\granblue-automation-pyautogui-main>rustup default nightly
info: using existing install for 'nightly-x86_64-pc-windows-msvc'
info: default toolchain set to 'nightly-x86_64-pc-windows-msvc'

  nightly-x86_64-pc-windows-msvc unchanged - rustc 1.53.0-nightly (a836d9b64 2021-04-10)

info: note that the toolchain 'nightly-x86_64-pc-windows-msvc' is currently in use (directory override for '\\?\C:\Users\havoc\Desktop\granblue-automation-pyautogui-main')

C:\Users\havoc\Desktop\granblue-automation-pyautogui-main>rustup default
nightly-x86_64-pc-windows-msvc (default)

Now I install autopy via "py -m pip install autopy, then get the compilation error shown in the .txt file attached. Can anyone help with this?

@kookok0
Copy link
Author

kookok0 commented Apr 11, 2021

I am unsure if my edit properly included the .txt file. Commenting again to re-attach just in case.
compilation_error2.txt

@meflakcannon
Copy link

meflakcannon commented Jun 2, 2021

Go read #64

There are some needed changes in the rust files to enable proper install of this tool. Specifically you need to be on the correct rust nightly. Which looking at your output. You are not.

rustup install nightly nightly-2019-10-05-x86_64-pc-windows-msvc --force
rustup default nightly-2019-10-05-x86_64-pc-windows-msvc

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

2 participants