-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Does cryptography support Python 3.13 currently? #10806
Comments
In principle we should work on Python 3.13, but we haven't been able to
test in CI because of a lack of a CFFI release.
…On Fri, Apr 12, 2024 at 8:47 PM Damian Shaw ***@***.***> wrote:
Sorry if this is already answered, I tried searching and only found the
blocking issue python-cffi/cffi#23
<python-cffi/cffi#23> which seems now resolved.
I was trying to set up pip CI for 3.13 and one of the issues I ran into is
pip tests import cryptography here:
https://github.com/pypa/pip/blob/main/tests/lib/certs.py#L4
And on Python 3.13 they seem to give the error:
ImportError: /home/damian/.pyenv/versions/pip_testing_313a6/lib/python3.13/site-packages/_cffi_backend.cpython-313-x86_64-linux-gnu.so: undefined symbol: _PyErr_WriteUnraisableMsg
thread '<unnamed>' panicked at /github/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyo3-0.20.3/src/err/mod.rs:788:5:
Python API call failed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
import tests.lib.certs
File "/home/damian/opensource_contributions/pip/tests/lib/certs.py", line 4, in <module>
from cryptography import x509
File "/home/damian/.pyenv/versions/pip_testing_313a6/lib/python3.13/site-packages/cryptography/x509/__init__.py", line 7, in <module>
from cryptography.x509 import certificate_transparency, verification
File "/home/damian/.pyenv/versions/pip_testing_313a6/lib/python3.13/site-packages/cryptography/x509/certificate_transparency.py", line 11, in <module>
from cryptography.hazmat.bindings._rust import x509 as rust_x509
pyo3_runtime.PanicException: Python API call failed
I assume #10676 <#10676> might
be related but it was unclear to me.
Feel free to close this issue if this is made clear somewhere else
—
Reply to this email directly, view it on GitHub
<#10806>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAGBGNBFOPGA4VALIQJWDY5B6DPAVCNFSM6AAAAABGE7RWTSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2DCMJVGQZTEOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
All that is necessary for evil to succeed is for good people to do nothing.
|
Thanks, for pip tests at least, the workaround of pulling directly from github seems to be sufficent and looks like all tests using cryptography are passing on Python 3.13. |
FYI, python-cffi has a release now (https://github.com/python-cffi/cffi/releases/tag/v1.17.0rc1). |
Great. pip won't pick it up by default since it's a pre-release, but good
to see.
…On Wed, Jun 5, 2024, 10:02 AM Nico Schlömer ***@***.***> wrote:
FYI, python-cffi has a release now (
https://github.com/python-cffi/cffi/releases/tag/v1.17.0rc1).
—
Reply to this email directly, view it on GitHub
<#10806 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAGBCOQWEGE2GTZJEFVCLZF4LATAVCNFSM6AAAAABGE7RWTSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJQGA3DSNJUGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Sorry if this is already answered, I tried searching and only found the blocking issue python-cffi/cffi#23 which seems now resolved.
I was trying to set up pip CI for 3.13 and one of the issues I ran into is pip tests import cryptography here: https://github.com/pypa/pip/blob/main/tests/lib/certs.py#L4
And on Python 3.13 they seem to give the error:
I assume #10676 might be related but it was unclear to me.
Feel free to close this issue if this is made clear somewhere else
The text was updated successfully, but these errors were encountered: