guyzmo / git-repo

Git-Repo: CLI utility to manage git services from your workspace
https://webchat.freenode.net/?channels=#git-repo
Other
842 stars 86 forks source link

Fatal error: list index out of range for Python 3.6 #197

Closed schollii closed 5 years ago

schollii commented 5 years ago

pip3 install git-repo git repo config Do you want to configure the bitbucket service? [Yn]> Is your service self-hosted? [yN]> Please enter your credentials to connect to the service: username> me@someplace.com password> » Login to bitbucket… Fatal error: list index out of range

guyzmo commented 5 years ago

hello @schollii could you rerun with -v ?

the bitbucket authentication process is a real dirty hack, and it's likely they changed the login page (it's basically scraping the actual login page, as they did not provide an API for that).

Don't hesitate to have a look at that part, fix it accordingly and make a PR.

If you don't want/cannot/don't have time to do that, you can still get the token and set it up manually in the .gitconfig file.

guyzmo commented 5 years ago

I just checked the new login of bitbucket, it's now an openid global to atlassian. I should totally disable bitbucket auto configuration, as it cannot work anymore. Though you should still be able to generate a token and use it when added manually to the configuration file.

guyzmo commented 5 years ago

Though there's a little hope with https://github.com/atlassian-api/atlassian-python-api that we could connect and generate the token using that API. But let's not have too much hopes.

cf #199