question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception: Failed: 04af

See original GitHub issue

I am very new to GitHub,so I want to thank for everyone who contributes this program. Also, English is not my native language, I’m sorry for any misspelled words.

The program complains about 04af error when I was trying to factory resetting my fingerprint driver. Every time after I run the following code sudo python3 /usr/share/python-validity/playground/factory-reset.py -v (no log produced, sudo validity-sensors-firmware runned, python3-validity.service stopped), sudo systemctl status python3-validity.service complains about 04af error. See the attached file for journalctl -u python3-validity.service -b (very long!) log.log You can see it complains about Exception: Failed: 04afwhen I flashing the fingerprint driver. I can not know what the error code mean, and I hope you can troubleshoot the error.

Addition note: I also reset the fingerprint in bios, but it does not work. The fingerprint on ubuntu used to work about 7 months ago, with https://github.com/3v1n0/libfprint/ , but one day I found out it did not work. Until today, I can not figure out why it’s not working. I even reinstall ubuntu, switch to Arch linux and run this program, but still no luck.

The following include my hardware information: OS: ubuntu 20.04 Kernel: 5.13.0-48-generic Host: 20F9A043HH ThinkPad T460s Fingerprint: Bus 001 Device 011: ID 138a:0090 Validity Sensors, Inc. VFS7500 Touch Fingerprint Sensor (via lsusb) DE: Gnome 3.36.8

I thank for everyone who develop this program

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:34 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
uunicorncommented, Jun 11, 2022

That’s all right. This topic came up a few times and wanted to write everything up before I forget it.

To finish pairing, you can try this:

  • edit /usr/lib/python3/dist-packages/validitysensor/init_flash.py:
diff --git a/validitysensor/init_flash.py b/validitysensor/init_flash.py
index 6cd54ec..7dfd546 100644
--- a/validitysensor/init_flash.py
+++ b/validitysensor/init_flash.py
@@ -40,10 +40,6 @@ crypto_backend = default_backend()
 
 
 def get_partition_signature():
-    if usb.usb_dev().idVendor == 0x138a:
-        if usb.usb_dev().idProduct == 0x0090:
-            return b''
-
     return partition_signature
 
 
  • reboot
  • go to your BIOS settings and do another factory reset for the fingerprint reader
  • boot into Linux, and check the logs (e.g journalctl -u python3-validity.service -b)
  • if there are no errors and no python-validity activity for a few minutes, proceed (if you have any concerns at this point, stop here and share the logs)
  • remove python-validity, open-fprintd and fprintd-clients packages
  • install stock fprintd with @3v1n0 's libfprint fork
0reactions
maxso-216commented, Aug 4, 2022

It’s been a long time, but I finally to get it paired. After decide to upgrading (with formatting) to Ubuntu 22.04, and a fingerprint reset, the program displace no error. But now, validity-sensors-tools -t led-dance displace PY_SSIZE_T_CLEAN macro must be defined for '#' formats error. This is due to python 3.10 changing, and related to validity-sensors-tools. For now, it successfully pair, and bugs solved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Initializer fails: Unexpected TLS Version 4 0 · Issue #26
Try 1 failed with error: Failed: 04af Opening device 0x97 ... in parse_tls_response raise Exception('Unexpected TLS version %d %d' % (mj, ...
Read more >
Validity90/Lobby - Gitter
Try 2 failed with error: Flash is already partitioned Opening device 0x97 ... Exception: Failed: 04af 8月 07 09:49:40 whiterabbit-ThinkPad-Yoga-260 ...
Read more >
Help with Lenovo T470s fingerprint sensor: Validity 138a ...
... I get an error when I try to initilize of failed 04af and then unexpected TLS version 4 0. I have set...
Read more >
Unable to initialize Fingerprint Sensor using Validity
Try 1 failed with error: Failed: 04af Opening device 0x90 ... in parse_tls_response raise Exception('Unexpected TLS version %d %d' % (mj, ...
Read more >
How to solve the problem of getting HostName Verification ...
How to solve the problem of getting HostName Verification Exception in HTTP ... SSL connection to remote server, due to Hostname verification failure....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found