panzi / verify-ehc

Simple Python script to decode and verify an European Health Certificate QR-code
60 stars 17 forks source link

error with Python 3.10.0 #35

Closed sky59 closed 1 year ago

sky59 commented 1 year ago

here is the error description: (should the py file be changed or Python problem?)

Traceback (most recent call last): File "/ehc/verify_ehc.py", line 2493, in main() File "/ehc/verify_ehc.py", line 2400, in main certs = download_ehc_certs(parse_sources(args.certs_from), check_kid, certs_table) File "/ehc/verify_ehc.py", line 1400, in download_ehc_certs certs.update(downloader(check_kid)) File "/ehc/verify_ehc.py", line 747, in download_de_certs pubkey = get_root_cert('DE').public_key() # type: ignore File "/ehc/verify_ehc.py", line 1525, in get_root_cert return ROOT_CERT_DOWNLOADERS[source]() File "/ehc/verify_ehc.py", line 1483, in get_de_root_cert return HackCertificate(get_de_root_pubkey()) TypeError: Can't instantiate abstract class HackCertificate with abstract method tbs_precertificate_bytes

panzi commented 1 year ago

I'm still on Python 3.9 and an old cryptography version, but did commit 5c00825de3df68d40e26368908cdacf008a75b84 fix it for you?

sky59 commented 1 year ago

Yes, I added 4 lines and it works now! Thanx

panzi commented 1 year ago

Great!