-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
rust: add PyCryptoOps, test #9355
Conversation
Signed-off-by: William Woodruff <[email protected]>
I'm not 100% sure, but I'm pretty sure this test is failing because the code it tests is Python invoked through an
|
...rather than smuggling the error type. Signed-off-by: William Woodruff <[email protected]>
Confirmed this: the key extraction fails on this: py.import(pyo3::intern!(
py,
"cryptography.hazmat.primitives.serialization"
)) |
Yeah, it's some kind of pathing issue: I'm running ['/Users/william/.pyenv/versions/3.11.2/lib/python311.zip', '/Users/william/.pyenv/versions/3.11.2/lib/python3.11', '/Users/william/.pyenv/versions/3.11.2/lib/python3.11/lib-dynload', '/Users/william/.pyenv/versions/3.11.2/lib/python3.11/site-packages'] compared to ['', '/Users/william/.pyenv/versions/3.11.2/lib/python311.zip', '/Users/william/.pyenv/versions/3.11.2/lib/python3.11', '/Users/william/.pyenv/versions/3.11.2/lib/python3.11/lib-dynload', '/Users/william/devel/cryptography/env/lib/python3.11/site-packages', '/Users/william/devel/cryptography/src'] Not sure why that is yet. |
This appears to be a manifestation of PyO3/pyo3#1741. |
Just to summarize the problems here:
Given these two, a breakout here is probably more trouble than its worth. I'll push up the final state here, then close and fold the relevant parts back into #8873. |
Signed-off-by: William Woodruff <[email protected]>
Another breakout from #8873.