dulwich-users team mailing list archive
-
dulwich-users team
-
Mailing list archive
-
Message #00122
Re: Issues related to fetching
Do you know the version of the git server you're trying to clone from?
On Fri, Jul 2, 2010 at 11:01, Sean McDonald <smcdon@xxxxxxx> wrote:
> Here's the traceback:
>
> Traceback (most recent call last):
> File "/home/smcdon/Programming/MolySym Projects/newrepo/dulwich.py", line
> 32, in <module>
> remote_refs = client.fetch(src, r)
> File "/usr/local/lib/python2.6/dist-packages/dulwich/client.py", line
> 192, in fetch
> target.get_graph_walker(), f.write, progress)
> File "/usr/local/lib/python2.6/dist-packages/dulwich/client.py", line
> 283, in fetch_pack
> graph_walker, pack_data, progress)
> File "/usr/local/lib/python2.6/dist-packages/dulwich/client.py", line
> 205, in fetch_pack
> (refs, server_capabilities) = self.read_refs()
> File "/usr/local/lib/python2.6/dist-packages/dulwich/client.py", line 87,
> in read_refs
> (ref, server_capabilities) = extract_capabilities(ref)
> File "/usr/local/lib/python2.6/dist-packages/dulwich/protocol.py", line
> 285, in extract_capabilities
> text, capabilities = text.rstrip().split("\0")
> ValueError: too many values to unpack
>
> Sean
>
> On Fri, Jul 2, 2010 at 1:54 PM, David Borowitz <dborowitz@xxxxxxxxxx>wrote:
>
>> Which line raises the error? You can just paste the full stack trace.
>>
>> On Fri, Jul 2, 2010 at 10:44, Sean McDonald <smcdon@xxxxxxx> wrote:
>>
>>> Hi everyone,
>>>
>>> I've been reading through the archives to figure out how to fetch from a
>>> remote repository. I followed some of the examples I found and got an error:
>>> "ValueError: too many values to unpack." How do I resolve this?
>>>
>>> Here's my sample script:
>>>
>>> #####
>>>
>>> import dulwich.client
>>> from dulwich.repo import Repo
>>> import os
>>>
>>> client, path = dulwich.client.get_transport_and_path("path to github
>>> repo")
>>>
>>> src = "path to github repo"
>>> target = "local directory"
>>>
>>> os.mkdir(target)
>>> r = Repo.init(target)
>>>
>>> remote_refs = client.fetch(src, r)
>>> r["HEAD"] = remote_refs["HEAD"]
>>>
>>> #####
>>>
>>>
>>> Thanks,
>>>
>>> Sean
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dulwich-users
>>> Post to : dulwich-users@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dulwich-users
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>
>
> --
> Sean McDonald
> Assistant Treasurer, MIT Gospel Choir
> Massachusetts Institute of Technology
> Department of Electrical Engineering and Computer Science
> Class of 2012
>
Follow ups
References