2016-04-23 23 views
1

,它顯示如下錯誤......無法啓動水銀

Traceback (most recent call last): 
    File "/usr/local/bin/hg", line 41, in <module> 
    mercurial.util.setbinary(fp) 
    File "/Library/Python/2.7/site-packages/mercurial/demandimport.py", line 106, in __getattribute__ 
    self._load() 
    File "/Library/Python/2.7/site-packages/mercurial/demandimport.py", line 78, in _load 
    mod = _hgextimport(_import, head, globals, locals, None, level) 
    File "/Library/Python/2.7/site-packages/mercurial/demandimport.py", line 47, in _hgextimport 
    return importfunc(name, globals, *args) 
    File "/Library/Python/2.7/site-packages/mercurial/util.py", line 70, in <module> 
    statfiles = getattr(osutil, 'statfiles', platform.statfiles) 
    File "/Library/Python/2.7/site-packages/mercurial/demandimport.py", line 106, in __getattribute__ 
    self._load() 
    File "/Library/Python/2.7/site-packages/mercurial/demandimport.py", line 78, in _load 
    mod = _hgextimport(_import, head, globals, locals, None, level) 
    File "/Library/Python/2.7/site-packages/mercurial/demandimport.py", line 47, in _hgextimport 
    return importfunc(name, globals, *args) 
ImportError: dlopen(/Library/Python/2.7/site-packages/mercurial/osutil.so, 2): Symbol not found: _fdopendir$INODE64 
    Referenced from: /Library/Python/2.7/site-packages/mercurial/osutil.so 
    Expected in: /usr/lib/libSystem.B.dylib 
in /Library/Python/2.7/site-packages/mercurial/osutil.so 

我該如何解決這個問題?

非常感謝您提供任何幫助。 PS:對不起,我的英語不好。

回答

0

最後我得到答案...!

第一步:轉到「/Library/Python/2.7/site-packages」文件夾中。

>$ cd /Library/Python/2.7/site-packages 

第二步:在 「站點包」 文件夾中刪除以下文件。

>$ rm -rf hgext       
>$ rm -rf mercurial    
>$ rm -rf mercurial-3.7.3-py2.7.egg-info 

第3步:現在安裝善變