Pack3tL0ss / ConsolePi

Raspberry Pi Based Serial Console Server, with PushBullet Notification of IP changes, Automatic VPN termination, custom menu, Power Outlet Control, and a lot more
MIT License
190 stars 16 forks source link

Menu will not load #161

Closed petegill999 closed 1 year ago

petegill999 commented 1 year ago

Tried with RP2 and RPzeroW and neither will boot the menu. Also tried different setup settings. Re-ran consolepi-upgrade and same issue. Tried running Bullseye and Buster as well.

I receive the following error:


Launching ConsolePi Serial Console Menu Traceback (most recent call last): File "/etc/ConsolePi/src/consolepi-menu.py", line 18, in from consolepi.consolepi import ConsolePi # type: ignore # NoQA File "/etc/ConsolePi/src/pypkg/consolepi/consolepi.py", line 8, in from consolepi.power import Outlets File "/etc/ConsolePi/src/pypkg/consolepi/power/init.py", line 2, in from consolepi.power.outlets import Outlets # NoQA File "/etc/ConsolePi/src/pypkg/consolepi/power/outlets.py", line 9, in import RPi.GPIO as GPIO ModuleNotFoundError: No module named 'RPi'

It appears an error occurred in the primary menu

The shell based menu acts as a backup menu in the unlikely event something breaks with the fully functional python based menu.

The shell menu supports connections to locally attached serial adapters only.

Please report the error above @ https://github.com/Pack3tL0ss/ConsolePi

Enter y/yes to launch the backup shell menu, or enter to exit.

Pack3tL0ss commented 1 year ago

@petegill999 Thanks for the heads up, I'll run through a fresh install and see where it went wrong, and what needs to change. Should have an update pushed in a few.

I pushed an update with a change related to RPi.GPIO. It's a distutils package which makes updating it problematic... So I just rely on the system package that should already be there (or so I thought).

You can try a few things to resolve it while I sort it out:

Pack3tL0ss commented 1 year ago

That should resolve it, you should be able to fix it without a reinstall with

sudo /etc/ConsolePi/venv/bin/python3 -m pip install RPi.GPIO --ignore-installed
consolepi-sync --no-pull -P -R

as mentioned above

or use consolepi-install if the command is still there, or consolepi-upgrade --install if it's not. They do the same thing, the command just changes from consolepi-install to consolepi-upgrade during the install. The --install flag will make consolepi-upgrade run as if it's the initial install.

I'll close once I test another fresh install to ensure it's resolved.

petegill999 commented 1 year ago

I will try it again today. Thank you for the quick response and quick fix. On Jun 27, 2023, at 20:25, Wade @.***> wrote: That should resolve it, you should be able to fix it without a reinstall with sudo /etc/ConsolePi/venv/bin/python3 -m pip install RPi.GPIO --ignore-installed consolepi-sync --no-pull -P -R as mentioned above or use consolepi-install if the command is still there, or consolepi-upgrade --install if it's not. They do the same thing, the command just changes from consolepi-install to consolepi-upgrade during the install. The --install flag will make consolepi-upgrade run as if it's the initial install. I'll close once I test another fresh install to ensure it's resolved.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>