PiBrewing / craftbeerpi4

GNU General Public License v3.0
57 stars 29 forks source link

rpi-lgpio #124

Closed mjiao5151 closed 8 months ago

mjiao5151 commented 8 months ago

Tried a fresh installation of cbpi 4.3.1 on my rpi 3B+ aboard, the python version is 3.9 Had removed RPi-GPIO package via apt, pip, and pip3. The newly installed cbpi runs ok, but there is a warning line showed up in start up screens as following:

WARNING [init.py:13] Failed to load RPi.GPIO. Using Mock instead

I am just wondering if this normal? Should I worry about anything?

Thanks!


START 2024-01-10:16:17:40,210 WARNING [craftbeerpi.py:263]


/ _| / | | | _ \ | (_) | || | | \/ | | | | || || |) | | |) | | || | ) || | | | | '/ ` | _| _| < / \/ \ '| _/ | |_ || < | | | || | | (| | | | || |) | / / | | | | | | | __) || | \|| _,|| _|_/ \|__|| || || |()____()_|

2024-01-10:16:17:40,215 WARNING [craftbeerpi.py:264] www.CraftBeerPi.com 2024-01-10:16:17:40,216 WARNING [craftbeerpi.py:265] (c) 2021/2022/2023 Manuel Fritsch / Alexander Vollkopf 2024-01-10:16:17:40,306 WARNING [init.py:13] Failed to load RPi.GPIO. Using Mock instead

avollkopf commented 8 months ago

Seems to be, that you are not using bookworm OS if python 3.9 is running. bookworm is using python 3.11 and the recommended 64 bit os.

mjiao5151 commented 8 months ago

Seems to be, that you are not using bookworm OS if python 3.9 is running. bookworm is using python 3.11 and the recommended 64 bit os.

Thank you for your reply! I tried to switch some gpio pins as cbpi actors, it would not work. Going to switch to bookworm OS, seems it is the easiest solution.

lalo-uy commented 8 months ago

You may try the system.gpio plugin. I used on cbpi3 for some i2c gpio.

El El mié, 10 ene. 2024 a la(s) 07:56, mjiao5151 @.***> escribió:

Closed #124 https://github.com/PiBrewing/craftbeerpi4/issues/124 as completed.

— Reply to this email directly, view it on GitHub https://github.com/PiBrewing/craftbeerpi4/issues/124#event-11441654838, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXBW4IYMLJTX4OXSIRHFRDYNZXVFAVCNFSM6AAAAABBUMCDICVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGQ2DCNRVGQ4DGOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mjiao5151 commented 8 months ago

Dear Eduardo Thank you for your informative reply! I shifted to bookworm before read your comments, still many thanks, It is good to know an alternative.

Best Regards!