Skip to content

Help me out please! I think I tried every possible step... #109

@hcheruku

Description

@hcheruku

Hi everyone,

I know this project is not active anymore, but I was just wondering if someone can help me here when they have few minutes, because this tool looks really straight forward to use for what I am trying to achieve.

So, I am trying to clone a repo from bitbucket using ssh auth. Below is my simple function

def git_using_gittle(ssh_file_path):

	repo_path = "<local_repo_to_clone_into>"
	repo_url = "<bitbucket_url>"

	key_file = open(ssh_file_path)
	repo = Gittle(repo_path, origin_uri=repo_url)
	repo.auth(pkey=key_file)

	if not os.path.exists(repo_path): repo.clone(repo_url, repo_path)
	else: repo.pull()

I get TypeError: init() got an unexpected keyword argument 'pkey' error.
I had gittle 0.5.0, dulwich 0.9.7, and paramiko 1.10.0. Then, I followed the steps from here.

The above TypeError goes away but I get dulwich.errors.HangupException: The remote server unexpectedly closed the connection error.

I tried keeping same version of paramiko, with dulwich - the custom one from Aaron including refs.py, and tried changing the gittle from 0.5.0 to 0.4.0 and also 0.3.0. I still get the same new error.

Can someone please tell me which version of gittle works fine without these errors? and
Which version of paramiko and dulwich should I have in order for gittle to work ?

Thank you so much.
Have a great day!

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