Benachrichtigungen
Alles löschen

I can't compile MK4 firmware  

  RSS
Juan Puchol
(@juan-puchol)
Active Member
I can't compile MK4 firmware

Hello, I need help. When I try to compile MK4 firmware I get (firmware 5.0.0-alpha4 compiles ok, but since this version is not working):

 

PS C:\Caribou320_Firmware\MK4\Prusa-Firmware-Buddy-5.0.1> python utils/build.py --preset mk4 --generate-bbf

Switching to Buddy's virtual environment.

You can disable this by defining BUDDY_NO_VIRTUALENV env. variable.

Traceback (most recent call last):

File "C:\Caribou320_Firmware\MK4\Prusa-Firmware-Buddy-5.0.1\utils\build.py", line 832, in <module> main()

File "C:\Caribou320_Firmware\MK4\Prusa-Firmware-Buddy-5.0.1\utils\build.py", line 623, in main bootstrap.switch_to_venv_if_nedded()

File "C:\Caribou320_Firmware\MK4\Prusa-Firmware-Buddy-5.0.1\utils\bootstrap.py", line 202, in switch_to_venv_if_nedded os.execv(str(venv_bin_dir / 'python'),FileNotFoundError: [Errno 2] No such file or directory

Veröffentlicht : 22/10/2023 7:37 pm
Giorgio91
(@giorgio91)
Mitglied
RE: I can't compile MK4 firmware

did you manage to solve it? I have the same problem

Posted by: @juan-pucholdid you manage to solve it? I have the same problem

Hello, I need help. When I try to compile MK4 firmware I get (firmware 5.0.0-alpha4 compiles ok, but since this version is not working):

 

PS C:\Caribou320_Firmware\MK4\Prusa-Firmware-Buddy-5.0.1> python utils/build.py --preset mk4 --generate-bbf

Switching to Buddy's virtual environment.

You can disable this by defining BUDDY_NO_VIRTUALENV env. variable.

Traceback (most recent call last):

File "C:\Caribou320_Firmware\MK4\Prusa-Firmware-Buddy-5.0.1\utils\build.py", line 832, in <module> main()

File "C:\Caribou320_Firmware\MK4\Prusa-Firmware-Buddy-5.0.1\utils\build.py", line 623, in main bootstrap.switch_to_venv_if_nedded()

File "C:\Caribou320_Firmware\MK4\Prusa-Firmware-Buddy-5.0.1\utils\bootstrap.py", line 202, in switch_to_venv_if_nedded os.execv(str(venv_bin_dir / 'python'),FileNotFoundError: [Errno 2] No such file or directory

 

Veröffentlicht : 18/11/2023 7:04 pm
David D.
(@david-d-2)
Mitglied
RE: I can't compile MK4 firmware

Hello, i have the same issue...

Veröffentlicht : 28/11/2023 1:49 pm
Smutje
(@smutje)
Estimable Member
RE:

Same here. Did anyone solve the issue?

Prusa git:(master) ✗ python utils/build.py --preset mk4 --generate-bbf 
Switching to Buddy's virtual environment.
You can disable this by setting the BUDDY_NO_VIRTUALENV=1 env. variable.
Traceback (most recent call last):
  File "/Users/Sebastian/Prusa/utils/build.py", line 832, in <module>
    main()
  File "/Users/Sebastian/Prusa/utils/build.py", line 623, in main
    bootstrap.switch_to_venv_if_nedded()
  File "/Users/Sebastian/Prusa/utils/bootstrap.py", line 211, in switch_to_venv_if_nedded
    os.execv(str(venv_bin_dir / 'python'),
FileNotFoundError: [Errno 2] No such file or directory
Veröffentlicht : 11/12/2023 9:26 pm
karl-herbert
(@karl-herbert)
Illustrious Member
RE: I can't compile MK4 firmware

opened a bug report on github: https://github.com/prusa3d/Prusa-Firmware-Buddy/issues/3579

wbr,

Karl

Statt zu klagen, dass wir nicht alles haben, was wir wollen, sollten wir lieber dankbar sein, dass wir nicht alles bekommen, was wir verdienen.

Veröffentlicht : 12/12/2023 12:49 am
karl-herbert
(@karl-herbert)
Illustrious Member
RE: I can't compile MK4 firmware

Github - bkerler commented Dec 12, 2023

It's easy to fix. install virtualenv, then do a python -m venv .venv in the git directory and it will work just fine using the build script.

wbr,

Karl

Statt zu klagen, dass wir nicht alles haben, was wir wollen, sollten wir lieber dankbar sein, dass wir nicht alles bekommen, was wir verdienen.

Veröffentlicht : 12/12/2023 10:58 am
Giorgio91
(@giorgio91)
Mitglied
RE: I can't compile MK4 firmware

I managed to solve it by installing version 3.11 of Python, with 3.12 it doesn't work for me.

Veröffentlicht : 12/12/2023 1:10 pm
Juan Puchol
(@juan-puchol)
Active Member
Themenstarter answered:
RE:

Hello,

from firmware 5.0.0-alpha4 (that compiles fine) I copy the folders .venv and .dependencies to the new firmware folder and then it compiles well

Happy printing!!

Juan

Veröffentlicht : 12/12/2023 1:33 pm
karl-herbert
(@karl-herbert)
Illustrious Member
RE: I can't compile MK4 firmware

😉 👍 

I tried the compilation process on an ARM64 system - no chance.

On an x86/x64 system compile should work after .venv and. dependencies have been added.

wbr,

Karl

Statt zu klagen, dass wir nicht alles haben, was wir wollen, sollten wir lieber dankbar sein, dass wir nicht alles bekommen, was wir verdienen.

Veröffentlicht : 12/12/2023 1:48 pm
karl-herbert
(@karl-herbert)
Illustrious Member
RE: I can't compile MK4 firmware

Closed the bugreport on github, because problem solved!

https://github.com/prusa3d/Prusa-Firmware-Buddy/issues/3579

wbr,

Karl

Statt zu klagen, dass wir nicht alles haben, was wir wollen, sollten wir lieber dankbar sein, dass wir nicht alles bekommen, was wir verdienen.

Veröffentlicht : 12/12/2023 2:56 pm
Smutje
(@smutje)
Estimable Member
RE:

Now it also works for me (Mac M1).

So, now since I am able to change some settings in the firmware (I want to disable Z_SAFE_HOMING), I can finally compile my own firmware.

Unfortunately the commands for the compelling are not well documented.

This is the basic command:

python3 utils/build.py --preset mk4 --generate-bbf

Prusa is using this (as mentioned on GitHub):

python3 utils/build.py --preset mk4 --build-type release --bootloader yes --generate-bbf --generate-dfu --no-store-output --version-suffix=-BETA+5729.PR3570.B5 --version-suffix-short=-BETA+5729 -DCUSTOM_COMPILE_OPTIONS:STRING=-Werror -DDEVELOPMENT_ITEMS_ENABLED:BOOL=yes

I wonder which of these settings are eventually necessary to compile a correct firmware

Veröffentlicht : 12/12/2023 8:11 pm
karl-herbert
(@karl-herbert)
Illustrious Member
RE: I can't compile MK4 firmware

I have added an alias in ~/.bashrc:

alias python='/usr/bin/python3'

This allows you to start the compilation process as follows:

python utils/build.py --preset mk4 --generate-bbf

wbr,

Karl

Statt zu klagen, dass wir nicht alles haben, was wir wollen, sollten wir lieber dankbar sein, dass wir nicht alles bekommen, was wir verdienen.

Veröffentlicht : 12/12/2023 8:35 pm
GB
 GB
(@gb-3)
Mitglied
RE: I can't compile MK4 firmware

I have my firmware folder in C:\Users\Y\Desktop\3D Printers\Edited_Mini_Firmware\Prusa-Firmware-Buddy-5.1.2

(Simply the unzipped source code with a few edits in config)

After installing virtualenv and running a "python -m venv .venv" in the same directory, I keep getting this error upon the command "python utils/build.py --preset mini --generate-bbf":

C:\Users\Y\Desktop\3D Printers\Edited_Mini_Firmware\Prusa-Firmware-Buddy-5.1.2>python utils/build.py --preset mini --generate-bbf

Switching to Buddy's virtual environment.

You can disable this by setting the BUDDY_NO_VIRTUALENV=1 env. variable.

C:\Users\Y\Desktop\3D Printers\Edited_Mini_Firmware\Prusa-Firmware-Buddy-5.1.2>C:\Users\Y\AppData\Local\Programs\Python\Python311\python.exe: can't open file 'C:\\Users\\Y\\Desktop\\3D Printers\\Edited_Mini_Firmware\\Prusa-Firmware-Buddy-5.1.2\\Printers\\Edited_Mini_Firmware\\Prusa-Firmware-Buddy-5.1.2\\.venv\\Scripts\\python': [Errno 2] No such file or directory

Doing something wrong?

Veröffentlicht : 19/01/2024 12:34 am
GB
 GB
(@gb-3)
Mitglied
RE: I can't compile MK4 firmware

Bumping. I'm not owed an answer, but I still would like to say that from being able to flash without any troube to, getting all this errors (and the documentation page hasn't been updated since) seems like a downgrade. Editing the Marlin config shouldn't be reserved to software developer - level skill.

Veröffentlicht : 21/01/2024 9:22 pm
Teilen: