私はMercurialを使用したマルチユーザーシステムに取り組んでいます。私は最近システムを使用していません、そして今日私は再び始めたいと思いました、しかし水銀は働くことを拒否します:
$ hg help
*** failed to import extension transplant from
mercurial_keyring =: [Errno 2] No such file or directory: '\nmercurial_keyring ='
** Unknown exception encountered with possibly-broken third-party extension hgflow
** which supports versions unknown of Mercurial.
** Please disable hgflow and try your action again.
** If that fixes the bug please report it to the extension author.
** Python 2.7.10 (default, May 26 2015, 04:16:29) [GCC 5.1.0]
** Mercurial Distributed SCM (version 3.4)
** Extensions loaded: color, largefiles, graphlog, hgk, strip, mq, rebase, record, shelve, hgflow, terse-status
Traceback (most recent call last):
File "/usr/bin/hg", line 43, in <module>
mercurial.dispatch.run()
File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 29, in run
sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 91, in dispatch
ret = _runcatch(req)
File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 160, in _runcatch
return _dispatch(req)
File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 746, in _dispatch
extensions.loadall(lui)
File "/usr/lib/python2.7/site-packages/mercurial/extensions.py", line 123, in loadall
extsetup(ui)
File "/home/UNISIEGEN/gk784/.hg/terse-status/terse-status.py", line 40, in extsetup
'_poststatus', _poststatus)
File "/usr/lib/python2.7/site-packages/mercurial/extensions.py", line 255, in wrapfunction
origfn = getattr(container, funcname)
AttributeError: type object 'workingctx' has no attribute '_poststatus'
Mercurialは他のすべてのユーザーに対して機能します。私が最初に観察したのは、デフォルトのPython3.4ではなくPython2.7を使用したことです。
$ python --version
Python 3.4.3
また、グローバルhgrcからモジュールを削除しても役に立ちません。次に、別のモジュールでエラーが発生します。
$ hg parent
** Unknown exception encountered with possibly-broken third-party extension hgflow
同じエラーメッセージ、同じコールスタック。
私の環境には疑わしいものは何もありません。モジュールがロードされていないので、今は少し戸惑っています。
互換性のない拡張機能terse-statusが原因であることが判明しました。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加