[tortoisehg] Tortoisehg Ver.6.2.3 にて終了時にダイアログが表示される

121 views
Skip to first unread message

Satoshi Suzuki

unread,
Nov 23, 2022, 9:55:43 AM11/23/22
to mercurial-ja
お世話になります。

 Tortoisehg Ver.6.2.3 64bit版にて、win32mbcs を有効にしていると thg の終了時に

Error in 'thgw.exe'
See the logfile 'C:\ProgramData\TortoiseHg\thgw.log' for details

とダイアログが表示されます。
ダイアログで示された thgw.log には以下が記録されていました。

Traceback (most recent call last):
  File "mercurial\extensions.pyc", line 270, in _runextsetup
  File "hgext\win32mbcs.pyc", line 207, in extsetup
  File "hgext\win32mbcs.pyc", line 158, in wrapname
KeyError: b'os.path'
*** エクステンション win32mbcs の設定に失敗: b'os.path'

これは win32mbcs が正しく動けていないのでしょうか?

Yuya Nishihara

unread,
Nov 24, 2022, 3:40:03 AM11/24/22
to Satoshi Suzuki, mercur...@googlegroups.com
sys.modules[] に bytes を渡しているので、 Python 3 ではまともに動かんわな、
と思います。

https://www.mercurial-scm.org/repo/hg/file/6.3.1/hgext/win32mbcs.py#l156

とりあえず Mercurial へバグレポートかパッチを投げるのがいいと思います。

https://bz.mercurial-scm.org/
https://www.mercurial-scm.org/wiki/ContributingChanges

Satoshi Suzuki

unread,
Nov 26, 2022, 10:03:58 AM11/26/22
to mercurial-ja


2022年11月24日木曜日 17:40:03 UTC+9 Yuya Nishihara:
とりあえず Mercurial へバグレポートかパッチを投げるのがいいと思います。

https://bz.mercurial-scm.org/
https://www.mercurial-scm.org/wiki/ContributingChanges

西原さん

バグレポートの方をチャレンジしてみます。
回答ありがとうございます。

Reply all
Reply to author
Forward
0 new messages