[syncpackage] Traceback with config file errors

Bug #907880 reported by Scott Kitterman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpadlib
New
Undecided
Unassigned
python-launchpadlib (Ubuntu)
New
Undecided
Unassigned

Bug Description

$ syncpackage unbound
Traceback (most recent call last):
  File "/usr/bin/syncpackage", line 646, in <module>
    main()
  File "/usr/bin/syncpackage", line 583, in main
    Launchpad.login(service=options.lpinstance, api_version='devel')
  File "/usr/lib/python2.7/dist-packages/ubuntutools/lp/lpapicache.py", line 61, in login
    version=api_version)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 539, in login_with
    credential_save_failed, version)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 342, in _authorize_token_and_login
    authorization_engine.unique_consumer_id)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 273, in load
    return self.do_load(unique_key)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 322, in do_load
    return Credentials.from_string(credential_string)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 89, in from_string
    credentials.load(StringIO(value))
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/authorize/oauth.py", line 158, in load
    parser.readfp(readable_file)
  File "/usr/lib/python2.7/ConfigParser.py", line 316, in readfp
    self._read(fp, filename)
  File "/usr/lib/python2.7/ConfigParser.py", line 538, in _read
    raise e
ConfigParser.ParsingError: File contains parsing errors: <???>
        [line 6]: '\x00\x00\x00\n'
        [line 7]: '\x00\x00\x00'

Revision history for this message
Stefano Rivera (stefanor) wrote :

Sounds like you have a broken launchpadlib credential in your credential store. Reassigning to launchpadlib

affects: ubuntu-dev-tools (Ubuntu) → python-launchpadlib (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.