bleuthoot / support-tools

Automatically exported from code.google.com/p/support-tools
Apache License 2.0
0 stars 0 forks source link

User names mapping in github_issue_converter.py #59

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In github_issue_converter.py there is the following information:

  4. (Optional) If this option is skipped all issues will be assigned to the
     owner of the repo.  Make a file that contains a mapping from the Google
     Code email address to the GitHub username for each user you wish to assign
     issues too.  The file should be newline seperated with one user per line.
     The email address and username should be colon (':') seperated. For example
     a file may look like this:
       <Google Code Email>:<GitHub Username>
       myemail@gmail.com:coolperson
       otheruser@gmail.com:userother

  5. Then run the command:
     ...
     --user_file_path="<optional-path-to-user-mapping-file>"

When using github_issue_converter.py with the --user_file_path option I got the 
following error:
  Traceback (most recent call last):
    File "/tmp/support-tools/googlecode-issues-exporter/github_issue_converter.py", line 470, in <module>
      main(sys.argv)
    File "/tmp/support-tools/googlecode-issues-exporter/github_issue_converter.py", line 466, in main
      parsed_args.rate_limit)
    File "/tmp/support-tools/googlecode-issues-exporter/github_issue_converter.py", line 415, in ExportIssues
      user_file_path, github_owner_username, user_service)
    File "/tmp/support-tools/googlecode-issues-exporter/issues.py", line 441, in LoadUserData
      user_map = json.loads(user_json)["users"]
    File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
      return _default_decoder.decode(s)
    File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
      raise ValueError("No JSON object could be decoded")
  ValueError: No JSON object could be decoded

Is the --user_file_path option currently supported in github_issue_converter.py?

Original issue reported on code.google.com by andres.s...@gmail.com on 26 Mar 2015 at 5:03