首页 > 解决方案 > Windows 10 上的 Tortoisehg 工作台无法打开

问题描述

我从官方网站下载了 tortoisehg 应用程序即 4.6.1,当我单击 tortoishg 工作台时,它没有打开并且没有显示错误,当我什至尝试使用命令行克隆时,我得到了这个错误

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

我不知道是什么问题我总是设置应用程序并且一切都很顺利,如果我必须先安装任何东西或检查一切是否正常,请告知

提前致谢

标签: mercurialwindows-10bitbuckettortoisehg

解决方案


在我在官方问题列表中询问后感谢@DaveInCaz),我得到了解决方案

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

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

这是链接


推荐阅读