简体   繁体   English

导入扩展名kiln.py失败

[英]Failed to import extension kiln.py

Upgraded to Mercurial 4.7 and now I get "*** failed to import extension kiln from <....>: 'module' object has no attribute 'command'" I have to enter id/password manually. 升级到Mercurial 4.7,现在出现“ ***无法从<....>导入扩展窑:'模块'对象没有属性'命令'”我必须手动输入ID /密码。 What is wrong? 怎么了?

You're using Kiln Extensions and there are some changes in Mercurial 4.7 that break this. 您正在使用窑炉扩展,并且Mercurial 4.7中有一些更改可以解决此问题。

In regards to the error you referenced, the Mercurial release notes indicate (Section 7, API Changes): 关于您引用的错误,Mercurial发行说明指出(第7节,API更改):

cmdutil: drop deprecated precursor of registrar.command cmdutil:删除不推荐使用的registrar.command的前体

So you can resolve this specific issue by replacing cmdutil.command with registrar.command but that'll just expose other problems. 因此,您可以通过将cmdutil.command替换为registrar.command来解决此特定问题,但这只会暴露其他问题。

Personally, I didn't have any more time to mess around with this so I just downgraded to Mercurial 4.6.1. 就个人而言,我没有更多时间来解决这个问题,所以我只降级到了Mercurial 4.6.1。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM