-
Notifications
You must be signed in to change notification settings - Fork 101
python 3.9 support. #64
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
Comments
I'm also having trouble. I don't think it's my Rust toolchain. Python 3.8 is working fine, but I did build that a while ago. |
Could you provide a more detailed install assuming a Fresh installation of windows? I installed Python 3.9.1, and run "pip install autopy"
THEN I need to load a new shell and run the following.
After this was completed the pip install still fails because I don't have Visual Studio with C++ installed (link.exe failure).
Now pip will properly install. |
Per the instructions at https://github.com/autopilot-rs/autopy#installation:
|
If you follow that error down path. head into the following file and add "#![feature(cfg_doctest)]" without quotes. Around line 70 add it and save the lib.rs. Once done the autopy install will succeed.
|
@meflakcannon that fixed it! I have no idea what it does. Should I report it upstream or something? |
It's an issue with the fact we are locked to that rust nightly from 2019. Ideally that dependency should be updated/fixed so the compile works on a newer nightly or latest (assuming said experimental features are now in release). |
someone can properly tell me to install autopy in python 3.9 |
Check my comment from January 19th anonymousminati. You have to modify the rust cargo documentation and add an "experimental" feature. This is an absolute pain in the ass and since the compile is locked to the nightly from years ago it's not going to be fixed anytime soon. I've since moved all my code that used to utilize this tool to "pyautogui" which enables the same functionality for keyboard and mouse manipulation through python. |
autopy does not support python above 9 so downgrade , it will work |
It works fine. The underlying rust code that is interacted with will not work out of box. It's necessary to modify and enable "experimental" features from a nightly build years old. This Library will never be an out of box pip install because of it's rust integrations and dependence on specific nightly build. Luckily there are other alternative libraries available to achieve the same feature set. |
Folks Once you have enabled the correct rust nightly you will get an error which ultimately complains about E0658 in rust. To fix this you need to enable the doctest feature by adding #![feature(cfg_doctest)] above the error in the lib.rs file usually somewhere down a path such as /users//.cargo/registry/src/github.com-/memoffset-06.1/src/lib.rs
|
@meflakcannon, I have started with So I started again follow your instruction, I adding the comment: then I follow the path: " /users//.cargo/registry/src/github.com-/memoffset-06.1/src/lib.rs" |
a few update: I found my error is a bit different I have found the src folder however I don't know what .rs file should I open and how to open .rs file. |
Could you try this with a wheel for your platform among these build artifacts? https://github.com/autopilot-rs/autopy/actions/runs/14040870872 |
Must be fixed in release 4.0.1. Feel free to reopen if I missed something. |
Is autopy will be updated to work with current python release?
The text was updated successfully, but these errors were encountered: