Comment 0 for bug 1196862

Revision history for this message
Colin Ian King (colin-king) wrote : utah on phablet dies in an ugly way if one does not have phablet-flash installed

I did a clean raring install on my test box and then ran run_utah_phablet.py and got the following trace:

PYTHONPATH=./utah ./utah/examples/run_utah_phablet.py --skip-install --skip-network --ppa=ppa:utah/daily
= installing utah...
Traceback (most recent call last):
  File "./utah/examples/run_utah_phablet.py", line 403, in <module>
    main()
  File "./utah/examples/run_utah_phablet.py", line 395, in main
    _install_utah(args)
  File "./utah/examples/run_utah_phablet.py", line 149, in _install_utah
    _adb(args, ['root'])
  File "./utah/examples/run_utah_phablet.py", line 129, in _adb
    subprocess.check_call(cmd)
  File "/usr/lib/python2.7/subprocess.py", line 537, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 524, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1308, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

It was my fault for forgetting to install phablet-flash, but I guess the error reporting could be a bit more user-friendly rather than having to grok the source to figure out why it exploded.