클론이 실패했습니다. "TypeError: 없음이 아니라 문자열 또는 버퍼가 있어야 합니다."
7799 단어 hg-git
묘사
hggit 0.2.5,dulwich 0.6.2와mercurial 1.7.1을 사용하여 다음 작업에 실패했습니다.$ hg clone git://github.com/schacon/hg-git.git
destination directory: hg-git
importing Hg objects into Git
Counting objects: 1800, done.
Compressing objects: 100% (1191/1191), done.
Total 1800 (delta 578), reused 1791 (delta 573)
importing Git objects into Hg
** unknown exception encountered, please report by visiting
** http://mercurial.selenic.com/wiki/BugTracker
** Python 2.7 (r27:82500, Nov 24 2010, 23:44:00) [GCC 4.2.1 (Apple Inc. build 5664)]
** Mercurial Distributed SCM (version 1.7.1)
** Extensions loaded: extdiff, bookmarks, hggit
Traceback (most recent call last):
File "/usr/local/bin/hg", line 38, in <module>
mercurial.dispatch.run()
File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 16, in run
sys.exit(dispatch(sys.argv[1:]))
File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 36, in dispatch
return _runcatch(u, args)
File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 58, in _runcatch
return _dispatch(ui, args)
File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 590, in _dispatch
cmdpats, cmdoptions)
File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 401, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 641, in _runcommand
return checkargs()
File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 595, in checkargs
return cmdfunc()
File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 588, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/mercurial/util.py", line 427, in check
return func(*args, **kwargs)
File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/mercurial/commands.py", line 736, in clone
branch=opts.get('branch'))
File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/mercurial/hg.py", line 337, in clone
dest_repo.clone(src_repo, heads=revs, stream=stream)
File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/mercurial/localrepo.py", line 1880, in clone
return self.pull(remote, heads)
File "/usr/local/share/hg-git/hggit/hgrepo.py", line 12, in pull
git.fetch(remote.path, heads)
File "/usr/local/share/hg-git/hggit/git_handler.py", line 100, in fetch
self.import_git_objects(remote_name, refs)
File "/usr/local/share/hg-git/hggit/git_handler.py", line 411, in import_git_objects
self.import_git_commit(commit)
File "/usr/local/share/hg-git/hggit/git_handler.py", line 531, in import_git_commit
node = self.repo.commitctx(ctx)
File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/hgext/bookmarks.py", line 290, in commitctx
node = super(bookmark_repo, self).commitctx(ctx, error)
File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/mercurial/localrepo.py", line 1004, in commitctx
changed)
File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/mercurial/localrepo.py", line 827, in _filecommit
self.ui.debug(" %s: copy %s:%s\n" % (fname, cfname, hex(crev)))
TypeError: must be string or buffer, not None
토론 #1
bitbucket에 있는 hg git r419:31c6154bd88d에서도 같은 오류가 있습니다.$ hg clone git+ssh://[email protected]:kenjis/CodeIgniter.git
destination directory: CodeIgniter
["git-upload-pack 'kenjis/CodeIgniter.git'"]
importing git objects into hg
** unknown exception encountered, please report by visiting
** http://mercurial.selenic.com/wiki/BugTracker
** Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) [GCC 4.5.2]
** Mercurial Distributed SCM (version 1.9.1)
** Extensions loaded: convert, graphlog, transplant, rebase, mq, color, extdiff, histedit, hggit
Traceback (most recent call last):
File "/usr/local/bin/hg", line 5, in <module>
pkg_resources.run_script('mercurial==1.9.1', 'hg')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 467, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1200, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/mercurial-1.9.1-py2.7-linux-i686.egg/EGG-INFO/scripts/hg", line 38, in <module>
mercurial.dispatch.run()
File "/usr/local/lib/python2.7/dist-packages/mercurial-1.9.1-py2.7-linux-i686.egg/mercurial/dispatch.py", line 27, in run
sys.exit(dispatch(request(sys.argv[1:])))
File "/usr/local/lib/python2.7/dist-packages/mercurial-1.9.1-py2.7-linux-i686.egg/mercurial/dispatch.py", line 64, in dispatch
return _runcatch(req)
File "/usr/local/lib/python2.7/dist-packages/mercurial-1.9.1-py2.7-linux-i686.egg/mercurial/dispatch.py", line 87, in _runcatch
return _dispatch(req)
File "/usr/local/lib/python2.7/dist-packages/mercurial-1.9.1-py2.7-linux-i686.egg/mercurial/dispatch.py", line 679, in _dispatch
cmdpats, cmdoptions)
File "/usr/local/lib/python2.7/dist-packages/mercurial-1.9.1-py2.7-linux-i686.egg/mercurial/dispatch.py", line 454, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/local/lib/python2.7/dist-packages/mercurial-1.9.1-py2.7-linux-i686.egg/mercurial/extensions.py", line 182, in wrap
return wrapper(origfn, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/mercurial-1.9.1-py2.7-linux-i686.egg/hgext/color.py", line 368, in colorcmd
return orig(ui_, opts, cmd, cmdfunc)
File "/usr/local/lib/python2.7/dist-packages/mercurial-1.9.1-py2.7-linux-i686.egg/mercurial/dispatch.py", line 733, in _runcommand
return checkargs()
File "/usr/local/lib/python2.7/dist-packages/mercurial-1.9.1-py2.7-linux-i686.egg/mercurial/dispatch.py", line 687, in checkargs
return cmdfunc()
File "/usr/local/lib/python2.7/dist-packages/mercurial-1.9.1-py2.7-linux-i686.egg/mercurial/dispatch.py", line 676, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/usr/local/lib/python2.7/dist-packages/mercurial-1.9.1-py2.7-linux-i686.egg/mercurial/util.py", line 385, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/mercurial-1.9.1-py2.7-linux-i686.egg/mercurial/commands.py", line 1041, in clone
branch=opts.get('branch'))
File "/usr/local/lib/python2.7/dist-packages/mercurial-1.9.1-py2.7-linux-i686.egg/mercurial/hg.py", line 334, in clone
destrepo.clone(srcrepo, heads=revs, stream=stream)
File "/usr/local/lib/python2.7/dist-packages/mercurial-1.9.1-py2.7-linux-i686.egg/mercurial/localrepo.py", line 1946, in clone
return self.pull(remote, heads)
File "/home/kenji/bin/hg-git/hggit/hgrepo.py", line 14, in pull
return git.fetch(remote.path, heads)
File "/home/kenji/bin/hg-git/hggit/git_handler.py", line 149, in fetch
self.update_hg_bookmarks(refs)
File "/home/kenji/bin/hg-git/hggit/git_handler.py", line 882, in update_hg_bookmarks
hgsha = bin(self.map_hg_get(sha))
TypeError: must be string or buffer, not None
Reference
이 문제에 관하여(클론이 실패했습니다. "TypeError: 없음이 아니라 문자열 또는 버퍼가 있어야 합니다."), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://github.com/schacon/hg-git/issues/155텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)