Skip to content

Commit d95b065

Browse files
authored
Add solution to Ubuntu keyring issue
1 parent c99443c commit d95b065

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,21 @@ Default value is `''`.
9494

9595
## FAQ
9696

97+
### I use Ubuntu and get errors when signing in. How can I fix it?
98+
99+
Ubuntu users might see the error message below when signing in.
100+
```text
101+
raise InitError("Failed to unlock the collection!")
102+
keyring.errors.InitError: Failed to unlock the collection!
103+
```
104+
105+
It's caused by the misconfiguration of python-keyring. One way to fix it is to create a file `~/.local/share/python_keyring/keyringrc.cfg` with the following content:
106+
107+
```ini
108+
[backend]
109+
default-keyring=keyring.backends.Gnome.Keyring
110+
```
111+
97112
### Why can't I test the problem/submit the problem/list the problems?
98113

99114
~~Once you sign in on your browser in LeetCode website, the LeetCode session in

0 commit comments

Comments
 (0)