polhenarejos / pico-fido

Transforming a Raspberry Pico into a FIDO Passkey
https://www.picokeys.com
GNU General Public License v3.0
270 stars 36 forks source link

Issue in Pico-fido-tool.py #37

Closed Aadinthosh closed 7 months ago

Aadinthosh commented 7 months ago

I am trying to use pico-fido-tool.py file for accessing the pico-fido board with the pin and while doing so I am getting this error message AttributeError: 'NoneType' object has no attribute 'capabilities'

polhenarejos commented 7 months ago

I'd need more debug, like the entire traceback, which firmware version, etc.

Aadinthosh commented 7 months ago

@polhenarejos I am using the firmware version pico_fido_pico-5.8.uf2 and I am using the Pico H board for experimentation. The exception traceback is mentioned below

D:\IoT-Projects\pico-fido\tools> python3 .\pico-fido-tool.py -p 12345678 Pico Fido Tool v1.6 Author: Pol Henarejos Report bugs to https://github.com/polhenarejos/pico-fido/issues

Traceback (most recent call last): File "D:\IoT-Projects\pico-fido\tools\pico-fido-tool.py", line 469, in run() File "D:\IoT-Projects\pico-fido\tools\pico-fido-tool.py", line 466, in run main(args) File "D:\IoT-Projects\pico-fido\tools\pico-fido-tool.py", line 452, in main ctap = Ctap2Vendor(dev) File "D:\IoT-Projects\pico-fido\tools\pico-fido-tool.py", line 111, in init super().init(device=device, strict_cbor=strict_cbor) File "C:\Users\santh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\fido2\ctap2\base.py", line 204, in init if not device.capabilities & CAPABILITY.CBOR: AttributeError: 'NoneType' object has no attribute 'capabilities'

polhenarejos commented 7 months ago

False alarm. FIDO2 devices in Windows need Admin privileges. Try to open a new Console with Admin privileges and call it again. It should work.