jeffwidman / bitbucket-issue-migration

A small script for migrating repo issues from Bitbucket to GitHub
GNU General Public License v3.0
314 stars 97 forks source link

TypeError: request() got an unexpected keyword argument 'json' #73

Closed vsimko closed 8 years ago

vsimko commented 8 years ago
Traceback (most recent call last):
  File "/path/to/migrate.py", line 490, in <module>
    sys.exit(main(options))
  File "/path/to/migrate.py", line 179, in main
    gh_issue, gh_comments, options.github_repo, options.gh_auth, headers
  File "/path/to/migrate.py", line 438, in push_github_issue
    respo = requests.post(url, json=issue_data, auth=auth, headers=headers)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 88, in post
    return request('post', url, data=data, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
TypeError: request() got an unexpected keyword argument 'json'
jeffwidman commented 8 years ago

Most likely a dupe of #61 - you'll need to update your version of the requests library.