win32mbcs b'os.path' error in python3
I am using Window 10 22H2 x64 version. After upgrade tortoiseHg to "tortoisehg-6.2-x64.msi", each time I close workbench there will be a error message:
In thgw.log, it reads:
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'
*** failed to set up extension win32mbcs: b'os.path'
If I rollback to tortoisehg-6.1.3-x64.msi, there will be no error. And python2 is used in this version.
I tried from tortoisehg-6.2-x64.msi to tortoisehg-6.4.2-x64.msi. All of them used python3 and have the same issue.
I found an issue in python3 may be relative to this
issue 13247: under Windows, os.path.abspath returns non-ASCII bytes paths as question marks
Hope this can help.
Edited by Zipher