uunicorn / python-validity

Validity fingerprint sensor prototype
MIT License
920 stars 79 forks source link

AttributeError: 'Tls' object has no attribute 'ecdh_q' #155

Open hetvos opened 1 year ago

hetvos commented 1 year ago

The issue is occurring on an Arch Linux install when using both the python-validity and python-validity-git AUR packages logs from systemctl status python3-validity

Apr 10 10:27:02 blue dbus-service[76719]:     open_common()
Apr 10 10:27:02 blue dbus-service[76719]:   File "/usr/lib/python3.10/site-packages/validitysensor/init.py", line 32, in open_common
Apr 10 10:27:02 blue dbus-service[76719]:     tls.open()
Apr 10 10:27:02 blue dbus-service[76719]:   File "/usr/lib/python3.10/site-packages/validitysensor/tls.py", line 137, in open
Apr 10 10:27:02 blue dbus-service[76719]:     self.make_keys()
Apr 10 10:27:02 blue dbus-service[76719]:   File "/usr/lib/python3.10/site-packages/validitysensor/tls.py", line 160, in make_keys
Apr 10 10:27:02 blue dbus-service[76719]:     pre_master_secret = skey.exchange(ec.ECDH(), self.ecdh_q)
Apr 10 10:27:02 blue dbus-service[76719]: AttributeError: 'Tls' object has no attribute 'ecdh_q'
Apr 10 10:27:02 blue systemd[1]: python3-validity.service: Main process exited, code=exited, status=1/FAILURE
Apr 10 10:27:02 blue systemd[1]: python3-validity.service: Failed with result 'exit-code'.
lcorbasson commented 8 months ago

Try: sudo validity-sensors-tools.factory-reset