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 https://ettitude@bitbucket.org/peekwebdesign/ettitude_us /Users/phoebeyu/ettitude_us 

*** failed to import extension hgext.hgsubversion from /Applications/SourceTree.app/Contents/Resources/mercurial_local/hgext/hgsubversion: '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/SourceTree.app/Contents/Resources/mercurial_local/hg_local", line 35, in <module>

    mercurial.dispatch.run()

  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/dispatch.py", line 28, in run

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

  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/dispatch.py", line 71, in dispatch

    ret = _runcatch(req)

  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/dispatch.py", line 140, in _runcatch

    return _dispatch(req)

  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/dispatch.py", line 850, in _dispatch

    cmdpats, cmdoptions)

  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/dispatch.py", line 611, in runcommand

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

  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/dispatch.py", line 941, in _runcommand

    return checkargs()

  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/dispatch.py", line 912, in checkargs

    return cmdfunc()

  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/dispatch.py", line 847, in <lambda>

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

  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/util.py", line 677, in check

    return func(*args, **kwargs)

  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/commands.py", line 1371, in clone

    branch=opts.get('branch'))

  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/hg.py", line 304, in clone

    srcpeer = peer(ui, peeropts, source)

  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/hg.py", line 138, in peer

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

  File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/hg.py", line 115, in _peerorrepo

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

  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 54, in _hgextimport

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

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

Completed with errors, see above"

 

Best Regards

 

Phoebe

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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

672 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot