Skip to content
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

exception with eb --install-github-token #3831

Open
scicomp-moffitt opened this issue Sep 12, 2021 · 3 comments
Open

exception with eb --install-github-token #3831

scicomp-moffitt opened this issue Sep 12, 2021 · 3 comments
Milestone

Comments

@scicomp-moffitt
Copy link

I am having this error: on RHEL 8.4 / EB 4.2.2

[scicomp@li1314-234 mcc_easyconfigs]$ eb --install-github-token --debug
== Temporary log file in case of crash /tmp/eb-8lo_zv04/easybuild-9iq_pov_.log
Token:
Validating token...
Token seems to be valid, installing it.
Traceback (most recent call last):
  File "/home/scicomp/.local/lib/python3.6/site-packages/keyring/backends/libsecret.py", line 89, in set_password
    self.schema, attributes, self.collection, label, password, None
GLib.Error: g-io-error-quark: Cannot autolaunch D-Bus without X11 $DISPLAY (0)
The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/scicomp/.local/lib/python3.6/site-packages/easybuild/main.py", line 560, in <module>
    main()
  File "/home/scicomp/.local/lib/python3.6/site-packages/easybuild/main.py", line 253, in main
    install_github_token(options.github_user, silent=build_option('silent'))
  File "/home/scicomp/.local/lib/python3.6/site-packages/easybuild/tools/github.py", line 2203, in install_github_token
    keyring.set_password(KEYRING_GITHUB_TOKEN, github_user, token)
  File "/home/scicomp/.local/lib/python3.6/site-packages/keyring/core.py", line 60, in set_password
    get_keyring().set_password(service_name, username, password)
  File "/home/scicomp/.local/lib/python3.6/site-packages/keyring/backends/chainer.py", line 58, in set_password
    return keyring.set_password(service, username, password)
  File "/home/scicomp/.local/lib/python3.6/site-packages/keyring/backends/libsecret.py", line 97, in set_password
    raise KeyringLocked("Failed to unlock the collection!") from error
keyring.errors.KeyringLocked: Failed to unlock the collection!
@scicomp-moffitt
Copy link
Author

removed keyring, keyrings.alt packages, rebooted and reinstalled packages (keyring==20.0). This worked

@boegel
Copy link
Member

boegel commented Sep 13, 2021

@scicomp-moffitt Thanks for sharing how you fixed this.

It doesn't look like we can do much about this, looks like a problem with keyring itself, so this issue can be closed?

@boegel boegel added this to the 4.x milestone Sep 13, 2021
@branfosj
Copy link
Member

branfosj commented Sep 13, 2021

See jaraco/keyring#521 (comment)

Based on the merge date of that PR, I think we want keyring <= 23.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants