Trouble with the linaro image tools on Debian wheezy

Bug #856671 reported by Zach Pfeffer
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linaro-image-tools (Ubuntu)
Fix Released
Medium
Loïc Minier

Bug Description

I run Debian 'testing' (wheezy) and have trouble with the linaro image
tools. A minor problem seems to be that python-parted only gets built
for python 2.7, so I have to manually run that version. Not a big
deal. But, then:

davidb@huya:~/linaro% sudo python2.7 linaro-image-tools/linaro-media-create --mmc /dev/sde --dev panda --hwpack hwpack_linaro-lt-panda_20110920-0_armel_supported.tar.gz --binary nano-n-tar-20110920-0.tar.gz
[sudo] password for davidb:
Traceback (most recent call last):
 File "linaro-image-tools/linaro-media-create", line 138, in <module>
   args.nocheck_mmc):
 File "/home/davidb/linaro/linaro-image-tools/linaro_image_tools/media_create/check_device.py", line 125, in confirm_device_selection_and_ensure_it_is_ready
   if _does_device_exist(device):
 File "/home/davidb/linaro/linaro-image-tools/linaro_image_tools/media_create/check_device.py", line 58, in _does_device_exist
   bus, udisks = _get_system_bus_and_udisks_iface()
 File "/home/davidb/linaro/linaro-image-tools/linaro_image_tools/media_create/check_device.py", line 34, in _get_system_bus_and_udisks_iface
   bus.get_object("org.freedesktop.UDisks", "/org/freedesktop/UDisks"),
 File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 244, in get_object
   follow_name_owner_changes=follow_name_owner_changes)
 File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 246, in __init__
   self._named_service = conn.activate_name_owner(bus_name)
 File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 183, in activate_name_owner
   self.start_service_by_name(bus_name)
 File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 281, in start_service_by_name
   'su', (bus_name, flags)))
 File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 630, in call_blocking
   message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UDisks was not provided by any .service files

I think it's trying to ask dbus about the device, but assumes some
kind of service running. I don't use Gnome (I don't want to use
gnome), and perhaps this is some Gnome service. Tying the image tools
to the gui seems kind of odd.

BTW, if I just 'return True' in the
confirm_device_selection_and_ensure_it_is_ready it goes through a lot
of steps and then bombs with another error trying to get a device.

(As a side issue, there doesn't seem to be any way of specyfing a proxy server
to be used in the chroot. We have direct internet access, but it goes through
an evil webwasher, and without a proxy, fetches are very slow.)

I was able to work around this by getting the size of my device, and
making to an image instead of directly to the device.

David

--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

Revision history for this message
Fathi Boudra (fboudra) wrote :

Do you have udisks package installed?

I've just uploaded 2011.08 to Debian. I had to force python2.7 as well and increase the sleep time after sfdisk.
You can give it a try: http://people.debian.org/~fabo/linaro-image-tools_2011.08-1/

As a work-around, you should be able to create an image using --image_file option and dd the file.

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 856671] [NEW] Trouble with the linaro image tools on Debian wheezy
Download full text (3.7 KiB)

Hi,

It looks like you don't have the "udisks" package installed, which
linaro-media-create depends on when working with external media.

It's not a Gnome service, it's a system service that is a thin layer on
top of udev for providing a storage-related API.

Thanks,

James

On Thu, 22 Sep 2011 18:30:22 -0000, Zach Pfeffer <email address hidden> wrote:
> Public bug reported:
>
> I run Debian 'testing' (wheezy) and have trouble with the linaro image
> tools. A minor problem seems to be that python-parted only gets built
> for python 2.7, so I have to manually run that version. Not a big
> deal. But, then:
>
> davidb@huya:~/linaro% sudo python2.7 linaro-image-tools/linaro-media-create --mmc /dev/sde --dev panda --hwpack hwpack_linaro-lt-panda_20110920-0_armel_supported.tar.gz --binary nano-n-tar-20110920-0.tar.gz
> [sudo] password for davidb:
> Traceback (most recent call last):
> File "linaro-image-tools/linaro-media-create", line 138, in <module>
> args.nocheck_mmc):
> File "/home/davidb/linaro/linaro-image-tools/linaro_image_tools/media_create/check_device.py", line 125, in confirm_device_selection_and_ensure_it_is_ready
> if _does_device_exist(device):
> File "/home/davidb/linaro/linaro-image-tools/linaro_image_tools/media_create/check_device.py", line 58, in _does_device_exist
> bus, udisks = _get_system_bus_and_udisks_iface()
> File "/home/davidb/linaro/linaro-image-tools/linaro_image_tools/media_create/check_device.py", line 34, in _get_system_bus_and_udisks_iface
> bus.get_object("org.freedesktop.UDisks", "/org/freedesktop/UDisks"),
> File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 244, in get_object
> follow_name_owner_changes=follow_name_owner_changes)
> File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 246, in __init__
> self._named_service = conn.activate_name_owner(bus_name)
> File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 183, in activate_name_owner
> self.start_service_by_name(bus_name)
> File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 281, in start_service_by_name
> 'su', (bus_name, flags)))
> File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 630, in call_blocking
> message, timeout)
> dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UDisks was not provided by any .service files
>
> I think it's trying to ask dbus about the device, but assumes some
> kind of service running. I don't use Gnome (I don't want to use
> gnome), and perhaps this is some Gnome service. Tying the image tools
> to the gui seems kind of odd.
>
> BTW, if I just 'return True' in the
> confirm_device_selection_and_ensure_it_is_ready it goes through a lot
> of steps and then bombs with another error trying to get a device.
>
> (As a side issue, there doesn't seem to be any way of specyfing a proxy server
> to be used in the chroot. We have direct internet access, but it goes through
> an evil webwasher, and without a proxy, fetches are very slow.)
>
> I was able to work around this by getting the size of my device, and
> making to an image instead of directly to the device.
>
> David
>
> --
> Sent by ...

Read more...

Revision history for this message
Guilherme Salgado (salgado) wrote :

Do you have udisks installed? l-m-c is known to require udisks when
writing to an sdcard, but it doesn't need that when writing to an image
file.

Maybe linaro-image-tools should recommend udisks?

Revision history for this message
Loïc Minier (lool) wrote :

NB: The deps are a bit messy between linaro-image-tools and python-linaro-image-tools, but I think only linaro-image-tools uses python-linaro-image-tools right now anyway.

affects: linaro-image-tools → linaro-image-tools (Ubuntu)
Changed in linaro-image-tools (Ubuntu):
importance: Undecided → Medium
assignee: nobody → Loïc Minier (lool)
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linaro-image-tools - 2011.07-0ubuntu2

---------------
linaro-image-tools (2011.07-0ubuntu2) oneiric; urgency=low

  * Let linaro-image-tools Recommend udisks; LP: #856671.
 -- Loic Minier <email address hidden> Fri, 23 Sep 2011 10:49:45 +0200

Changed in linaro-image-tools (Ubuntu):
status: Fix Committed → Fix Released
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.