Comments (8)
We don't pass the passwords in as a command line option for security reasons. So the two places the password can go is either your system keychain or if it's not found, the script will ask you for the password. ~/.htrc
is definitely not the correct place, and actually won't do anything at all.
I haven't used the keyring
lib myself... @jaraco does this error indicate he's got the python lib keyring
installed, but it's not finding any GH/BB creds in the keyring? If so, should we be catching this error and dropping back to manually prompting or is there a better way?
In the meantime @abadger1406 as a workaround, I suggest uninstalling the keyring lib: pip uninstall keyring
and then re-running the script... it will realize keyring isn't installed and prompt you for the passwords then.
from bitbucket-issue-migration.
Same here, except my error says "no recommended backend was available".
I'm running Ubuntu 14.04 here, and had to install pip3 in my machine - only had Python 3. Additionally, I don't think I even use the system keychain - maybe it's not setup at all, and thus it issued that message? If that's indeed the case, I guess the script should silently fail and prompt for password.
Finally, from pure interpretation I guess what you said is right: the @abadger1406 error means the keyring do not have the GH/BB passwords.
from bitbucket-issue-migration.
This sounds like a separate issue--likely as you say the system keychain simply isn't setup--but I'm not too familiar with the keyring library. Hopefully @jaraco can explain a little more of what's happening here?
from bitbucket-issue-migration.
Ugh.
So keyring 8.0 removes a bunch of non-preferred backends, which means it may be possible that there is no valid backend available, leading to the error message (which itself erroneously referenced 'preferred password' instead of 'preferred backend' until 8.0.1).
See jaraco/keyring#117 for a history leading to the 8.0 release.
from bitbucket-issue-migration.
EDIT: Looks like you're already ahead of me in the linked issue. Whenever this is resolved, we should just require the latest version of keyring and call it a day. Thanks!
My original comment:
- For the first issue above--where he seems to have an available backend, any idea why Keyring throws an exception rather than returning None when GH/BB creds weren't available?
- When a preferred backend isn't available, sounds like we just need to catch the exception. I also have no problem with requiring
keyring >= 8.0.1
.
I'm a little surprised keyring throws an exception rather than just returning None when no backend is available... I guess it makes sense in other contexts to know why it's explicitly failing, but in this context, all we need is just try to grab the creds, and if they aren't available, then revert to manually asking the user--doesn't matter to us if they aren't available due to no backend or no creds.
from bitbucket-issue-migration.
The quick workaround is to also install keyrings.alt
which will bring in the non-preferred backends and one of them will return None for the call to get_password
, allowing the script to prompt for the password and continue.
from bitbucket-issue-migration.
If you would just pull that commit, I expect it fixes the issue with minimal fuss. Assuming it works well, I'll make it a formal recommendation for other projects moving forward.
from bitbucket-issue-migration.
Thanks @jaraco really appreciate you willing to help maintain the keyring implementation here.
I didn't test it myself, but it makes sense in theory and since this should error in an obvious way, I'm fine with assuming it works and then dealing with any issues that crop up.
from bitbucket-issue-migration.
Related Issues (20)
- Support for attachments? HOT 12
- Repeated failures verifying github issue import HOT 6
- Proposal: Truncate all labels to 50 characters HOT 1
- dry-run crashes in milestone code HOT 1
- shorter/prettier style for gh issues HOT 5
- Doesn't work for private Github repos HOT 3
- Cannot install dependencies because venv tool deprecated. HOT 1
- KeyError assuming "username" key HOT 3
- Failed to POST due to unexpected HTTP status code: 410 HOT 2
- Import crashes due to name clash between default labels and imported labels HOT 1
- Github rejects comments where the body is just a newline
- Creates invalid BitBucket user links for users without username HOT 2
- Read user mapping from file HOT 1
- Properly attribute comments to users HOT 3
- Permission denied if issues are private HOT 3
- Support bitbucket priorities
- Does not support images within issue comments
- No such file or directory: '' HOT 3
- Older issues that reference newer issues don't automatically link
- Does this close the Bitbucket issues? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitbucket-issue-migration.