-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
No recommended backend was available. #568
Comments
@PyMarc2 Although you encountered the same error message, that message can happen any time you don't have a viable backend. The issue reported in the other issue is due to issues on Windows Subsystem for Linux (WSL), so probably not relevant to your ARM-based mac, so I've opened up a separate issue. |
I also have an M1 mac, but everything works correctly. What version of Python are you running? Proper support for ARM-based macs wasn't added until Python 3.8.10 or so, and the underlying backend will be broken and thus unavailable. See #525 and #529.
Although installing |
I'm using
|
Unfortunately, the error message "No recommended backend was available" only tells us that when it tried to detect the macOS backend, it failed to do so. Can you troubleshoot in your environment by inputting these into a Python interpreter?
I suspect you'll get different output than I did on my M1 mac. |
I encountered a similar issue when installing keyring on the system of a friend. (On my M1 Pro it works, on his M1 macbook, I am not sure right now which one it is it doesn't) I got the same error as PyMarc2 mentioned. After digging around I found in a related stackoverflow post that we should explicitly set the backend. After adding
to the code I receive this error:
Unfortunately I think the relevant error is suppressed here:
I will try to print the error on my friends install and see what I can get |
The error is intentionally suppressed because that import is known to fail on other platforms. On macOS, however, that import should succeed. You'll want to do as recommended above and run the troubleshooting steps to help elicit the underlying failure.
|
As I mentioned the whole thing is remote, and he is currently traveling but I had him execute this line:
Trace:
|
That's interesting. That error indicates that Next thing I would inspect is to see if the |
So it took a while since he is travelling a lot but to me it seems that both the security command and the keychain app look unsuspicious.
I have the same output on my system. And opening the keychain app doesn't seem a problem and passwords seem to be stored like normal. I am not quite sure what exactly to test. Running keyring I can find the difference that his system doesn't list the OSX keyring.
his system:
my system:
|
So it seems the issue is isolated to this Python environment (not an issue in the system as I'm now wondering if there's something odd about how the |
+1
happens for me on my mac with M1. It seems he doesn't find the backend, but it exists.
The fix was to use
pip install keyrings.alt
so it installs an alternative backend, but I can't see the entered password on the keychain, it seems independent from the system keychain, which is annoying.Originally posted by @PyMarc2 in #566 (comment)
The text was updated successfully, but these errors were encountered: