AKS
AKS

Reputation: 17366

Failed to import extension mercurial_keyring - Rhodecode - Object has no attribute NullHandler

Machine Env: Windows7 box with Cygwin/TortoiseHg, Linux box (RHEL). Mercurial/Hg - 3.0.1 version

I'm trying to integrate mercurial_keyring to perform username/password less operations. Mercurial keyring prompts first time per user / per repository link but after that, it doesn't prompt.

Our Hg repository code recently migrated to RhodeCode.

I have mercurial_keyring.py (python) file available on my machine (provided by this link): https://pypi.python.org/pypi/mercurial_keyring and https://bitbucket.org/Mekk/mercurial_keyring/src/tip/mercurial_keyring.py

While doing hg clone or any hg command, I'm getting the following error when used at command prompt (either in Linux or Windows machine via Cygwin).

*** failed to import extension hgext.mercurial_keyring from /root/AKS/goga/mercurial_keyring.py: 'module' object has no attribute 'NullHandler'

My ~/.hgrc file looks like:

# example config (see "hg help config" for more info)

[ui]
# name and email, e.g.
# username = Jane Doe <[email protected]>
username=koba <[email protected]>

[extensions]
# uncomment these lines to enable some popular extensions
# (see "hg help extensions" for more info)
# pager =
# progress =
# color =
hgext.mercurial_keyring = /root/AKS/goga/mercurial_keyring.py

[paths]
default = http://hg-server.cm.shenzi.com:8082

[auth]
default1.schemes = http https
default1.prefix = hg-server:8082
default1.username = koba

default.schemes = http https
default.prefix = hg-server.cm.shenzi.com:8082
default.username = koba

default3.schemes = http https
default3.prefix = 12.112.91.112
default3.username = koba

In Cygwin, I also got another error:

*** failed to import extension hgext.mercurial_keyring from ~/MerKeyRing/mercurial_keyring.py: No module named keyring

Upvotes: 0

Views: 4070

Answers (0)

Related Questions