Hovatek Forum DEVELOPMENT Android [avbtool] Windows error?
Try our Online TWRP Builder..its free!
Can't login? Please, reset your password.


[avbtool] Windows error?

[avbtool] Windows error?

flagpol
flagpol
flagpol
Enthusiastic Member
5
07-10-2020, 04:51 PM
#1



Hello, I encountered a problem using avbtool to extract the public key.

It sent this traceback after using this command:

Code:

python avbtool extract_public_key --key rsa4096_vbmeta.pem --output Keys/signing.bin


Code:

Traceback (most recent call last):
  File "avbtool", line 4154, in <module>
    tool.run(sys.argv)
  File "avbtool", line 4004, in run
    args.func(args)
  File "avbtool", line 4015, in extract_public_key
    self.avb.extract_public_key(args.key, args.output)
  File "avbtool", line 2697, in extract_public_key
    output.write(encode_rsa_key(key_path))
  File "avbtool", line 406, in encode_rsa_key
    key = RSAPublicKey(key_path)
  File "avbtool", line 368, in __init__
    stderr=subprocess.PIPE)
  File "C:\Python27\lib\subprocess.py", line 394, in __init__
    errread, errwrite)
  File "C:\Python27\lib\subprocess.py", line 644, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

What seems to be the problem? I have complete files, used avbtool successfully when I got the public keys for the chain partitions.
flagpol
flagpol
flagpol
Enthusiastic Member
5
07-10-2020, 05:06 PM
#2
Device is a Cherry Mobile Flare J3S with a SPD SP7731E chipset.
X3non
X3non
X3non
Recognized Contributor
22,062
08-10-2020, 10:19 AM
#3
(07-10-2020, 04:51 PM)flagpol Hello, I encountered a problem using avbtool to extract the public key.
...
What seems to be the problem? I have complete files, used avbtool successfully when I got the public keys for the chain partitions.

which python version do you have installed? 2.7.10?
flagpol
flagpol
flagpol
Enthusiastic Member
5
08-10-2020, 04:10 PM
#4
I think I installed the latest 2.7 Python for Windows. But all is well now, booted into Linux and ran the tools again. Worked fine with a handy chmod 777 command, I recall.
hovatek
hovatek
hovatek
Administrator
49,570
11-10-2020, 11:13 AM
#5



(08-10-2020, 04:10 PM)flagpol I think I installed the latest 2.7 Python for Windows. But all is well now, booted into Linux and ran the tools again. Worked fine with a handy chmod 777 command, I recall.

Linux is the way to go as you've observed
This post was last modified: 11-10-2020, 11:13 AM by hovatek.

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
X3non
X3non
X3non
Recognized Contributor
22,062
12-10-2020, 08:46 AM
#6
(08-10-2020, 04:10 PM)flagpol I think I installed the latest 2.7 Python for Windows. But all is well now, booted into Linux and ran the tools again. Worked fine with a handy chmod 777 command, I recall.

i have python 2.7.10 (not sure if 32 or 64 bits version is active because both are listed in my list of installed programs)
running same command as you did without errors
This post was last modified: 12-10-2020, 08:47 AM by X3non.
Attached Files
.png
avb_extract.png
Size: 125.2 KB / Downloads: 11
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram