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

Update 2.3.1 broke my setup. Error: failed to import extension sourcetree_auth

jvcoombs September 13, 2017

I just allowed SourceTree to upgrade to 2.3.1 and my team's BitBucket repository immediately stopped working for me. I get this error as soon as I click Pull (Fetch is disabled):
[SCREENSHOT IN REPLY BELOW]  
Error
*** failed to import extension sourcetree_auth from C:\Users\...\AppData\Local\SourceTree\app-2.3.1\extras\hget\sourctree_hg_auth.py: [Errno 2] No such file or directory: ...
abort: http authorization required for https://bitbucket.org/...
Just to see, I tried copying that .py file over from app-2.1.11\extras\hgext (both with and without its .pyc file) and that yielded a different, very uninformative error:
[SCREENSHOT IN REPLY BELOW] 
Error
abort: authorization failed
SIDE NOTE: Please note that Ctrl+C does not work with SourceTree's messageboxes, so I had to either use Alt+PrtScr here or manually retype the whole message. This could make it harder for others to find information online about errors they encounter. (To avoid this issue, I've done both.)
SIDE NOTE 2: Pasting screenshots into your image uploader worked fine on my screen, but when I clicked Publish, I got many repeat copies of my first screenshot, and everything after it got blown away. (Fortunately, I had used Ctrl +A Ctrl+C to "back up" to clipboard first.) I tried editing the post, saving my screenshots to disk first, then using the visible controls on the image uploader. That didn't work either, so I moved the images into separate replies.
WORKAROUND: Fortunately, your website still had 2.1.11 as the downloadable version, so I uninstalled SourceTree and then reinstalled that older version. I'm back up and running now, but afraid to update.

5 answers

2 votes
Deleted user September 14, 2017

I solve it after reading the Release Notes: https://www.sourcetreeapp.com/update/windows/ga/ReleaseNotes_2.3.1.html

 

There is this note you need to follow:

 

Additional steps to Upgrade after installation.
  • In order to activate the new Mercurial Credential Manager extension it is necessary to switch to using embedded Mercurial and update to v4.3.1 in the Tools/Options/Mercurial tab

hope it helps.

Deleted user September 14, 2017

forgot that also need to copy the python script from 2.1.11 (sourctree_hg_auth.py) referred in the first post, I did not copied the compiled one, just the source.

Douglas Anderson September 14, 2017

That fixed it.  Guess it pays to RTFM!  I had issues with the embedded version in launching kdiff previously.  Fingers crossed.

Maybe a warning could be added to inform users that they need to be using the embedded version.

Deleted user September 14, 2017

After I tested it with the embebed I installed the full Mercurial 4.3.1 and worked fine too.

Kelly Nall September 26, 2017

I was in the same boat.  Very frustrating for something that should be able to be considered commercial software.  I had to do the Update Embedded Mercurial which flashed download messages so quickly I did not have time to read them, then ponder where that got downloaded to when I did the Use Embedded Mercurial to select the hg.exe file.  If you don't automatically know, and are taken to the last folder Sourcetree opened, (for Win10 users) you can navigate to:

C:\Users\[USER]\AppData\Local\Atlassian\SourceTree\hg_local

to select the hg.exe.

Kirsten Greed October 11, 2017

of course the AppData folder is hidden by default.

Kirsten Greed October 11, 2017

I already was using Embedded Mercurial.  I ran the update.
I still got the error.  I tried to follow Kelly's instruction to find the hg.exe file but could not find hg.exe  However when I exited source tree and then reloaded I was able to pull my code successfully.

0 votes
Arvid_Tomayko-Peters October 26, 2017

updating the embedded Mercurial and making sure it was chosen worked for me - but only after exiting and restarting Sourcetree. And it didn't even want to start from any of teh shortcuts - only from the actual .exe inside C:\Users\[username]\AppData\Local\SourceTree\app-2.3.1

0 votes
david-houseandland September 13, 2017

hg pull.PNG

 

david-houseandland September 13, 2017

same applies to me, work come to a halt. cannot pull changesets. it can see the repo though and show history 

0 votes
jvcoombs September 13, 2017

sourcetree error 2.png

0 votes
jvcoombs September 13, 2017

sourcetree error 1.png

Douglas Anderson September 13, 2017

same error here :-(

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events