无法导入扩展名mercurial_keyring - Rhodecode - Object没有属性NullHandler

时间:2015-02-12 20:26:24

标签: mercurial tortoisehg hgrc rhodecode mercurial-keyring

机器环境:带有Cygwin / TortoiseHg的Windows7机箱,Linux机箱(RHEL)。 Mercurial / Hg - 3.0.1版本

我尝试集成mercurial_keyring来执行用户名/密码少的操作。 Mercurial密钥环首次提示每个用户/每个存储库链接,但在此之后,它不会提示。

我们的Hg存储库代码最近已迁移到RhodeCode。

我的机器上有mercurial_keyring.py(python)文件(由此链接提供):https://pypi.python.org/pypi/mercurial_keyringhttps://bitbucket.org/Mekk/mercurial_keyring/src/tip/mercurial_keyring.py

在执行hg clone或任何hg命令时,我在命令提示符下使用时会出现以下错误(在Linux或Windows机器上通过Cygwin)。

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

我的〜/ .hgrc文件如下:

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

[ui]
# name and email, e.g.
# username = Jane Doe <jdoe@example.com>
username=koba <koba.loki@shenzi.com>

[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

在Cygwin,我还有另一个错误:

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

0 个答案:

没有答案