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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,555 views 26 12
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