Flipper-XFW / Xtreme-Firmware

The Dom amongst the Flipper Zero Firmware. Give your Flipper the power and freedom it is really craving. Let it show you its true form. Dont delay, switch to the one and only true Master today!
https://flipper-xtre.me
GNU General Public License v3.0
9.15k stars 651 forks source link

Issue building/flashing Firmware with Python from source #571

Closed CrashKeks closed 3 months ago

CrashKeks commented 4 months ago

Describe the bug.

Since i tried after the 16.02.2024 to build and flash the Firmware from source with „fbt flash_usb_full“ on my amd64 windows 10, i get the error, that i need to install Python for flashing the Firmware to Flipper. My Problem is, i already installed Python to my System and to the System Path. The Source Code/fbt(after the 16.02.2024) dont find Python for flashing Firmware to the Flipper after building. I already tried to reinstall and repaired Installation from Python on my Computer. I also tried to installed the new Python version to solve this Issue. But it wont work, if i write python —version i get normal Python installed version output. The old source code before the 16.02.2024 works. All Source Code which i downloaded after the 16.02 won`t work „Python not found…“. Please help me to solve this Problem. Is this Issue maybe a Problem with the actually source Code? I would be very happy about help and thanks in advance!

Reproduction

Downloading the source code with git clone from master-Branch, using amd64 Windows 10 computer with Python already installed, try to build and flash firmware directly via fbt flash_usb_full. Get the Error: Python not found, please install Python via microsoft store or deactivate the shortcut in …PATH/… scons

Target

Amd64 Windows 10/Flipper Zero/Python

Logs

No response

Anything else?

Please Help

DestinyofYeet commented 4 months ago

If you installed Python from the windows store, that won't work.

Please uninstall it and go to https://python.org and install it from there.

CrashKeks commented 4 months ago

If you installed Python from the windows store, that won't work.

Please uninstall it and go to https://python.org and install it from there.

I only installed python from python.org, i never installed it from microsoft store. But now i deleted python again and reinstalled it again from python.org. It don't work. I tried again fbt flash_usb_full and get the same error again. Please help, the version from 16.02.2024 works and all the version before the 16th, but every version after the 16.02 won't work on my windows 10 amd64 computer. Thanks in advance! fbterror2

CrashKeks commented 3 months ago

I solved this Issue. I installed with pip heatshrink2 and pillow and its working now. Thanks