我正在尝试将我的公共项目从bitbucket转移到github。
我看到hg-git扩展将帮助我完成这个任务。
$ easy_install hg-git
Searching for hg-git
Best match: hg-git 0.3.0
Processing hg_git-0.3.0-py2.7.egg
hg-git 0.3.0 is already the active version in easy-install.pth
Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hg_git-0.3.0-py2.7.egg
Processing dependencies for hg-git
Searching for dulwich>=0.8.1为什么?从杜尔维奇官方网站上我看到0.8.1还没有发布。
Reading http://pypi.python.org/simple/dulwich/
Reading http://samba.org/~jelmer/dulwich
Reading http://launchpad.net/dulwich
No local packages or download links found for dulwich>=0.8.1如果我尝试更复杂的方式,就像github上提到的
我安装了Dulwich0.8.0
$ which dulwich
/Library/Frameworks/Python.framework/Versions/2.7/bin/dulwich我克隆了hgrc存储库,并将其与hgrc正确地链接起来。然而,当我尝试使用hg-git时,我会抱怨
*** failed to import extension hggit from ~/.bin/hg-git/hggit: No module named dulwich.errors所以,显然我无法安装hg,而且我被卡住了。
更新
>>> import dulwich
>>> import dulwich.errors
>>> dulwich.errors
<module 'dulwich.errors' from '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dulwich-0.8.0-py2.7-macosx-10.6-intel.egg/dulwich/errors.pyc'>
>>> dulwich
<module 'dulwich' from '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dulwich-0.8.0-py2.7-macosx-10.6-intel.egg/dulwich/__init__.pyc'>发布于 2011-10-01 21:41:36
使用hg-快速出口跟随丹教程
发布于 2011-09-12 13:45:18
如果可能,尝试使用TortoiseHG。它们包括一个工作版本的dulwich,您只需指定hg的路径即可。
发布于 2011-09-12 13:48:29
很明显,两天前,有人刚刚碰到了该项目的依赖要求:
https://bitbucket.org/durin42/hg-git/changeset/81f42c0d5ea9
至于您的错误--如果运行python并键入import dulwich,然后输入import dulwich.errors,会发生什么情况?你收到什么信息了?可能是由于某种原因,您安装的dulwich版本不在Mercurial工具使用的模块搜索路径中--您可以尝试调整PYTHONPATH。
https://stackoverflow.com/questions/7388814
复制相似问题