Comments (2)
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.
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)
- Is this any Vital Error or should be ignored ? HOT 4
- Docker container to overcome Python verion and dependency issues HOT 2
- Payload dump failed HOT 1
- got an unexpected keyword argument 'serialized_options' HOT 2
- TypeError: expected bytes, Descriptor found
- Not able to get it working on macOS (10.15.4) HOT 1
- Pipenv file
- Windows support HOT 1
- Failed: Unhandled Operation HOT 3
- python3 in Example HOT 2
- Repo licencing HOT 1
- Issues extracting realme erofs images HOT 2
- Is THAT long extracting normal? HOT 1
- ModuleNotFoundError: No module named 'checker' HOT 20
- [FR]Please Provide pip package HOT 2
- Error: global name update_payload is not defined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from extract_android_ota_payload.