【问题标题】:tortoisehg ImportError: DLL load failed: Access is deniedtortoisehg ImportError: DLL load failed: 访问被拒绝
【发布时间】:2023-03-23 12:32:01
【问题描述】:

代码如下:

#!python
** Mercurial version (4.4.2).  TortoiseHg version (4.4.2)
** Command: 
** CWD: C:\Windows\system32
** Encoding: cp1252
** Extensions loaded: 
** Python version: 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=2, build=9200, platform=2, service_pack='')
** Processor architecture: unknown (failed to import win32api)
** Qt-5.9.2 PyQt-5.9.1 QScintilla-2.10.2.dev1711012104
Traceback (most recent call last):
  File "tortoisehg\hgqt\workbench.pyo", line 717, in openRepo
  File "tortoisehg\hgqt\repotab.pyo", line 117, in openRepo
  File "tortoisehg\hgqt\repotab.pyo", line 383, in _createRepoWidget
  File "tortoisehg\hgqt\thgrepo.pyo", line 670, in openRepoAgent
  File "tortoisehg\hgqt\thgrepo.pyo", line 397, in startMonitoringIfEnabled
  File "tortoisehg\util\paths.pyo", line 130, in is_on_fixed_drive
  File "hgdemandimport\demandimportpy2.pyo", line 145, in __getattr__
  File "hgdemandimport\demandimportpy2.pyo", line 90, in _load
  File "hgdemandimport\demandimportpy2.pyo", line 41, in _hgextimport
  File "win32file.pyo", line 12, in <module>
  File "win32file.pyo", line 10, in __load
ImportError: DLL load failed: Access is denied.

嗨。当我尝试访问我的存储库时出现此错误。 (它甚至没有进入列出先前提交的推/拉窗口)。为什么会发生这种情况,我该如何解决?

谢谢大家。

【问题讨论】:

  • 附加信息。我使用的是 64 位 Windows 10 专业版

标签: importerror tortoisehg


【解决方案1】:

我修复了它,但我不知道我修复它的步骤之一。因此,如果其他人有此问题,请告诉我,请回复我执行的哪个步骤修复了它。或者如果您有其他修复方法,也可以发布您的答案。

  • 将我的 TortoiseHG 版本从 4.4.2 恢复到 4.2.0
  • 将“.hg”文件夹从本地目录移动到其他地方(桌面),然后将其放回原始目录。
    • 注意:我重新启动了,因为这似乎导致 Windows 资源管理器挂起
  • 在您的“.hg”文件夹中,您将有一个 hgrc 文件打开该文件并 注释文件的 [tortoisehg] 块。

再次为我工作:)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-02
    • 2016-12-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多