We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The example code results in circular import error and is never able to check for the presence of a key.
How can one trust in the security of security product when even the example code does not work?
Exception has occurred: AttributeError partially initialized module 'yubico' has no attribute 'find_yubikey' (most likely due to a circular import)
` #!/usr/bin/env python """ Get version of connected YubiKey. """
import sys import yubico
try: yubikey = yubico.find_yubikey(debug=False) print("Version: {}".format(yubikey.version())) except yubico.yubico_exception.YubicoError as e: print("ERROR: {}".format(e.reason)) sys.exit(1) `
python --version Python 3.10.4
pip show python-yubico Name: python-yubico Version: 1.3.3 Summary: Python code for talking to Yubico's YubiKeys Home-page: https://github.com/Yubico/python-yubico Author: Dain Nilsson Author-email: [email protected] License: BSD 2 clause Location: d:\python\envs\py10\lib\site-packages Requires: pyusb Required-by:
pip show pyusb Name: pyusb Version: 1.2.1 Summary: Python USB access module Home-page: https://pyusb.github.io/pyusb Author: Jonas Malaco Author-email: [email protected] License: UNKNOWN Location: d:\python\envs\py10\lib\site-packages Requires: Required-by: python-yubico
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The example code results in circular import error and is never able to check for the presence of a key.
How can one trust in the security of security product when even the example code does not work?
Exception has occurred: AttributeError
partially initialized module 'yubico' has no attribute 'find_yubikey' (most likely due to a circular import)
Using the exact example code:
`
#!/usr/bin/env python
""" Get version of connected YubiKey. """
import sys
import yubico
try:
yubikey = yubico.find_yubikey(debug=False)
print("Version: {}".format(yubikey.version()))
except yubico.yubico_exception.YubicoError as e:
print("ERROR: {}".format(e.reason))
sys.exit(1)
`
Version Info
The text was updated successfully, but these errors were encountered: