Mercurial терпит неудачу с отсутствующим атрибутом, используя Python 2 вместо Python 3

898
PVitt

Я работаю над многопользовательской системой с Mercurial. Я не использовал систему в последнее время, и сегодня я хотел начать снова, но 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 работает для всех остальных пользователей. Моим первым наблюдением было использование Python 2.7 вместо Python 3.4 по умолчанию:

$ python --version Python 3.4.3 

Также удаление модуля из глобальной hgrc не помогает. Тогда ошибка возникает для другого модуля:

$ hg parent ** Unknown exception encountered with possibly-broken third-party extension hgflow 

То же сообщение об ошибке, тот же стек вызовов.

Ничто в моем env не выглядит подозрительно, нет загруженных модулей, поэтому я немного озадачен.

2

1 ответ на вопрос

1
PVitt

Turns out that it is due to the now incompatible extension terse-status.

Похожие вопросы