Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M mercurial_keyring
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mercurialmercurial
  • mercurial_keyring
  • Issues
  • #25
Closed
Open
Issue created Jul 03, 2013 by Bitbucket Importer@bitbucket_importerOwner

demandimport error - Issue with Google back end

Created originally on Bitbucket by alejandrogiacometti (Alejandro Giacometti)

Mercurial is unable to import keyring due to some error with the gdata back end.

Here is the traceback:

*** failed to import extension mercurial_keyring: 'module' object has no attribute 'service'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/mercurial/extensions.py", line 92, in loadall
    load(ui, name, path)
  File "/usr/local/lib/python2.7/site-packages/mercurial/extensions.py", line 79, in load
    mod = importh(name)
  File "/usr/local/lib/python2.7/site-packages/mercurial/extensions.py", line 69, in importh
    mod = __import__(name)
  File "/usr/local/lib/python2.7/site-packages/mercurial/demandimport.py", line 95, in _demandimport
    return _import(name, globals, locals, fromlist, level)
  File "/usr/local/lib/python2.7/site-packages/mercurial_keyring.py", line 61, in <module>
    import keyring
  File "/usr/local/lib/python2.7/site-packages/mercurial/demandimport.py", line 95, in _demandimport
    return _import(name, globals, locals, fromlist, level)
  File "/usr/local/lib/python2.7/site-packages/keyring/__init__.py", line 9, in <module>
    from core import (set_keyring, get_keyring, set_password, get_password,
  File "/usr/local/lib/python2.7/site-packages/mercurial/demandimport.py", line 114, in _demandimport
    mod = _origimport(name, globals, locals)
  File "/usr/local/lib/python2.7/site-packages/keyring/core.py", line 166, in <module>
    init_backend()
  File "/usr/local/lib/python2.7/site-packages/keyring/core.py", line 63, in init_backend
    keyrings = backend.get_all_keyring()
  File "/usr/local/lib/python2.7/site-packages/keyring/util/__init__.py", line 24, in wrapper
    func.always_returns = func(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/keyring/backend.py", line 94, in get_all_keyring
    exceptions=TypeError))
  File "/usr/local/lib/python2.7/site-packages/keyring/util/__init__.py", line 37, in suppress_exceptions
    yield callable()
  File "/usr/local/lib/python2.7/site-packages/keyring/backends/Google.py", line 308, in __init__
    credential, source, crypter)
  File "/usr/local/lib/python2.7/site-packages/keyring/backends/Google.py", line 43, in __init__
    DocsService = (__import__('gdata.docs.service')
  File "/usr/local/lib/python2.7/site-packages/mercurial/demandimport.py", line 95, in _demandimport
    return _import(name, globals, locals, fromlist, level)
  File "/usr/local/lib/python2.7/site-packages/gdata/docs/service.py", line 83, in <module>
    class DocsService(gdata.service.GDataService):
  File "/usr/local/lib/python2.7/site-packages/mercurial/demandimport.py", line 86, in __getattribute__
    self._load()
  File "/usr/local/lib/python2.7/site-packages/mercurial/demandimport.py", line 58, in _load
    mod = _origimport(head, globals, locals)
  File "/usr/local/lib/python2.7/site-packages/gdata/service.py", line 123, in <module>
    http_request_handler = atom.service
  File "/usr/local/lib/python2.7/site-packages/mercurial/demandimport.py", line 87, in __getattribute__
    return getattr(self._module, attr)
AttributeError: 'module' object has no attribute 'service'
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking