keyring module error
- Dominant language
- Python
- Stars
- 634
- Forks
- 44
- PR merge metrics
- No merged PRs in 30d
Description
import keyring
keyring.set_password(‘a’,’b’,’c’)
Gives:
`NameError` Traceback (most recent call last)
/var/mobile/Containers/Data/Application/415FE8A3-9150-4DC4-BB74-03B29A13F6B5/Library/lib/python3.7/site-packages/keyring/backends/OS_X.py in set_password(self, service, username, password)
37 try:
---> 38 api.set_generic_password(self.keychain, service, username, password)
39 except api.KeychainDenied as e:
NameError: name 'api' is not defined
During handling of the above exception, another exception occurred:
NameError Traceback (most recent call last)
in
1 import keyring
----> 2 keyring.set_password('a','b','c')
/var/mobile/Containers/Data/Application/415FE8A3-9150-4DC4-BB74-03B29A13F6B5/Library/lib/python3.7/site-packages/keyring/core.py in set_password(service_name, username, password)
60 """Set password for the user in the specified service.
61 """
---> 62 _keyring_backend.set_password(service_name, username, password)
63
64
/var/mobile/Containers/Data/Application/415FE8A3-9150-4DC4-BB74-03B29A13F6B5/Library/lib/python3.7/site-packages/keyring/backends/OS_X.py in set_password(self, service, username, password)
37 try:
38 api.set_generic_password(self.keychain, service, username, password)
---> 39 except api.KeychainDenied as e:
40 raise KeyringLocked("Can't store password on keychain: " "{}".format(e))
41 except api.Error as e:
NameError: name 'api' is not defined `
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported import and keyring.set_password call in the Carnets environment. The traceback points to keyring/backends/OS_X.py, where api is referenced; inspect how this backend is loaded on iOS and verify the call no longer produces the reported NameError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, python
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100