I forked the script and fixed that particular issue: https://github.com/nicoddemus/bitbucket_issue_migration/
Right now I'm hitting another error around 8th issue: Created 8 of 762 issues Traceback (most recent call last): File "migrate.py", line 302, in <module> print "Comments", [comment['body'] for comment in comments] File "migrate.py", line 265, in push_issue gh_repository File "X:\temp\bitbucket_issue_migration\.env27\lib\site-packages\pygithub3\services\issues\comments.py", line 55, in create return self._post(request) File "X:\temp\bitbucket_issue_migration\.env27\lib\site-packages\pygithub3\services\base.py", line 139, in _post response = self._client.post(request, data=input_data, **kwargs) File "X:\temp\bitbucket_issue_migration\.env27\lib\site-packages\pygithub3\core\client.py", line 89, in post response = self.request('post', request, **kwargs) File "X:\temp\bitbucket_issue_migration\.env27\lib\site-packages\pygithub3\core\client.py", line 71, in wrapper return func(self, verb, request, **kwargs) File "X:\temp\bitbucket_issue_migration\.env27\lib\site-packages\pygithub3\core\client.py", line 80, in request GithubError(response).process() File "X:\temp\bitbucket_issue_migration\.env27\lib\site-packages\pygithub3\core\errors.py", line 36, in process self.response.raise_for_status() File "D:\Shared\dist\12.0-all\requests-2.5.1\lib\site-packages\requests\models.py", line 831, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden I will continue investigating, but any help here is welcome. Btw, what you guys think about concentrating the issue migration effort in a single place? I can add Florian and Anatoly and anyone else interested as collaborator of the fork, and we can open a PR to upstream once the script is ready. On Wed, Jun 3, 2015 at 11:54 AM Florian Bruhin <m...@the-compiler.org> wrote: > * holger krekel <hol...@merlinux.eu> [2015-06-03 14:20:52 +0000]: > > i we want to move pytest to github what would we do with the > > issues? Can someone experiment with migrating the issues to a github > > repo (at some user location, not pytest-dev)? A quick search revealed > > https://github.com/vbabiy/bitbucket_issue_migration which might help. > > Glad to hear! > > I started to play a bit here: > https://github.com/The-Compiler/pytest-unofficial > > So far, not that much success: > > [...] > Created: py.test does not cooperate with twisted's trial TestCase [2 > comments] > Created 762 issues > Traceback (most recent call last): > File "migrate.py", line 304, in <module> > push_issue(gh_username, gh_repository, issue, body, comments) > File "migrate.py", line 266, in push_issue > format_comment(comment), > File "migrate.py", line 122, in format_comment > comment['user'].encode('utf-8') > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position > 91: ordinal not in range(128) > > Time to fix that script then! ;) > > Florian > > -- > http://www.the-compiler.org | m...@the-compiler.org (Mail/XMPP) > GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc > I love long mails! | http://email.is-not-s.ms/ > _______________________________________________ > pytest-dev mailing list > pytest-dev@python.org > https://mail.python.org/mailman/listinfo/pytest-dev >
_______________________________________________ pytest-dev mailing list pytest-dev@python.org https://mail.python.org/mailman/listinfo/pytest-dev