Skip to content

TypeError: __init__() got an unexpected keyword argument 'pkey' #18

@patrick91

Description

@patrick91

Hi, this is the stacktrace:

>>> from gittle import Gittle
>>> from gittle import GittleAuth
>>> 
>>> k = open('/tmp/tmp_rsa')
>>> url = 'https://github.com/patrick91/fROLLino-ftw.git'
>>> auth = GittleAuth(pkey=k)
>>> Gittle.clone(url, '/tmp/testclone', auth=auth)
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/Users/patrick91/.virtualenvs/gittle/lib/python2.7/site-packages/gittle/gittle.py", line 438, in clone
    repo.fetch(bare=bare)
  File "/Users/patrick91/.virtualenvs/gittle/lib/python2.7/site-packages/gittle/gittle.py", line 405, in fetch
    remote_refs = self.fetch_remote(origin_uri)
  File "/Users/patrick91/.virtualenvs/gittle/lib/python2.7/site-packages/gittle/gittle.py", line 362, in fetch_remote
    client, remote_path = self.get_client(origin_uri=origin_uri)
  File "/Users/patrick91/.virtualenvs/gittle/lib/python2.7/site-packages/gittle/gittle.py", line 326, in get_client
    client, remote_path = get_transport_and_path(origin_uri, **client_kwargs)
  File "/Users/patrick91/.virtualenvs/gittle/lib/python2.7/site-packages/dulwich/client.py", line 981, in get_transport_and_path
    return HttpGitClient(urlparse.urlunparse(parsed), **kwargs), parsed.path
  File "/Users/patrick91/.virtualenvs/gittle/lib/python2.7/site-packages/dulwich/client.py", line 829, in __init__
    GitClient.__init__(self, *args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'pkey'

I tried to do some fixes, but nothing worked.

This is the output of pip freeze:

GDAL==1.10.0
Pygments==1.6
bpython==0.12
dulwich==0.9.3
funky==0.0.2
gittle==0.2.2
libxml2-python==2.9.1
mimer==0.0.1
paramiko==1.10.0
pycrypto==2.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions