-
-
Notifications
You must be signed in to change notification settings - Fork 252
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
Update to pyo3 v0.14 #65
Conversation
Hi @messense . Trying to update to the latest version is giving me a weird error. Even though this is working fine on my machine, I am getting errors like Do you happen to know why this might be happening? |
Because of this? |
We should also wait until the asyncio library publishes a release rather than depending on a git branch |
@JackThomson2 , that is true. It is just a test PR atm and also, the builds are not being generated on the base branch. I am in touch with the maintainer of pyo3-asyncio and he plans to release a stable version soon. So, we will only merge it once everything is stabilized there. |
https://github.com/sansyrox/robyn/blob/0551c63fa6333e48c4d5b50611078b0e6729e887/.github/workflows/CI.yml#L73 should be changed to https://github.com/sansyrox/robyn/blob/0551c63fa6333e48c4d5b50611078b0e6729e887/.github/workflows/CI.yml#L40 |
@messense , thank you for this. Is this specific to v0.14.* or this can make things work in 0.13.* versions as well? |
It's only related to |
Thank you @messense. It is now building on windows! 🥳 |
The stable version of the above library will be done by tomorrow. Let's try to make a release before 15th. |
@JackThomson2 , I was trying to migrate to v0.14, but, I am having some difficulties setting the event loop. Can you have a look, if you understand it? |
@sansyrox could you maybe replace the pyo3-asyncio = { git = "https://github.com/awestlake87/pyo3-asyncio", rev = "dd6f2cc7838a2990ed15447ff9ef9f93fa51423d", features = ["attributes", "tokio-runtime"] } awestlake87/pyo3-asyncio#30 is a bit in very active development, and so i recommend following and specializing exact commits instead of a branch, for reproducability's sake, because if you track a branch, rust might switch between grabbing the latest HEAD for that branch, and using the exact revision as denoted in This could help some with the problems you're having, or at least help with clearing up if the latest of the branch still has problems. (https://github.com/awestlake87/pyo3-asyncio/pull/30/commits shows the commit hashes, time goes from old to new downwards, so always pick the last one in the list.) (Pinging @awestlake87 here as well) Edit: Yeah, your lock file is using commit |
Hey @ShadowJonathan . Thank you for this. I have updated it in the latest commit.
|
I opened PR #70 which appears to fix this. Sorry it's not a cleaner fix, it was a bit more complicated than I anticipated. Essentially, since we changed over to using |
Any reason why this cant just be |
Yeah, it's not super clear from that snippet, but the |
test with extension module Check pipeline Fix pyo3 pipeline Try changing shell Try removing deprecation Update latest Cargo files
Co-authored-by: Andrew J Westlake <[email protected]>
Update Cargo.toml to point to head
Thank you, everyone! |
Update pyo3 to the latest version.