我想升级OpenSUSE盒上的mercurial版本。
这就是我所拥有的
测试99:~/TEST_AREA/hgplayarea# hg --版本
Mercurial Distributed SCM (version 1.5)
Copyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.测试99:~/TEST_AREA/hgplayarea#
-
test99 99:~# cat /etc/SuSE-释放
openSUSE 11.3 (i586)
VERSION = 11.3测试99:~#
-
我试着用"easy_install“在这台机器上升级mercurial
test99:~/TEST_AREA/hgplayarea # easy_install -U mercurial获得上述命令的以下输出:
Searching for mercurial
Reading http://pypi.python.org/simple/mercurial/
Reading http://mercurial.selenic.com/
Reading http://www.selenic.com/mercurial
Reading http://mercurial.selenic.com/release/
Best match: mercurial 2.3.1
Downloading http://mercurial.selenic.com/release/mercurial-2.3.1.tar.gz
Processing mercurial-2.3.1.tar.gz
Running mercurial-2.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-jNQkmu/mercurial-2.3.1/egg-dist-tmp-riveHL
zip_safe flag not set; analyzing archive contents...
mercurial.lsprof: module references __file__
mercurial.commands: module references __file__
mercurial.extensions: module references __file__
mercurial.help: module references __file__
mercurial.util: module references __file__
mercurial.templater: module references __file__
mercurial.i18n: module references __file__
hgext.mq: module references __file__
Adding mercurial 2.3.1 to easy-install.pth file
Installing hg script to /usr/local/bin
Installed /usr/local/lib/python2.6/site-packages/mercurial-2.3.1-py2.6-linux-i686.egg
Processing dependencies for mercurial
Finished processing dependencies for mercurial在这次升级之后,我正在运行: hg --版本--或者任何其他的hg命令。我收到一个错误:
hg --版本
Traceback (most recent call last):
File "/usr/bin/hg", line 25, in <module>
mercurial.util.set_binary(fp)
File "/usr/local/lib/python2.6/site-packages/mercurial-2.3.1-py2.6-linux-i686.egg/mercurial/demandimport.py", line 87, in __getattribute__
return getattr(self._module, attr)
AttributeError: 'module' object has no attribute 'set_binary'hg克隆http://test99.tsh.company.com/hg/TestHgRepo1/ StarRepo
Traceback (most recent call last):
File "/usr/bin/hg", line 25, in <module>
mercurial.util.set_binary(fp)
File "/usr/local/lib/python2.6/site-packages/mercurial-2.3.1-py2.6-linux-i686.egg/mercurial/demandimport.py", line 87, in __getattribute__
return getattr(self._module, attr)
AttributeError: 'module' object has no attribute 'set_binary'
(reverse-i-search)`su': hg ^Cmmary任何帮助,我可以做什么来卸载它--或安装正确的版本。
我这么做是为了看看我是否能让Mercurial_Keyring和acl扩展工作.
我使用"easy_install“,因为我想安装最新版本的mercurial。在OpenSUSE上,我使用的是"yast -i mercurial",它试图降低Mercurial 1.2.x.x版本,而不是easy_install所做的最新版本。我最初使用"yast“方式安装mercurial。
尝试了以下方法,改变了
https://developers.kilnhg.com/Code/Kiln/TortoiseHg/TortoiseHg/History/9add2d4511ce
hg --版本
File "/usr/bin/hg", line 25
_setbinary(fp)
^发布于 2012-09-25 16:12:47
为了解决这个问题。
现在,我在做:
hg --版本
Mercurial Distributed SCM (version 2.3.1)
(see http://mercurial.selenic.com for more information)
Copyright (C) 2005-2012 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.python --版本
Python 2.6.5奇怪吗??:1.yast -i mercurial (在安装过程中说它正在做mercurial 1.2.xx或1.3.xx),但是hg -版本显示了一个不同的版本。"easy_install mercurial“确实安装了2.3.x,但是我使用yast删除了它。安装了1.x.x,最后使用"hg - version“显示的工作版本为2.3.1
https://serverfault.com/questions/431633
复制相似问题