I am trying to do an import, but I keep getting an error and can't figure out what the problem is. This is the commands I am running.
./migrateissues.py -g ipm-wordpress -t TOKEN_API -u guikubivan -p Public-Media-Wordpress-Plugins
Finally, below is the full output when I ran this. Any help would be awesome!
Thanks!
-Pablo
./migrateissues.py:143: SyntaxWarning: name 'options' is assigned to before global declaration
global options
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:got comments 0
INFO:root:should post 1 - Wordpress slideshow : original url showing out of place when uploading a new image to the slideshow
INFO:root:will post issue:1 - Wordpress slideshow : original url showing out of place when uploading a new image to the slideshow
INFO:root:issue did not exist
Usage: migrateissues.py [options]
Options:
-h, --help show this help message and exit
-g GOOGLE_PROJECT_NAME, --google-project-name=GOOGLE_PROJECT_NAME
The project name (from the URL) from google code.
-t GITHUB_API_TOKEN, --github-api-token=GITHUB_API_TOKEN
Yout Github api token
-u GITHUB_USER_NAME, --github-user-name=GITHUB_USER_NAME
The Github username
-p GITHUB_PROJECT, --github-project=GITHUB_PROJECT
The Github project name:: user-name/project-name
Traceback (most recent call last):
File "./migrateissues.py", line 147, in process_issues(issues_data)
File "./migrateissues.py", line 131, in process_issues [post_to_github(i, sync_comments) for i in issues]
File "./migrateissues.py", line 103, in post_to_github body = issue.body
File "/usr/local/lib/python2.6/dist-packages/github2/issues.py", line 53, in open filter="issue", datatype=Issue)
File "/usr/local/lib/python2.6/dist-packages/github2/core.py", line 50, in get_value value = self.make_request(_args, *_kwargs)
File "/usr/local/lib/python2.6/dist-packages/github2/core.py", line 41, in make_request **post_data)
File "/usr/local/lib/python2.6/dist-packages/github2/request.py", line 70, in post method="POST")
File "/usr/local/lib/python2.6/dist-packages/github2/request.py", line 84, in make_request result = self.raw_request(url, extra_post_data, method=method)
File "/usr/local/lib/python2.6/dist-packages/github2/request.py", line 115, in raw_request response.status, response_text))
RuntimeError: unexpected response from github.com 401: '{"error":"api route not recognized"}'
Hi,
I am trying to do an import, but I keep getting an error and can't figure out what the problem is. This is the commands I am running. ./migrateissues.py -g ipm-wordpress -t TOKEN_API -u guikubivan -p Public-Media-Wordpress-Plugins
I wonder if this related to this: https://github.com/dave0/gcode-issue-import/commit/0e036597f15673d9c01107444835342d86a70034
Finally, below is the full output when I ran this. Any help would be awesome! Thanks! -Pablo
./migrateissues.py:143: SyntaxWarning: name 'options' is assigned to before global declaration global options INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:got comments 0 INFO:root:should post 1 - Wordpress slideshow : original url showing out of place when uploading a new image to the slideshow INFO:root:will post issue:1 - Wordpress slideshow : original url showing out of place when uploading a new image to the slideshow INFO:root:issue did not exist Usage: migrateissues.py [options]
Options: -h, --help show this help message and exit -g GOOGLE_PROJECT_NAME, --google-project-name=GOOGLE_PROJECT_NAME The project name (from the URL) from google code. -t GITHUB_API_TOKEN, --github-api-token=GITHUB_API_TOKEN Yout Github api token -u GITHUB_USER_NAME, --github-user-name=GITHUB_USER_NAME The Github username -p GITHUB_PROJECT, --github-project=GITHUB_PROJECT The Github project name:: user-name/project-name Traceback (most recent call last): File "./migrateissues.py", line 147, in process_issues(issues_data)
File "./migrateissues.py", line 131, in process_issues [post_to_github(i, sync_comments) for i in issues]
File "./migrateissues.py", line 103, in post_to_github body = issue.body
File "/usr/local/lib/python2.6/dist-packages/github2/issues.py", line 53, in open filter="issue", datatype=Issue)
File "/usr/local/lib/python2.6/dist-packages/github2/core.py", line 50, in get_value value = self.make_request(_args, *_kwargs)
File "/usr/local/lib/python2.6/dist-packages/github2/core.py", line 41, in make_request **post_data)
File "/usr/local/lib/python2.6/dist-packages/github2/request.py", line 70, in post method="POST")
File "/usr/local/lib/python2.6/dist-packages/github2/request.py", line 84, in make_request result = self.raw_request(url, extra_post_data, method=method)
File "/usr/local/lib/python2.6/dist-packages/github2/request.py", line 115, in raw_request response.status, response_text))
RuntimeError: unexpected response from github.com 401: '{"error":"api route not recognized"}'