-
Notifications
You must be signed in to change notification settings - Fork 70
AttributeError Exception at push: 'DiskObjectStore' object has no attribute 'generate_pack_data' #336
Comments
Try updating dulwich |
Thanks for the idea, but I have the same problem after updating to very recent versions Mercurial 4.9.1, hggit 0.8.12, and dulwich 0.18.5 - on dulwich 0.19.11 there is another, different issue (module dulwich.errors not found) that I have reported on the dulwich page. The same issue is being reported on the bitbucket project so I will watch it and see how this develops: EDIT: The issue was solved by using dulwich 0.19.11 BUT installed via pip2 instead of via pip (!?). Leave this info here just in case anyone finds it useful. |
I am trying to migrate my code from Mercurial to Git. I have Mercurial 3.9.2 installed in my system with hg-git from github (and i have pointed the hg-git repository in mercurial.ini file) with Python 2.7.15 and dulwich 0.19.11 . But i am getting the below error while doing so. ** unknown exception encountered, please report by visiting It would be of great help if we could get a feasible solution for the same. Thanks in advance !! |
Hello, trying for the first time hg-git this morning on a Bionic Beaver everything ran smoothly, but installing it now on a Xenial Xerus laptop and using it, that exception was raised. Reporting it just in case it is useful. Thanks.
balqui@balqui-Latitude-7490:
/Escritorio/RemoteBackups/hgbb$ hg clone [email protected]:balqui/pydamelo.git pydamelo/Escritorio/RemoteBackups/hgbb$ cd pydamelo/importing git objects into hg
updating to branch default
14 files updated, 0 files merged, 0 files removed, 0 files unresolved
balqui@balqui-Latitude-7490:
balqui@balqui-Latitude-7490:
/Escritorio/RemoteBackups/hgbb/pydamelo$ hg commit -m'test on laptop'/Escritorio/RemoteBackups/hgbb/pydamelo$ hg pushbalqui@balqui-Latitude-7490:
pushing to [email protected]:balqui/pydamelo.git
searching for changes
adding objects
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.12 (default, Nov 12 2018, 14:36:49) [GCC 5.4.0 20160609]
** Mercurial Distributed SCM (version 3.7.3)
** Extensions loaded: hggit
Traceback (most recent call last):
File "/usr/bin/hg", line 43, in
mercurial.dispatch.run()
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 55, in run
sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 121, in dispatch
ret = _runcatch(req)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 223, in _runcatch
return _dispatch(req)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 956, in _dispatch
cmdpats, cmdoptions)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 713, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 1087, in _runcommand
return checkargs()
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 1047, in checkargs
return cmdfunc()
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 953, in
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 993, in check
return func(args, **kwargs)
File "/usr/lib/python2.7/dist-packages/mercurial/commands.py", line 5739, in push
opargs=opts.get('opargs'))
File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 195, in closure
return func((args + a), **kw)
File "/usr/local/lib/python3.5/dist-packages/hggit/util.py", line 60, in inner
return f(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/hggit/init.py", line 412, in exchangepush
pushop.cgresult = repo.githandler.push(remote.path, revs, force)
File "/usr/local/lib/python3.5/dist-packages/hggit/git_handler.py", line 403, in push
old_refs, new_refs = self.upload_pack(remote, revs, force)
File "/usr/local/lib/python3.5/dist-packages/hggit/git_handler.py", line 1119, in upload_pack
progress=callback)
File "/usr/lib/python2.7/dist-packages/dulwich/client.py", line 532, in send_pack
objects = generate_pack_contents(have, want)
File "/usr/local/lib/python3.5/dist-packages/hggit/git_handler.py", line 1098, in genpack
return self.git.object_store.generate_pack_data(
AttributeError: 'DiskObjectStore' object has no attribute 'generate_pack_data'
The text was updated successfully, but these errors were encountered: