Windows 10上的TortoiseHg工作台无法打开

3

我从官网这里下载了TortoiseHg应用程序,版本号是4.6.1。但当我点击TortoiseHg工作台时,它无法打开且没有出现错误提示。即使我尝试使用命令行克隆,也会出现以下错误:

adding changesets
adding manifests
adding file changes
transaction abort!
rollback completed
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]
** Mercurial Distributed SCM (version 4.4.1)
** Extensions loaded:
Traceback (most recent call last):
  File "hg", line 61, in <module>
  File "mercurial\dispatch.pyo", line 85, in run
  File "mercurial\dispatch.pyo", line 173, in dispatch
  File "mercurial\dispatch.pyo", line 313, in _runcatch
  File "mercurial\dispatch.pyo", line 321, in _callcatch
  File "mercurial\scmutil.pyo", line 154, in callcatch
  File "mercurial\dispatch.pyo", line 303, in _runcatchfunc
  File "mercurial\dispatch.pyo", line 940, in _dispatch
  File "mercurial\dispatch.pyo", line 701, in runcommand
  File "mercurial\dispatch.pyo", line 948, in _runcommand
  File "mercurial\dispatch.pyo", line 937, in <lambda>
  File "mercurial\util.pyo", line 1183, in check
  File "mercurial\commands.pyo", line 1425, in clone
  File "mercurial\hg.pyo", line 670, in clone
  File "mercurial\exchange.pyo", line 1294, in pull
  File "mercurial\exchange.pyo", line 1936, in _maybeapplyclonebundle
  File "mercurial\exchange.pyo", line 2119, in trypullbundlefromurl
  File "mercurial\bundle2.pyo", line 342, in applybundle
  File "mercurial\bundle2.pyo", line 449, in processbundle
  File "mercurial\bundle2.pyo", line 456, in processparts
  File "mercurial\bundle2.pyo", line 523, in _processpart
  File "mercurial\bundle2.pyo", line 1620, in handlechangegroup
  File "mercurial\bundle2.pyo", line 459, in _processchangegroup
  File "mercurial\changegroup.pyo", line 341, in apply
  File "mercurial\changegroup.pyo", line 972, in _addchangegroupfiles
  File "mercurial\ui.pyo", line 1552, in progress
  File "mercurial\progress.pyo", line 301, in progress
  File "mercurial\progress.pyo", line 156, in show
    File "mercurial\encoding.pyo", line 227, in colwidth
   LookupError: unknown encoding: cp65001

我不知道问题出在哪里,我总是安装应用程序一切顺利,请指点我是否需要先安装或检查其他内容以确保一切正常工作。
提前感谢。

您可能需要在 https://bitbucket.org/tortoisehg/thg/issues/ 上提交一个问题。 - StayOnTarget
好的@DaveInCaz,谢谢。 - Abdallah Gaber
1个回答

0

在官方问题清单中问了这里(感谢@DaveInCaz),我得到了解决方案

“cp65001(UTF-8的Windows变体)似乎不受Python 2.x支持。

解决方法:设置HGENCODING=utf8环境变量。”

这是链接


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接