FriendCode / gittle

Pythonic Git for Humans
Other
732 stars 90 forks source link

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

Open stevezau opened 8 years ago

stevezau commented 8 years ago

Hi,

Just did a clean instal of gittle and tried to auth using keys (I can't use user/pass as we have 2fa enabled).

This looks similar to https://github.com/FriendCode/gittle/issues/18..

Using gittle 0.5.0 with dulwich-0.14.1

The previous ticket suggests to use a particular version of dulwich but surely this should just work ootb?

  File "/Users/sadams/Workspace/sales-engineering-demo-server/admin/apps.py", line 20, in ready
    Gittle.clone(settings.GIT_DEMO_REPO_URL, settings.GIT_DEMO_REPO_DIR, auth=auth)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gittle/gittle.py", line 440, in clone
    repo.fetch(bare=bare)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gittle/gittle.py", line 407, in fetch
    remote_refs = self.fetch_remote(origin_uri)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gittle/gittle.py", line 364, in fetch_remote
    client, remote_path = self.get_client(origin_uri=origin_uri)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gittle/gittle.py", line 328, in get_client
    client, remote_path = get_transport_and_path(origin_uri, **client_kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dulwich/client.py", line 1197, in get_transport_and_path
    return SSHGitClient(host, username=user, **kwargs), path
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dulwich/client.py", line 921, in __init__
    TraditionalGitClient.__init__(self, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'pkey'
jelmer commented 8 years ago

Dulwich should work out of the box, although upstream dulwich doesn't support the pkey argument that gittle is specifying.

jelmer commented 8 years ago

By default, dulwich doesn't use paramiko but standard ssh in which case 2fa should just work.

menge101 commented 7 years ago

I just hit this as well, so it is still an issue, a year later.