ValueError: too many values to unpack

Bug #705158 reported by Colin Law on 2011-01-19
96
This bug affects 17 people
Affects Status Importance Assigned to Milestone
jobs-admin
Medium
Unassigned

Bug Description

Installed jobs-admin (and jobservice) 0.8.0-0ubuntu1 on Maverick from repository. On starting from System menu it appears to crash immediately. When run from terminal -
$ jobs-admin
No module named pkit
Traceback (most recent call last):
  File "/usr/bin/jobs-admin", line 31, in <module>
    ui.load_jobs()
  File "/usr/lib/pymodules/python2.6/JobsAdmin/__init__.py", line 108, in load_jobs
    weight = 700 if job.running else 400
  File "/usr/lib/pymodules/python2.6/JobsAdmin/remote.py", line 68, in __getattr__
    retry(self._connect, call)
  File "/usr/lib/pymodules/python2.6/JobsAdmin/util.py", line 26, in retry
    return func()
  File "/usr/lib/pymodules/python2.6/JobsAdmin/remote.py", line 67, in call
    dbus_interface=PROPERTIES_IFACE)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 68, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.ValueError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/pymodules/python2.6/JobService/job.py", line 40, in GetAll
    self._load_properties()
  File "/usr/lib/pymodules/python2.6/JobService/job.py", line 122, in _load_properties
    self._props = self.root.proxy.get_service(self.name)
  File "/usr/lib/pymodules/python2.6/JobService/backends/__init__.py", line 111, in get_service
    info.update(bk.get_service(name))
  File "/usr/lib/pymodules/python2.6/JobService/backends/upstart_0_6.py", line 73, in get_service
    job_name, inst_name = self._split_job(name)
  File "/usr/lib/pymodules/python2.6/JobService/backends/upstart_0_6.py", line 136, in _split_job
    job_name, inst_name = name.split('/')
ValueError: too many values to unpack

Jacob Peddicord (jpeddicord) wrote :

It's already fixed in bzr; I just need to release and package it for Natty (and possibly backport to Maverick).

summary: - jobs-admin crash on startup - No module named pkit
+ ValueError: too many values to unpack
Changed in jobsadmin:
importance: Undecided → Medium
status: New → Fix Committed
Colin Law (colin-law) wrote :

It would be great if this were fixed for Maverick. I got all excited when I saw the 'Call for testing' request and was disappointed that it would not work for me at all. :(

Eugene Volkov (evolkov) wrote :

Seems to be extremely important. I just installed 10.10 and cannot have GUI for which services to run??? What can be more important? Can we imagine, for example, windows PC with Manage->Services?

Changed in jobsadmin:
status: Fix Committed → Fix Released
Jacob Peddicord (jpeddicord) wrote :

Please don't change the bug status; the fix will be released when it's released. I'll try my best to get this pushed to Maverick soon.

Changed in jobsadmin:
status: Fix Released → Fix Committed

Sorry, I did not understand what I was doing... I did not expect it will allow me to do that, will not do it any more

Sorry again,
Eugene

________________________________________
From: <email address hidden> [<email address hidden>] On Behalf Of Jacob Peddicord [<email address hidden>]
Sent: Thursday, January 20, 2011 5:58 PM
To: Evgeniy Volkov
Subject: [Bug 705158] Re: ValueError: too many values to unpack

Please don't change the bug status; the fix will be released when it's
released. I'll try my best to get this pushed to Maverick soon.

** Changed in: jobsadmin
       Status: Fix Released => Fix Committed

--
You received this bug notification because you are a direct subscriber
of the bug.
https://bugs.launchpad.net/bugs/705158

Title:
  ValueError: too many values to unpack

Status in jobs-admin:
  Fix Committed

Bug description:
  Installed jobs-admin (and jobservice) 0.8.0-0ubuntu1 on Maverick from repository. On starting from System menu it appears to crash immediately. When run from terminal -
  $ jobs-admin
  No module named pkit
  Traceback (most recent call last):
    File "/usr/bin/jobs-admin", line 31, in <module>
      ui.load_jobs()
    File "/usr/lib/pymodules/python2.6/JobsAdmin/__init__.py", line 108, in load_jobs
      weight = 700 if job.running else 400
    File "/usr/lib/pymodules/python2.6/JobsAdmin/remote.py", line 68, in __getattr__
      retry(self._connect, call)
    File "/usr/lib/pymodules/python2.6/JobsAdmin/util.py", line 26, in retry
      return func()
    File "/usr/lib/pymodules/python2.6/JobsAdmin/remote.py", line 67, in call
      dbus_interface=PROPERTIES_IFACE)
    File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 68, in __call__
      return self._proxy_method(*args, **keywords)
    File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
      **keywords)
    File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
      message, timeout)
  dbus.exceptions.DBusException: org.freedesktop.DBus.Python.ValueError: Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
      retval = candidate_method(self, *args, **keywords)
    File "/usr/lib/pymodules/python2.6/JobService/job.py", line 40, in GetAll
      self._load_properties()
    File "/usr/lib/pymodules/python2.6/JobService/job.py", line 122, in _load_properties
      self._props = self.root.proxy.get_service(self.name)
    File "/usr/lib/pymodules/python2.6/JobService/backends/__init__.py", line 111, in get_service
      info.update(bk.get_service(name))
    File "/usr/lib/pymodules/python2.6/JobService/backends/upstart_0_6.py", line 73, in get_service
      job_name, inst_name = self._split_job(name)
    File "/usr/lib/pymodules/python2.6/JobService/backends/upstart_0_6.py", line 136, in _split_job
      job_name, inst_name = name.split('/')
  ValueError: too many values to unpack

To unsubscribe from this bug, go to:
https://bugs.launchpad.net/jobsadmin/+bug/705158/+subscribe

I have the same here, and I would also like to have it vor maverick. Thanks

Joshua Montee (joshua-montee) wrote :

Patiently waiting... please don't forget, Maverick needs this badly... Thank you...

Jacob Peddicord (jpeddicord) wrote :

I've released 0.8.1 on Launchpad, which should have fixed the problem. Packages are set up build in my PPA soon. If you would like to test, run the following command and then upgrade:

    sudo add-apt-repository ppa:jpeddicord/jobs

I'll try to push this to Natty this weekend, and then get stuff in place to do an update to Maverick as well. I apologize for the time it took for all of this to happen -- I've been swamped with work. Thanks for your patience, and I hope to have this solved *very* soon. :)

Colin Law (colin-law) wrote :

The ppa version is working for me on Maverick. Many thanks.
Colin

Eugene Volkov (evolkov) wrote :

Thank you, Worked for me.
Eugene

@Jacob
Your PPA doesn't solve the problem for me. I have still the same message, which begins by "No module named pkit" and ends by "ValueError: too many values to unpack".

More information : the use of your PPA only updated the package jobservice and not jobs-admin. There is maybe a problem with the version number. I think it's better to don't use the force version of Synaptic, but to have a newer version number such as 0.8.1 for the package jobs-admin too.

I attach a screenshot of your PPA, I saw today morning. Launchpad think there is a newer version of jobs-admin in the repositories.

Jacob Peddicord (jpeddicord) wrote :

Thibault:
 The PPA versions are intentional -- only jobservice needs to be updated to fix the issue; jobs-admin won't be installed from the PPA since the one in Maverick will work fine. Could you run a quick `apt-cache policy jobservice` and confirm that you're actually using 0.8.1? If it still doesn't work, please try a quick restart as it's possible that the old service is still running. You should see something like this:

jobservice:
  Installed: 0.8.1-0ubuntu1
  Candidate: 0.8.1-0ubuntu1
  Version table:
 *** 0.8.1-0ubuntu1 0
        500 http://ppa.launchpad.net/jpeddicord/jobs/ubuntu/ maverick/main amd64 Packages
        100 /var/lib/dpkg/status
     0.8.0-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ maverick/universe amd64 Packages

Furthermore, the "No module named pkit" error is actually harmless: it's some debugging code I forgot to take out of the production build. It's fixed in trunk for 0.9, but it's not worth releasing a fix for the 0.8 series yet as it doesn't actually solve anything. :)

I restart my computer and everything is ok. Thanks for the answer.

Joshua Montee (joshua-montee) wrote :

@Jacob
You are the man! The GUI launches fine now and I'm ecstatic! Thank you so much for this amazingly useful system utility, I'm looking forward to it being added to the Maverick repository!

draxx31 (draxx31) wrote :

Thank you the version 0.8.1 correct the problem on my Ubuntu 64 bits.

Michael Höller (akazia) wrote :

Hello,

just installed Natty from srcatch and also jobs-admin. I get the same error message for natty.

Michael

Mei (ddouthitt) wrote :

Same thing happens to me on a fully patched Maverick Meerkat (10.10) on i386. Updating to 0.8.1 made no difference.

I had to install 0.8.1 manually by downloading it from the PPA - and not from the jobs/ PPA but from jobtools/ PPA instead. apt-get refused to acknowledge the new version - even when trying to install with apt-get install jobservice=0.8.1 ...

The PPA apt config was stored in /etc/apt/sources.list.d/jpeddicord-jobtools-maverick.list:

deb http://ppa.launchpad.net/jpeddicord/jobtools/ubuntu maverick main
deb-src http://ppa.launchpad.net/jpeddicord/jobtools/ubuntu maverick main

I added these lines by running add-apt-repository.

Lars Tørnes Hansen (larsth) wrote :

Please enlighten me!
If a fix has been committed and released, so why did the new code not reach the Maverick universe repository?
What happend?

I subscribed to this bug in February 2011 and it still have the same Error, that is:

jobs-admin

No module named pkit
Traceback (most recent call last):
  File "/usr/bin/jobs-admin", line 31, in <module>
    ui.load_jobs()
...
ValueError: too many values to unpack

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers