-
-
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" under Tox with all known dependencies installed #283
Comments
It looks like you're expecting to get the secretservice backend. You can troubleshoot by running
That's what I see on my Mac (where I don't expect to see Secret Service supported). If you run the same command, you should get a similar error. Then, use that error to trace where in the code the check is failing and use that to determine what it is about your environment that's causing the backend to be unavailable. |
@Alan-R It looks like you are using Ubuntu, so try installing gnome-keyring package. |
@jaraco It looks like tox creates and destroys its virtual environment each time you run it. So it just says no such module keyring. But tox --showconfig seems to show something surprising...
What I noticed is that sitepackages is False - when I'm pretty sure it needs to be True - and I thought I set it to True. |
That didn't help. Does it make sense to test my code which uses keyring with an alternative backend? That pretty clearly works around the problem. In an ideal world, I'd like to test with the backend I expect to use in production... (although having the keyring unlocked is a potential problem when testing). |
That's weird and unexpected. Tox doesn't do that for me.
That also seems strange. If you have keyring properly installed to an environment, you should be able to import it. But that's not even relevant if something is tearing down your tox environment on each run. I'd start with figuring out why your tox environments are getting destroyed so you can troubleshoot in them. Then ensure in that environment that you have keyring (and other dependencies installed), and then troubleshoot with it. |
@Alan-R Do you still have this issue? If so, could you put together a minimal reproducer of it, maybe in a Dockerfile? |
@Alan-R For SecretService to work you have to pass the dbus socket address (and maybe your display so pinentry can ask your confirmation) to the tox env
This will make keyring work. |
Thanks @CharString. Now that you mention the fix, the cause is apparent. Thanks. That sounds like the right thing to do. I don't think there's anything keyring itself can do to prevent these filtered env vars. If someone wishes to submit a PR to the readme or docs to help others, I'd welcome that. In the meantime, closing as answered. |
When running my tests under Tox, I get this well-known message:
When I run the same tests under nose (outside of tox) everything is happy...
Here's what's in my tox.ini:
Here's what Tox says is installed:
The text was updated successfully, but these errors were encountered: