github-pr-stats
github-pr-stats copied to clipboard
2-factor auth
My GitHub account has 2-factor authentication, which causes this program to fail:
Traceback (most recent call last):
File "/usr/bin/github-pr-stats", line 79, in <module>
note_url='https://github.com/xiongchiamiov/github-pr-stats')
File "/usr/lib/python2.6/site-packages/github3/api.py", line 34, in authorize
client_secret)
File "/usr/lib/python2.6/site-packages/github3/github.py", line 118, in authorize
json = self._json(ses.post(url, data=dumps(data)), 201)
File "/usr/lib/python2.6/site-packages/github3/models.py", line 86, in _json
if self._boolean(response, status_code, 404) and response.content:
File "/usr/lib/python2.6/site-packages/github3/models.py", line 107, in _boolean
raise GitHubError(response)
github3.models.GitHubError: 401 Must specify two-factor authentication OTP code.
Similar to #3, we'll need to modify the call to authorize and login: http://github3py.readthedocs.org/en/latest/api.html?highlight=login#github3.login
i have this problem too.
same
+1