{"action":"created","issue":{"url":"https://api.github.com/repos/jaraco/keyring/issues/119","labels_url":"https://api.github.com/repos/jaraco/keyring/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/jaraco/keyring/issues/119/comments","events_url":"https://api.github.com/repos/jaraco/keyring/issues/119/events","html_url":"https://github.com/jaraco/keyring/issues/119","id":58653237,"number":119,"title":"NameError: global name 'KWallet' is not defined","user":{"login":"jaraco","id":308610,"avatar_url":"https://avatars.githubusercontent.com/u/308610?v=3","gravatar_id":"","url":"https://api.github.com/users/jaraco","html_url":"https://github.com/jaraco","followers_url":"https://api.github.com/users/jaraco/followers","following_url":"https://api.github.com/users/jaraco/following{/other_user}","gists_url":"https://api.github.com/users/jaraco/gists{/gist_id}","starred_url":"https://api.github.com/users/jaraco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaraco/subscriptions","organizations_url":"https://api.github.com/users/jaraco/orgs","repos_url":"https://api.github.com/users/jaraco/repos","events_url":"https://api.github.com/users/jaraco/events{/privacy}","received_events_url":"https://api.github.com/users/jaraco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-23T21:41:07Z","updated_at":"2015-02-23T21:41:08Z","closed_at":null,"body":"Using 3.0.5. My ~/.local/share/python_keyring/keyringrc.cfg:\n\n```ini\n[backend]\ndefault-keyring = keyring.backends.kwallet.Keyring\n```\n\nWhile try:\n\n```bash\n$ LC_ALL=C hg in                                                                                                                                                                            \n** Unknown exception encountered with possibly-broken third-party extension mercurial_keyring\n** which supports versions unknown of Mercurial.\n** Please disable mercurial_keyring and try your action again.\n** If that fixes the bug please report it to the extension author.\n** Python 2.7.5 (default, Sep  6 2013, 09:55:21) [GCC 4.8.1 20130725 (prerelease)]\n** Mercurial Distributed SCM (version 2.7.2)\n** Extensions loaded: graphlog, mq, convert, progress, rebase, record, transplant, purge, mercurial_keyring\n```\n\nGet:\n\n```python\nTraceback (most recent call last):\n  File \"/usr/bin/hg\", line 38, in <module>\n    mercurial.dispatch.run()\n  File \"/usr/lib/python2.7/site-packages/mercurial/dispatch.py\", line 28, in run\n    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)\n  File \"/usr/lib/python2.7/site-packages/mercurial/dispatch.py\", line 69, in dispatch\n    ret = _runcatch(req)\n  File \"/usr/lib/python2.7/site-packages/mercurial/dispatch.py\", line 97, in _runcatch\n    return _dispatch(req)\n  File \"/usr/lib/python2.7/site-packages/mercurial/dispatch.py\", line 778, in _dispatch\n    cmdpats, cmdoptions)\n  File \"/usr/lib/python2.7/site-packages/mercurial/dispatch.py\", line 549, in runcommand\n    ret = _runcommand(ui, options, cmd, d)\n  File \"/usr/lib/python2.7/site-packages/mercurial/dispatch.py\", line 869, in _runcommand\n    return checkargs()\n  File \"/usr/lib/python2.7/site-packages/mercurial/dispatch.py\", line 840, in checkargs\n    return cmdfunc()\n  File \"/usr/lib/python2.7/site-packages/mercurial/dispatch.py\", line 775, in <lambda>\n    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)\n  File \"/usr/lib/python2.7/site-packages/mercurial/util.py\", line 507, in check\n    return func(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/mercurial/extensions.py\", line 143, in wrap\n    util.checksignature(origfn), *args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/mercurial/util.py\", line 507, in check\n    return func(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/hgext/mq.py\", line 3533, in mqcommand\n    return orig(ui, repo, *args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/mercurial/util.py\", line 507, in check\n    return func(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/mercurial/commands.py\", line 3872, in incoming\n    return hg.incoming(ui, repo, source, opts)\n  File \"/usr/lib/python2.7/site-packages/mercurial/hg.py\", line 548, in incoming\n    return _incoming(display, subreporecurse, ui, repo, source, opts)\n  File \"/usr/lib/python2.7/site-packages/mercurial/hg.py\", line 500, in _incoming\n    other = peer(repo, opts, source)\n  File \"/usr/lib/python2.7/site-packages/mercurial/hg.py\", line 122, in peer\n    return _peerorrepo(rui, path, create).peer()\n  File \"/usr/lib/python2.7/site-packages/mercurial/hg.py\", line 102, in _peerorrepo\n    obj = _peerlookup(path).instance(ui, path, create)\n  File \"/usr/lib/python2.7/site-packages/mercurial/httppeer.py\", line 238, in instance\n    inst._fetchcaps()\n  File \"/usr/lib/python2.7/site-packages/mercurial/httppeer.py\", line 57, in _fetchcaps\n    self.caps = set(self._call('capabilities').split())\n  File \"/usr/lib/python2.7/site-packages/mercurial/httppeer.py\", line 171, in _call\n    fp = self._callstream(cmd, **args)\n  File \"/usr/lib/python2.7/site-packages/mercurial/httppeer.py\", line 118, in _callstream\n    resp = self.urlopener.open(req)\n  File \"/usr/lib/python2.7/urllib2.py\", line 410, in open\n    response = meth(req, response)\n  File \"/usr/lib/python2.7/urllib2.py\", line 523, in http_response\n    'http', request, response, code, msg, hdrs)\n  File \"/usr/lib/python2.7/urllib2.py\", line 442, in error\n    result = self._call_chain(*args)\n  File \"/usr/lib/python2.7/urllib2.py\", line 382, in _call_chain\n    result = func(*args)\n  File \"/usr/lib/python2.7/urllib2.py\", line 897, in http_error_401\n    url, req, headers)\n  File \"/usr/lib/python2.7/site-packages/mercurial/url.py\", line 431, in http_error_auth_reqed\n    self, auth_header, host, req, headers)\n  File \"/usr/lib/python2.7/site-packages/mercurial_keyring.py\", line 386, in basic_http_error_auth_reqed\n    return basic_http_error_auth_reqed.orig(self, authreq, host, req, headers)\n  File \"/usr/lib/python2.7/urllib2.py\", line 872, in http_error_auth_reqed\n    response = self.retry_http_basic_auth(host, req, realm)\n  File \"/usr/lib/python2.7/urllib2.py\", line 878, in retry_http_basic_auth\n    user, pw = self.passwd.find_user_password(realm, host)\n  File \"/usr/lib/python2.7/site-packages/mercurial_keyring.py\", line 380, in find_user_password\n    return self._pwd_handler.find_auth(self, realm, authuri, req)\n  File \"/usr/lib/python2.7/site-packages/mercurial_keyring.py\", line 231, in find_auth\n    pwd = password_store.get_http_password(keyring_url, user)\n  File \"/usr/lib/python2.7/site-packages/mercurial_keyring.py\", line 114, in get_http_password\n    self._format_http_key(url, username))\n  File \"/usr/lib/python2.7/site-packages/keyring/core.py\", line 36, in get_password\n    return _keyring_backend.get_password(service_name, username)\n  File \"/usr/lib/python2.7/site-packages/keyring/backends/kwallet.py\", line 68, in get_password\n    network = KWallet.Wallet.NetworkWallet()\nNameError: global name 'KWallet' is not defined\n```\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/kang/python-keyring-lib/issue/119\n- Originally reported by: Vladislav Polukhin\n- Originally created at: 2013-10-18T05:07:47.034\n"},"comment":{"url":"https://api.github.com/repos/jaraco/keyring/issues/comments/75640566","html_url":"https://github.com/jaraco/keyring/issues/119#issuecomment-75640566","issue_url":"https://api.github.com/repos/jaraco/keyring/issues/119","id":75640566,"user":{"login":"jaraco","id":308610,"avatar_url":"https://avatars.githubusercontent.com/u/308610?v=3","gravatar_id":"","url":"https://api.github.com/users/jaraco","html_url":"https://github.com/jaraco","followers_url":"https://api.github.com/users/jaraco/followers","following_url":"https://api.github.com/users/jaraco/following{/other_user}","gists_url":"https://api.github.com/users/jaraco/gists{/gist_id}","starred_url":"https://api.github.com/users/jaraco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaraco/subscriptions","organizations_url":"https://api.github.com/users/jaraco/orgs","repos_url":"https://api.github.com/users/jaraco/repos","events_url":"https://api.github.com/users/jaraco/events{/privacy}","received_events_url":"https://api.github.com/users/jaraco/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T21:41:08Z","updated_at":"2015-02-23T21:41:08Z","body":"```python\nIn [1]: import keyring\n\nIn [2]: print(keyring._keyring_backend.priority)\n---------------------------------------------------------------------------\nAttributeError                            Traceback (most recent call last)\n<ipython-input-2-9679929176d6> in <module>()\n----> 1 print(keyring._keyring_backend.priority)\n\nAttributeError: 'module' object has no attribute '_keyring_backend'\n```\n\n----------------------------------------\nOriginal comment by: Vladislav Polukhin\n"}}