Failed to open pull request: KeyError owner
When I go to re-release a bloom package, I am getting a new error today:
indigo-devel] moveit_simple_grasps$ bloom-release moveit_simple_grasps -t indigo -r indigo --pull-request-only
==> Fetching 'moveit_simple_grasps' repository from 'https://github.com/davetcoleman/moveit_simple_grasps-release.git'
Cloning into '/tmp/tmp7en7KA'...
remote: Counting objects: 610, done.
remote: Compressing objects: 100% (405/405), done.
remote: Total 610 (delta 205), reused 498 (delta 165)
Receiving objects: 100% (610/610), 364.99 KiB | 0 bytes/s, done.
Resolving deltas: 100% (205/205), done.
Checking connectivity... done.
==> Generating pull request to distro file located at 'https://raw.github.com/ros/rosdistro/master/indigo/distribution.yaml'
Unified diff for the ROS distro file located at '/tmp/tmpbnVBxY/moveit_simple_grasps-1.2.0-0.patch':
--- ../indigo/distribution.yaml
+++ ../indigo/distribution.yaml
@@ -2660,7 +2660,7 @@
tags:
release: release/indigo/{package}/{version}
url: https://github.com/davetcoleman/moveit_simple_grasps-release.git
- version: 1.1.0-0
+ version: 1.2.0-0
source:
type: git
url: https://github.com/davetcoleman/moveit_simple_grasps.git
==> Checking on github for a fork to make the pull request from...
==> davetcoleman/rosdistro is not a fork, searching...
Failed to open pull request: KeyError - 'owner'
In particular,
davetcoleman/rosdistro is not a fork, searching...
But it is in fact a fork and I've done this many times before...?
Thanks!
UPDATE 1:
Bloom Log: https://gist.github.com/davetcoleman/...
UPDATE 2:
I applied your github patch. Note I got a somewhat weird message while doing so, but on visual inspection it looks like it worked:
bloom$ sudo patch < github.py.patch
patching file github.py
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 121 with fuzz 1.
I then re-ran just the pull request only part and got the new, updated error message:
moveit_simple_grasps$ bloom-release moveit_simple_grasps -t indigo -r indigo --pull-request-only
==> Fetching 'moveit_simple_grasps' repository from 'https://github.com/davetcoleman/moveit_simple_grasps-release.git'
Cloning into '/tmp/tmpCjmYhp'...
remote: Counting objects: 610, done.
remote: Total 610 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (610/610), 365.77 KiB | 0 bytes/s, done.
Resolving deltas: 100% (204/204), done.
Checking connectivity... done.
==> Generating pull request to distro file located at 'https://raw.github.com/ros/rosdistro/master/indigo/distribution.yaml'
Unified diff for the ROS distro file located at '/tmp/tmpZTKg5o/moveit_simple_grasps-1.2.0-0.patch':
--- ../indigo/distribution.yaml
+++ ../indigo/distribution.yaml
@@ -2660,7 +2660,7 @@
tags:
release: release/indigo/{package}/{version}
url: https://github.com/davetcoleman/moveit_simple_grasps-release.git
- version: 1.1.0-0
+ version: 1.2.0-0
source:
type: git
url: https://github.com/davetcoleman/moveit_simple_grasps.git
==> Checking on github for a fork to make the pull request from...
==> davetcoleman/rosdistro is not a fork, searching...
Failed to open pull request: GithubException - Failed to list repositories for user 'davetcoleman' using url '/users/davetcoleman/repos?page=1': 401 Unauthorized
Please post your bloom log for this run (they are in ~/.bloom_logs)
Have you exceeded your quota of github API requests or something?
No, he probably put in his password wrong or the oauth token was revoked or something. bloom should never operate without authentication to prevent exactly this. AFAIK Github allows unlimited API requests for authenticated users.
I changed computers this week, yes, and on the new computer Github/bloom wasn't working until I deleted the old oauth token. Now Im back on the older computer and it doesn't work. Not sure what is going on. Both computers have the same system name, also, fyi.
You are getting 401 unauthorized which means the oauth token bloom has does not work. Remove the file
~/.config/bloom
and try bloom again. It should prompt you to create a new oauth token. The identical computer name maybe a problem, you can edit them at https://github.com/settings/application .I had the same problem and removing the file ~/.config/bloom worked.