[Bug 1042754] Re: syncpackage: fails with JSON error in chroot

Jason R. Coombs jaraco at jaraco.com
Thu Nov 29 17:57:21 UTC 2012


I've applied the contributed patch and re-released keyring as 0.9.3
(also 0.10.1).

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-keyring in Ubuntu.
https://bugs.launchpad.net/bugs/1042754

Title:
  syncpackage: fails with JSON error in chroot

Status in Python Keyring:
  New
Status in “python-keyring” package in Ubuntu:
  Fix Released
Status in “python-keyring” source package in Oneiric:
  Fix Released
Status in “python-keyring” source package in Precise:
  Fix Released
Status in “python-keyring” source package in Quantal:
  Fix Released
Status in “python-keyring” source package in Raring:
  Fix Released

Bug description:
  $ syncpackage cups-pdf
  Traceback (most recent call last):
    File "/usr/bin/syncpackage", line 750, in <module>
      main()
    File "/usr/bin/syncpackage", line 650, in main
      Launchpad.login(**kwargs)
    File "/usr/lib/python2.7/dist-packages/ubuntutools/lp/lpapicache.py", line 66, 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 282, in load
      return self.do_load(unique_key)
    File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 336, in do_load
      'launchpadlib', unique_key)
    File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 37, in get_password
      return _keyring_backend.get_password(service_name, username)
    File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 375, in get_password
      password = self.decrypt(password_encrypted).decode('utf-8')
    File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 549, in decrypt
      data = json.loads(password_encrypted)
    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 365, in decode
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "/usr/lib/python2.7/json/decoder.py", line 383, in raw_decode
      raise ValueError("No JSON object could be decoded")
  ValueError: No JSON object could be decoded

  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: ubuntu-dev-tools 0.143
  Uname: Linux 3.2.0-3-686-pae i686
  NonfreeKernelModules: cpufreq_stats cpufreq_conservative cpufreq_powersave cpufreq_userspace parport_pc ppdev lp parport bnep rfcomm bluetooth binfmt_misc uinput ecryptfs dm_crypt dm_mod snd_hda_codec_idt snd_hda_intel snd_hda_codec snd_hwdep arc4 snd_pcm_oss snd_mixer_oss snd_pcm snd_page_alloc snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq iwl4965 iwl_legacy snd_seq_device snd_timer snd joydev mac80211 cfg80211 soundcore acpi_cpufreq iTCO_wdt iTCO_vendor_support mperf i2c_i801 pcmcia rng_core yenta_socket pcmcia_rsrc coretemp dell_wmi sparse_keymap pcmcia_core psmouse processor battery ac evdev serio_raw ext4 crc16 jbd2 mbcache btrfs crc32c libcrc32c zlib_deflate usbhid hid sg sd_mod crc_t10dif dell_laptop rfkill power_supply ata_generic dcdbas i915 ata_piix libata sdhci_pci sdhci firewire_ohci scsi_mod i2c_algo_bit drm_kms_helper drm uhci_hcd ehci_hcd firewire_core crc_itu_t mmc_core tg3 libphy video thermal wmi button usbcore i2c_core thermal_sys usb_common
  ApportVersion: 2.5.1-0ubuntu2
  Architecture: i386
  Date: Tue Aug 28 16:53:01 2012
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=fi_FI:en
   TERM=xterm
   PATH=(custom, user)
   LANG=fi_FI.UTF-8
   SHELL=/bin/bash
  SourcePackage: ubuntu-dev-tools
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-keyring/+bug/1042754/+subscriptions




More information about the foundations-bugs mailing list