Skip to content

Error running examples under Windows #258

@f-lombardo

Description

@f-lombardo

Hello,

I'm trying to run the examples\credentials.py example under Windows 11 (I added a if __name__ == '__main__':, for that) but I get this error:

(.venv) PS C:\Users\xxx\temp\python-fido2\examples>  python .\credential.py
Traceback (most recent call last):
  File "C:\Users\xxx\temp\python-fido2\examples\credential.py", line 63, in <module>
    result = client.make_credential(create_options["publicKey"])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xxx\temp\python-fido2\examples\.venv\Lib\site-packages\fido2\client\windows.py", line 173, in make_credential
    client_data, rp_id = self._client_data_collector.collect_client_data(options)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'collect_client_data'

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions