制作差分包失败提示OSError[Errno 2] No such file no directory分析

    首先来说这是一个很不应该的错误,刚开始以为是Python2.6.5版本的问题,但是更新了版本依旧如此;然后网上查了一下,很多网友认为是环境变量的问题,但是实际上环境变量配置也没有什么问题(错误看起来相似,但问题不尽相同)。base.zip、lk.bin和target.zip包是从存放版本的ftp服务器上直接下载下来的并没有本地new&&otapackage生成target.zip,然后使用使用相对应分支下的脚本ota_from_target_files来制作差分包的,脚本的同事建议我重新编译分支的代码,new&&otapackage来重新制作target.zip包。后来我在编译时同时重新查看了一下我下载base.zip包的机型才发现跟制作差分包的脚本不是同一个机型。然后重新在ftp服务器上下载对应机型的文件包,差分包制作OK。

Log信息:
build/tools/releasetools/ota_from_target_files -u lk.bin  -n  -i base.zip target.zip update.zip
unzipping target target-files...
using device-specific extensions in out/target/product/wt98360/obj/CUSTGEN/common
unzipping source target-files...
unable to load device-specific module; assuming none
Loading target...
Loading source...
send system/app/Calendar_B010.apk verbatim
send system/app/HwDeskClock_B013.apk verbatim
send system/priv-app/HwWeatherClock_B008.apk verbatim
send system/priv-app/SetupWizard.apk verbatim
send system/vendor/operator/app/TouchPal_V5.6.0.7.105352_GlobalSimple.apk verbatim
239 diffs to compute
[Errno 2] No such file or directory
[Errno 2] No such file or directory
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/huangyabin/code/S98360B1_movistar/alps/build/tools/releasetools/common.py", line 935, in worker
    d.ComputePatch()
  File "/home/huangyabin/code/S98360B1_movistar/alps/build/tools/releasetools/common.py", line 895, in ComputePatch
    p = Run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/home/huangyabin/code/S98360B1_movistar/alps/build/tools/releasetools/common.py", line 68, in Run
    return subprocess.Popen(args, **kwargs)
  File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/huangyabin/code/S98360B1_movistar/alps/build/tools/releasetools/common.py", line 935, in worker
    d.ComputePatch()
  File "/home/huangyabin/code/S98360B1_movistar/alps/build/tools/releasetools/common.py", line 895, in ComputePatch
    p = Run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/home/huangyabin/code/S98360B1_movistar/alps/build/tools/releasetools/common.py", line 68, in Run
    return subprocess.Popen(args, **kwargs)
  File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

[Errno 2] No such file or directory
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/huangyabin/code/S98360B1_movistar/alps/build/tools/releasetools/common.py", line 935, in worker
    d.ComputePatch()
  File "/home/huangyabin/code/S98360B1_movistar/alps/build/tools/releasetools/common.py", line 895, in ComputePatch
    p = Run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/home/huangyabin/code/S98360B1_movistar/alps/build/tools/releasetools/common.py", line 68, in Run
    return subprocess.Popen(args, **kwargs)
  File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

building image from target_files BOOT...
Traceback (most recent call last):
  File "build/tools/releasetools/ota_from_target_files", line 1420, in 
    main(sys.argv[1:])
  File "build/tools/releasetools/ota_from_target_files", line 1405, in main
    WriteIncrementalOTAPackage(input_zip, source_zip, output_zip)
  File "build/tools/releasetools/ota_from_target_files", line 970, in WriteIncrementalOTAPackage
    OPTIONS.source_info_dict)
  File "/home/huangyabin/code/S98360B1_movistar/alps/build/tools/releasetools/common.py", line 360, in GetBootableImage
    info_dict))
  File "/home/huangyabin/code/S98360B1_movistar/alps/build/tools/releasetools/common.py", line 288, in BuildBootableImage
    p1 = Run(cmd, stdout=subprocess.PIPE)
  File "/home/huangyabin/code/S98360B1_movistar/alps/build/tools/releasetools/common.py", line 68, in Run
    return subprocess.Popen(args, **kwargs)
  File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

你可能感兴趣的:(Android,OTA(MTK))