ConfigParser.NoOptionError: No option 'consumer_key' in section: '1'

Bug #793174 reported by Jan
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
launchpadlib
New
Undecided
Unassigned
python-launchpadlib (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: quickly

I'm unable to configure a ppa with my current quickly project. The project uses the 'ubuntu-application' template. In firefox I was asked to grant permissions for the ppa serveral times, doing so didn't help. Futher information (including ubuntu- and package-version) see terminal output below.

confus@confus:~/prog/power-switch$ lsb_release -rd
Description: Ubuntu 11.04
Release: 11.04
confus@confus:~/prog/power-switch$ apt-cache policy quickly
quickly:
  Installed: 11.04-0ubuntu1.1
  Candidate: 11.04-0ubuntu1.1
  Version table:
 *** 11.04-0ubuntu1.1 0
        500 http://ubuntu.inode.at/ubuntu/ natty-updates/universe amd64 Packages
        100 /var/lib/dpkg/status
     11.04-0ubuntu1 0
        500 http://ubuntu.inode.at/ubuntu/ natty/universe amd64 Packages
confus@confus:~/prog/power-switch$ quickli configure ppa
confus@confus:~/prog/power-switch$ quickly configure ppa Traceback (most recent call last):
  File "/usr/share/quickly/templates/ubuntu-application/configure.py", line 66, in <module>
    templatetools.handle_additional_parameters(sys.argv, help, shell_completion, usage=usage)
  File "/usr/lib/python2.7/dist-packages/quickly/templatetools.py", line 51, in handle_additional_parameters
    shell_completion(args[2:])
  File "/usr/share/quickly/templates/ubuntu-application/configure.py", line 61, in shell_completion
    rv = packaging.shell_complete_ppa(argv[-1])
  File "/usr/share/quickly/templates/ubuntu-application/internal/packaging.py", line 302, in shell_complete_ppa
    launchpad = launchpadaccess.initialize_lpi(False)
  File "/usr/lib/python2.7/dist-packages/quickly/launchpadaccess.py", line 91, in initialize_lpi
    allow_access_levels=["WRITE_PRIVATE"])
  File "/usr/lib/pymodules/python2.7/launchpadlib/launchpad.py", line 538, in login_with
    credential_save_failed, version)
  File "/usr/lib/pymodules/python2.7/launchpadlib/launchpad.py", line 341, in _authorize_token_and_login
    authorization_engine.unique_consumer_id)
  File "/usr/lib/pymodules/python2.7/launchpadlib/credentials.py", line 273, in load
    return self.do_load(unique_key)
  File "/usr/lib/pymodules/python2.7/launchpadlib/credentials.py", line 322, in do_load
    return Credentials.from_string(credential_string)
  File "/usr/lib/pymodules/python2.7/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 165, in load
    CREDENTIALS_FILE_VERSION, 'consumer_key')
  File "/usr/lib/python2.7/ConfigParser.py", line 610, in get
    raise NoOptionError(option, section)
ConfigParser.NoOptionError: No option 'consumer_key' in section: '1'
None
confus@confus:~/prog/power-switch$ quickli configure ppa None

Revision history for this message
Michael Terry (mterry) wrote :

This sure looks to me like a launchpadlib issue. It's pretty deep down that stack. Reassigning, but feel free to assign back if quickly is doing something stupid. It's login_with call looks like:

    launchpad = Launchpad.login_with(_('Quickly'),
                                     service_root=SERVICE_ROOT,
                                     allow_access_levels=["WRITE_PRIVATE"])

affects: quickly (Ubuntu) → python-launchpadlib (Ubuntu)
summary: - Unable to configure ppa with quickly project
+ ConfigParser.NoOptionError: No option 'consumer_key' in section: '1'
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-launchpadlib (Ubuntu):
status: New → Confirmed
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.