It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Trouble creating a Mercurial repository

Chris Laursen Jun 24, 2015

I'm trying to create a local Mercurial repository and get the following error after clicking 'Create':

hg init -y /Users/digitaluser1/Sites/base/content
Traceback (most recent call last):
  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/hg_local", line 33, in <module>
    mercurial.util.setbinary(fp)
  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/demandimport.py", line 106, in __getattribute__
    self._load()
  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/demandimport.py", line 78, in _load
    mod = _hgextimport(_import, head, globals, locals, None, level)
  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/demandimport.py", line 47, in _hgextimport
    return importfunc(name, globals, *args)
  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/util.py", line 69, in <module>
    statfiles = getattr(osutil, 'statfiles', platform.statfiles)
  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/demandimport.py", line 106, in __getattribute__
    self._load()
  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/demandimport.py", line 78, in _load
    mod = _hgextimport(_import, head, globals, locals, None, level)
  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/demandimport.py", line 47, in _hgextimport
    return importfunc(name, globals, *args)
ImportError: dlopen(/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/osutil.so, 2): Library not loaded: /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
  Referenced from: /Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/osutil.so
  Reason: image not found
Completed with errors, see above

I've got SourceTree 2.0.5.2 and OS X 10.7.5

1 answer

0 votes
Chris Laursen Jun 25, 2015

I figured it out. Even though SourceTree 2.0.5.2 is compatible with OS X 10.7.5, the embedded version of Mercurial is NOT. This seems like a mistake on SourceTree's part, they should offer a different download for 10.7 people that includes an older version of Mercurial.

Anyway, to fix this, I installed Mercurial 3.2.1 (https://mercurial.selenic.com/downloads) and in SourceTree preferences I told it to use that version of Mercurial instead of the embedded one.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

448 views 0 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you