Giter Club home page Giter Club logo

Comments (2)

dhananjaygbhardwaj avatar dhananjaygbhardwaj commented on August 10, 2024

On macOS 10.15 (python3, pip3, and protobuf installed)

Used: python3 extract_android_ota_payload.py payload.bin

Got the following:

dhananjay@Dhananjays-MacBook-Air extract_android_ota_payload-master % python3 extract_android_ota_payload.py payload.bin
Traceback (most recent call last):
  File "extract_android_ota_payload.py", line 14, in <module>
    raise Exception("Python 2.x is required")
Exception: Python 2.x is required

If I simply use the inbuilt Python 2.7:

dhananjay@Dhananjays-MacBook-Air extract_android_ota_payload-master % python extract_android_ota_payload.py payload.bin 
Extracting 'LOGO.img'
Traceback (most recent call last):
  File "extract_android_ota_payload.py", line 145, in <module>
    main(filename, output_dir)
  File "extract_android_ota_payload.py", line 124, in main
    parse_payload(payload, p, out_f)
  File "extract_android_ota_payload.py", line 99, in parse_payload
    r = decompress_payload('xzcat', data, e.num_blocks * BLOCK_SIZE, operation.data_sha256_hash)
  File "extract_android_ota_payload.py", line 82, in decompress_payload
    p = subprocess.Popen([command, '-'], stdout=subprocess.PIPE, stdin=subprocess.PIPE)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

from extract_android_ota_payload.

cyxx avatar cyxx commented on August 10, 2024

Changes for python 3 have been merged (#12).

The script also require having 'bzcat' and 'xzcat' in PATH.

from extract_android_ota_payload.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.