TeamWin / Team-Win-Recovery-Project

Core recovery files for the Team Win Recovery Project (T.W.R.P) - this is not up to date, please see https://github.com/TeamWin/android_bootable_recovery/
http://twrp.me
1.97k stars 740 forks source link

Error in the log, refers to: "*** Error opening \"%s.sha1\"; can't verify %s" % (fn, key) #1589

Closed Hadenix closed 3 years ago

Hadenix commented 3 years ago

Device codename: A5_Pro TWRP version: 3.4.0_9

WHAT IS THE EXPECTED RESULT?

I get this error and can't build a recovery

ADDITIONAL INFORMATION

[  9% 1357/14278] Generated: (/home/hadenix/twrp-9/out/target/product/A5_Pro/android-info.txt)
FAILED: /home/hadenix/twrp-9/out/target/product/A5_Pro/android-info.txt 
/bin/bash -c "(build/make/tools/check_radio_versions.py ) && (echo \"board=mt6763\" > /home/hadenix/twrp-9/out/target/product/A5_Pro/android-info.txt )"
  File "build/make/tools/check_radio_versions.py", line 56
    print "*** Error opening \"%s.sha1\"; can't verify %s" % (fn, key)
          ^
SyntaxError: invalid syntax
NavlysChen commented 3 years ago

Hey bro, do you solve this problem?

SL-Pirate commented 3 years ago

python problem I'm also porting a rom but can't figure out how to fix please tell us if you fix this

sevenrock commented 2 years ago

Try this patch: https://review.lineageos.org/c/LineageOS/android_build/+/2981/2/tools/check_radio_versions.py#59 This patch might also be needed: https://review.lineageos.org/c/LineageOS/android_build/+/2988

rumplestilzken commented 2 years ago

Try this patch: https://review.lineageos.org/c/LineageOS/android_build/+/2981/2/tools/check_radio_versions.py#59 This patch might also be needed: https://review.lineageos.org/c/LineageOS/android_build/+/2988

These patches fixed the build on Linux Mint 20.3, Python 3.8.10 and running the latest version of twrp minimal. Both were required to get the build to a stable state. The first i applied fixed the check_radio_versions exception. The second was required to fix a "'dict' object has no attribute 'iteritems'" excpetion.

rumplestilzken commented 2 years ago

You cannot compile the entire source using python3, you need to update your symlink for python to python2 not 3. Otherwise you will run into issues with print statements.