mashed-potatoes / PotatoNV-crossplatform

it is not OK iirc
GNU Affero General Public License v3.0
47 stars 13 forks source link

This python code is not working under ubuntu 20.04 LTS 64 OS with python 3 / python 3.8 #3

Open michal25 opened 2 years ago

michal25 commented 2 years ago

Here is the result: root@michal:/opt/PotatoNV-crossplatform-master# python3 -m usrlock ? Select bootloader: hisi960 ? What key should be set? 1111111111111111 error Bootloader is invalid or not found! root@michal:/opt/PotatoNV-crossplatform-master#

and here is the part of the code which generates the error:

args.manifest = "./bootloaders/%s/manifest.json".format(args.bootloader)

if not path.isfile(args.manifest):
    ui.error("Bootloader is invalid or not found!", critical=True)
return args

It look the parameter args.manifest is empty but why?

AnyCubical commented 2 years ago

There are some errors in the code. If you comment out lines 59, 67 and 76 in imageflasher.py and replace the %s with {} in main.py it should work