PiSupply / PiJuice

Resources for PiJuice HAT for Raspberry Pi - use your Pi Anywhere
https://uk.pi-supply.com/collections/pijuice/products/pijuice-portable-power-raspberry-pi
GNU General Public License v3.0
437 stars 104 forks source link

Failed to execute command "/usr/bin/pijuice_gui" #1050

Closed BigDogsDad closed 9 months ago

BigDogsDad commented 9 months ago

On Pi Desktop Clicking Preferences- PiJuice setting- Throws Error that states, "Failed to execute child process "/user/bin/pijuice_gui" (No such file or directory) Currently Running Pi4 with Raspbian GNU/Linux 12 (bookworm). Any help would be appreciated. Thank you.

tvoverbeek commented 9 months ago

Are you running 32-bit version of bookworm? If so see Issue #1000. 64-bit version of bookworm should work. Problem is on 32-bit bookworm the linux kernel is 64-bit which upsets the 32-bit/64-bit detection in the pijuice-base and pijuice-gui installation.

BigDogsDad commented 9 months ago

It looks like I'm 64 but when I ran another command it shows 32 so I'm guessing 32. aarch64

BigDogsDad commented 9 months ago

I saw in your issue #1000 that you had that fellow run the ls -l ls -l /user/bin/pijuice* command and this is what I got for that

BigDogsDad commented 9 months ago

Lastly I also tried running sudo rm and sudo ln. The good news is that I no longer get the error when I click on the PiJuice seettings. Then bad news is that nothing happens at that point. No error, no preference choices, nothing.

sudo rm and ln

tvoverbeek commented 9 months ago

This is on a pi 3b+ or pi4 running 32-bit bookworm? On 32-bit bookworm the linux kernel is 64-bit, but runs 32-bit applications uname -a will show aarch64 (= kernel is 64-bit). If you are using wayland (the default in bookworm) see issue #1051 for a solution.

BigDogsDad commented 9 months ago

To confirm I'm running a Pi4. And it seems Wayland was the way forward. I now see the GUI and am able to explore all the options. Thank you VERY much for the assistance und Ich wünsche dir ein frohes neues Jahr.

tvoverbeek commented 9 months ago

Glad it works for you now. Closing the issue.