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

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

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
Posted Jan 17, 2019 in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

1,344 views 13 14
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you