pianyu / 0xdroid

Automatically exported from code.google.com/p/0xdroid
0 stars 0 forks source link

Unable to use python script for preaparing sd card. (0x7) #169

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I'm unable to use ./linaro-android-media-create script (for 0x7 ginderbread)
2.Error is: 

Traceback (most recent call last):
  File "./linaro-android-media-create", line 28, in <module>
    from linaro_image_tools.media_create.android_boards import android_board_configs
  File "/tmp/image/linaro-image-tools-0.4.5/linaro_image_tools/media_create/__init__.py", line 20, in <module>
    import argparse
ImportError: No module named argparse

3. i'm using ubuntu. ı tried it ubuntu 10.04 and 11
4. I search for the solutions of error "imputerror" No module named XXXXX but 
none of them work.

Original issue reported on code.google.com by cucuman....@gmail.com on 9 Jun 2011 at 8:04

GoogleCodeExporter commented 9 years ago
with the help of 0xdroid irc channel problem solved. "apt-get install 
argparse", 

Original comment by cucuman....@gmail.com on 9 Jun 2011 at 8:47

GoogleCodeExporter commented 9 years ago
 i fixed the problem of argparse with the help of 0xdroid irc channel but now script itself fails. here is the error:

Traceback (most recent call last):
  File "./linaro-android-media-create", line 142, in <module>
    args.should_align_boot_part)
  File "/tmp/image/linaro-image-tools-0.4.5/linaro_image_tools/media_create/partitions.py", line 54, in setup_android_partitions
    get_android_partitions_for_media (media, board_config)
  File "/tmp/image/linaro-image-tools-0.4.5/linaro_image_tools/media_create/partitions.py", line 267, in get_android_partitions_for_media
    media.path, 1 + board_config.mmc_part_offset)
  File "/tmp/image/linaro-image-tools-0.4.5/linaro_image_tools/media_create/partitions.py", line 312, in _get_device_file_for_partition_number
    device_path = _get_udisks_device_path(dev_file)
  File "/tmp/image/linaro-image-tools-0.4.5/linaro_image_tools/media_create/partitions.py", line 327, in _get_udisks_device_path
    return udisks.get_dbus_method('FindDeviceByDeviceFile')(device)
  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.UDisks.Error.Failed: No such 
device

I'm perfectly sure device location. 
After getting this error, it was like 8 or 9 partition created in sd card:) 

Original comment by cucuman....@gmail.com on 9 Jun 2011 at 8:55

GoogleCodeExporter commented 9 years ago
Documentation needed

Original comment by jserv.tw@gmail.com on 9 Jun 2011 at 9:07

GoogleCodeExporter commented 9 years ago
I have added documentation to describe installation without python script.

http://code.google.com/p/0xdroid/wiki/0x7_leb_gingerbread#Install_Image_Manually

Original comment by walkingi...@gmail.com on 5 Jul 2011 at 8:27

GoogleCodeExporter commented 9 years ago
Try to install "python-argparse" package. then it works

Original comment by vranjan...@gmail.com on 10 Dec 2011 at 7:16