fido2-tests icon indicating copy to clipboard operation
fido2-tests copied to clipboard

Fidotests not working

Open jolo1581 opened this issue 5 years ago • 8 comments

Hi,

just installed the latest fido tests. Now they don't work. I tried a solo hacker and a solo hacker on nucleo board.

I tired pytest tests/vendor -s and pytest -k "hmac_secret" -s. At both the first test works. All following tests fail.

I use Manjaro Linux with latest git of libfido2.

jolo1581 avatar Apr 06 '20 17:04 jolo1581

Are you using >=4.0.0 firmware?

conorpp avatar Apr 06 '20 18:04 conorpp

Yes. Build from actual master

jolo1581 avatar Apr 06 '20 18:04 jolo1581

I have the same problem from when I upgraded MacOS to BigSur. BTW, I used some of the code in your examples to add support for Solokeys in Secrez, now it is not working, causing a lot of troubles to the users. I investigated the issue and finally I cloned again this repo and repeated the process. Testing, now, I have the same errors. Can you take a look, please?

sullof avatar Jan 13 '21 20:01 sullof

Can you attach some kind of log? Or link to a gist with your traceback?

nickray avatar Jan 13 '21 20:01 nickray

@nickray At this link there is the output of the tests https://www.dropbox.com/s/bbf7qcwq9xrzf47/test-result.txt?dl=0

sullof avatar Jan 13 '21 23:01 sullof

It seems like fido2.hid.CtapHidDevice.list_devices() is not working, which is Yubico's Python FIDO2 library that we use. I doubt it's the thing that's broken, as I've been using Python3.8 and now Python3.9 on Linux myself.

Can you absolutely rule out that during this OS upgrade you ended up with a mix of libraries for Python 3.8 and whatever version of Python you had before? With Python, minor version changes are essentially incompatible languages.

Perhaps you can pip install fido2 in a clean virtual environment and check if just this list_devices command works?

nickray avatar Jan 13 '21 23:01 nickray

Consider that I followed the instructions, so I installed a clean Python using make venv and activate it. I am not sure that it is related with the upgrade to Big Sur, I just noticed the problem now.

sullof avatar Jan 14 '21 01:01 sullof

@nickray I repeated the entire process on my old macbook and there are the same errors. So, it is a problem with Python 3.8, I guess. Maybe you could open an issue on https://github.com/Yubico/python-fido2/issues I am sure you can be more precise than me.

sullof avatar Jan 14 '21 01:01 sullof