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