Repositories won't clone into SourceTree form Bitbucket

Hi There,

I am new to Bitbucket and SourceTree, i use Mac OS X Yosemite 10.10.1

I am trying to clone some Repositories from Bitbucket created by my colleague into SourceTree, but it keeps giving me this error message below, does anyone know how to fix this? Thanks very much!!!

"hg clone /Users/phoebeyu/ettitude_us 

*** failed to import extension hgext.hgsubversion from /Applications/ 'module' object has no attribute 'canonpath'

** Unknown exception encountered with possibly-broken third-party extension sourcetree_auth

** which supports versions unknown of Mercurial.

** Please disable sourcetree_auth and try your action again.

** If that fixes the bug please report it to the extension author.

** Python 2.7.6 (default, Sep  9 2014, 15:04:36) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]

** Mercurial Distributed SCM (version 3.2.3)

** Extensions loaded: strip, mq, rebase, transplant, extdiff, progress, sourcetree_auth, sourcetree_checklink, hgattic, hgflow, gpg, fetch

Traceback (most recent call last):

  File "/Applications/", line 35, in <module>

  File "/Applications/", line 28, in run

    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)

  File "/Applications/", line 71, in dispatch

    ret = _runcatch(req)

  File "/Applications/", line 140, in _runcatch

    return _dispatch(req)

  File "/Applications/", line 850, in _dispatch

    cmdpats, cmdoptions)

  File "/Applications/", line 611, in runcommand

    ret = _runcommand(ui, options, cmd, d)

  File "/Applications/", line 941, in _runcommand

    return checkargs()

  File "/Applications/", line 912, in checkargs

    return cmdfunc()

  File "/Applications/", line 847, in <lambda>

    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)

  File "/Applications/", line 677, in check

    return func(*args, **kwargs)

  File "/Applications/", line 1371, in clone


  File "/Applications/", line 304, in clone

    srcpeer = peer(ui, peeropts, source)

  File "/Applications/", line 138, in peer

    return _peerorrepo(rui, path, create).peer()

  File "/Applications/", line 115, in _peerorrepo

    obj = _peerlookup(path).instance(ui, path, create)

  File "/Applications/", line 106, in __getattribute__


  File "/Applications/", line 78, in _load

    mod = _hgextimport(_import, head, globals, locals, None, level)

  File "/Applications/", line 54, in _hgextimport

    contextroot = globals.get('__name__', '').split('.', 1)[0]

AttributeError: 'NoneType' object has no attribute 'split'

Completed with errors, see above"


Best Regards



1 answer

Hi, just had this. The specific error message in the Bitbucket UI was :

Remote Git clone failed: <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'split'


It looks related to the origin repository permissions. To solve it :

With my origin account settings :

Access Level "This is a private repository"

You need to set "Allow Forks" to true

Then go to your target repository "Import existing code" and paste in the https URL to the origin (ssh can;'t be used here according to the bitbucket messaging)

Check "Requires authorisation" and provide the origin owner username / password.

HTH, Cheers - Neil


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

280 views 0 12
Read article

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