Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SourceTree error in python script, tries to load mercurial libs for a git repo (?)

petruza December 24, 2014

Hi, I have a git repository on github mapped to the company's domain, like this:

https://git.domain.com/user/repo/

I use SourceTree 2.0.4 for MacOS, I've been using this repo in it without any problem.
I changed now to another computer, Mac also, and tried to set up the same repo on SourceTree.

When trying to clone it I get the following error: This is not a valid source path / URL

I click on the error description and displays a Python stack trace error which starts with:

ImportError: dlopen(.../SourceTree.app/Contents/Resources/mercurial_local/mercurial/osutil.so, 2):
Library not loaded: /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics

Referenced from: .../SourceTree.app/Contents/Resources/mercurial_local/mercurial/osutil.so
Reason: image not found

Q: Why should it load mercurial libraries if the repo is Git?
Q: How can I work around this?
(other than using command-line git?) 

Also, the stack strace is shown if I use github's clone in desktop button, if I copy the repo URL and try to clone it from SourceTree, the not a valid source path error is the same but no stack trace is shown, just an empty log.

 

 

1 answer

1 accepted

1 vote
Answer accepted
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 24, 2014

I think I've seen a similar error mentioned before, and the problem was that Git either wasn't installed, or wasn't being found by SourceTree. Are you using embedded git or system git?

petruza December 24, 2014

Installing git and using it instead of the embedded fixed it. Thanx.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events