-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
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
YubiKey Manager doesn't recognise YubiKey(s) #320
Comments
Hey, |
Launched with
It continues after that, but looked like repetition. |
I see. I tried on a Mac with Apple Silicon and it works. In your case it looks like YubiKey Manager is using your local installation of Python when looking up the cryptography package, for example: |
I'm not sure updating the local cryptography package will work as it will remain the same arch (I think that's the problem it's having with the cryptography package it's picking up?). I'll try though. I've noticed another issue where it seemed it was picking up the wrong python installation -- is it worth having the software warn about this? (Also, would having an Apple Silicon native version of the software help? Albeit it would still presumably be picking up external python packages.) |
Ok, I've tried the path thing, I'm not sure if I set the variables correctly but it keeps reaching out to the system installation for cryptography -- is it possible this is because there isn't a copy included in the app bundle (that I can see -- not a python expert). I was trying
|
You need to check under |
Could you try setting |
Thanks, that seems to have fixed it. Could the app be updated so it doesn't let the system installation interfere? |
It should be possible. We can look into it for the next release(s). Thanks for the suggestion! |
Just ran into this as well, would be awesome to see this fixed, maybe utilizing a virtual environment going forward or just exporting the variables as needed for that invocation? Until then, I'll share a little helper function I use to extract the correct python variables and run YubiKey Manager: #######################################
# Launch yubikey with the current python environment variables set for the
# application.
#######################################
yubikey-manage() {
local yubikey_mngr_base_path=/Applications/YubiKey\ Manager.app/Contents
local python_base_path="${yubikey_mngr_base_path}"/Frameworks/Python.framework/Versions
local python_version
# Find where the current symlink points to for yubikey's env
python_version="$(readlink -f "${python_base_path}"/Current)"
# Get the version number off the end of the path for python
python_version="${python_version##*/}"
PYTHONHOME="${python_base_path}/Current" \
PYTHONPATH="${python_base_path}/Current/lib/python${python_version}/site-packages" \
"${yubikey_mngr_base_path}/MacOS/ykman-gui" --log-level DEBUG
} Expects |
Same as #328 , I have added my logs there. |
This just happened to me with a brand new YubiKey 5Ci on MacOS 13.1, MacBook Pro M1 Max. I ended up "fixing" it with the PYTHONPATH trick. Would be good to get this resolved in the app. |
FYI I created a tiny wrapper script to automate launching the YubiKey manager on MacOS with the correct environment: https://github.com/nckroy/yubiman-wrapper |
@treatybreaker solution works, huge thumbs up him for that, but. 8 months later and bug is still there. |
Hey! |
1.2.5 Same issue. |
I have the same issue with 1.25 on Windows 10 and with the app image version on Kubuntu 22.10. Will try to fix it via the suggestions in this post. |
Experiencing the same thing, app built from source on Fedora 39 according to instructions in According to all other indications, keys are detected and functioning normally -- I can log in to websites via webauthn, I can use the Yubico demo pages, playground site, etc. I can see the key in |
It's not showing my key either on Fedora 40Beta. Installed with
|
I have the same issue that @manualdidact and @JohnAZoidberg in Fedora (installed from the Fedora repos)
Same issue reported in #357 |
Same error here with arch :
|
After upgrading from Ubuntu 23.10 to 24.04, I have the same problem. THIS IS REALLY BAD as I need the authenticator app to access crucial services. How can this be fixed? |
@h-2 Are you commenting in the correct repo? YubiKey Manager GUI is not an authenticator app, maybe you want https://github.com/Yubico/yubioath-flutter instead? |
It affects ykman-gui, as well, but I just saw that it is also being tracked downstream: |
Unfortunately the package for yubioath-desktop is VERY outdated (5.x). The latest version of Yubico Authenticator is 7.0, and we recommend you download it directly from here: https://github.com/Yubico/yubioath-flutter/releases As for YubiKey Manager GUI, we also recommend that you instead use Yubico Authenticator 7 which is a much newer and more capable tool. |
Thanks for pointing this out. The new version works. I guess Ubuntu is just outdated :( |
Thanks for this information, I was trying to get yubikey-manager-qt working on fedora 40 and hitting the same bug |
Steps to reproduce
Launch the app.
Expected result
Being able to interact with software to configure the keys.
Actual results
After launching the app, it just displays the "Insert your YubiKey" screen and doesn't recognise either of the keys.
Other info
ykman (CLI) 4.0.8 installed from MacPorts can see the keys and work with them. I can see this in the console app (but don't know if it's relevant):
default 15:15:46.456978+0100 kernel AMFI: constraint violation /private/var/folders/tr/jlgtdj9x2x5_72n5dlfx1h_r0000gn/T/AppTranslocation/6A5D5AC5-D643-4178-918D-933D108CEDD2/d/YubiKey Manager.app/Contents/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/_blake2.cpython-39-darwin.so has entitlements but is not a main binary
The text was updated successfully, but these errors were encountered: