ValueError: need more than 1 value to unpack on startup

Asked by Frederik Himpe

When I start up gwibber, I get this output:

$ gwibber

** (gwibber:10893): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'

** (gwibber:10893): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'

** (gwibber:10893): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
Traceback (most recent call last):
  File "/usr/bin/gwibber", line 50, in <module>
    from gwibber import client
  File "/usr/lib/python2.6/site-packages/gwibber/client.py", line 2, in <module>
    import gtk, gobject, gwui, util, resources, actions, json, gconf
  File "/usr/lib/python2.6/site-packages/gwibber/gwui.py", line 2, in <module>
    import os, json, urlparse, resources, util
  File "/usr/lib/python2.6/site-packages/gwibber/util.py", line 2, in <module>
    from microblog.util.couch import RecordMonitor
  File "/usr/lib/python2.6/site-packages/gwibber/microblog/util/couch.py", line 3, in <module>
    import desktopcouch, pycurl, oauth, threading, urllib, re, json
  File "/usr/lib/python2.6/site-packages/desktopcouch/__init__.py", line 20, in <module>
    from desktopcouch.start_local_couchdb import process_is_couchdb, read_pidfile
  File "/usr/lib/python2.6/site-packages/desktopcouch/start_local_couchdb.py", line 38, in <module>
    from desktopcouch import local_files
  File "/usr/lib/python2.6/site-packages/desktopcouch/local_files.py", line 297, in <module>
    xdg_base_dirs.save_config_path("desktop-couch"))
  File "/usr/lib/python2.6/site-packages/desktopcouch/local_files.py", line 237, in __init__
    self.configuration = _Configuration(self)
  File "/usr/lib/python2.6/site-packages/desktopcouch/local_files.py", line 92, in __init__
    admin_username, admin_password = data[0].secret.split(":", 1)
ValueError: need more than 1 value to unpack

Same when launching desktopcouch:

$ /usr/lib/desktopcouch/desktopcouch-service
Traceback (most recent call last):
  File "/usr/lib/desktopcouch/desktopcouch-service", line 51, in <module>
    import desktopcouch
  File "/usr/lib/python2.6/site-packages/desktopcouch/__init__.py", line 20, in <module>
    from desktopcouch.start_local_couchdb import process_is_couchdb, read_pidfile
  File "/usr/lib/python2.6/site-packages/desktopcouch/start_local_couchdb.py", line 38, in <module>
    from desktopcouch import local_files
  File "/usr/lib/python2.6/site-packages/desktopcouch/local_files.py", line 297, in <module>
    xdg_base_dirs.save_config_path("desktop-couch"))
  File "/usr/lib/python2.6/site-packages/desktopcouch/local_files.py", line 237, in __init__
    self.configuration = _Configuration(self)
  File "/usr/lib/python2.6/site-packages/desktopcouch/local_files.py", line 92, in __init__
    admin_username, admin_password = data[0].secret.split(":", 1)
ValueError: need more than 1 value to unpack

What could be wrong?

python-couchdb-0.7-1mdv2010.1
desktopcouch-0.6.4-1mdv2010.1
couchdb-bin-0.11.0-1mdv2010.1

Question information

Language:
English Edit question
Status:
Answered
For:
desktopcouch Edit question
Assignee:
Chad Miller Edit question
Last query:
Last reply:
Whiteboard:
Assigning to Chad since he's been working on these desktopcouch related problems.
Revision history for this message
Brett Wilkins (brettwilkins) said :
#1

In answer to the question, "What could be wrong?":

From the looks of that traceback, data[0].split does not contain a ':' to split on, so doesn't return a tuple/list with enough values to split out into admin_username and admin_password. This could quite possibly be a configuration issue.

As for how to fix, I am uncertain as I'm currently unable to replicate the issue.

Cheers,
Brett

Can you help with this problem?

Provide an answer of your own, or ask Frederik Himpe for more information if necessary.

To post a message you must log in.