Installation on a Raspberry Pi 5
Posted: Tue May 14, 2024 12:26 pm
Hello together,
maybe a interesting solution for you with new Hardware:
After a purchase of a RPI5 I changed the setup like described in:
https://bierbot.com/blog/howto/howto-bu ... g-control/
with the changed setups of
https://github.com/BernhardSchlegel/Bie ... Pi/pull/19
So far so good. During install I´ve had the problem with pip3:
Then i´ve found the problem:
To install all required pips:
requests>=2.26.0
rpi-lgpio>=0.4
click>=8.0.1
pyyaml>=5.4.1
w1thermsensor>=2.0.0
types-requests>=2.28.11.17
Since then setup.py was working nicely.
After a reboot the Brick just not wanted to show up on the website and the bricks.log was empty. So after a manual start of the main.py with Thonny it worked fine. Brick was online found.
Therefore Bernhard and I found out, that the main.py is not starting automaticly.
A result is still open.
If somebody has an idea to implement the autostart again properly let us know
Keep fresh
maybe a interesting solution for you with new Hardware:
After a purchase of a RPI5 I changed the setup like described in:
https://bierbot.com/blog/howto/howto-bu ... g-control/
with the changed setups of
https://github.com/BernhardSchlegel/Bie ... Pi/pull/19
So far so good. During install I´ve had the problem with pip3:
Code: Select all
sudo pip3 install -r requirements.txt
Code: Select all
error: externally-managed-environment
Then i´ve found the problem:
Nevertheless to get the installation running i used the commandFrom Bookworm onwards, packages installed via pip must be installed into a Python Virtual Environment using venv. This has been introduced by the Python community, not by Raspberry Pi; see PEP 668 for more details.
Source: https://www.raspberrypi.com/documentati ... rs/os.html
Code: Select all
pip3 install *** –break-system-package
requests>=2.26.0
rpi-lgpio>=0.4
click>=8.0.1
pyyaml>=5.4.1
w1thermsensor>=2.0.0
types-requests>=2.28.11.17
Since then setup.py was working nicely.
After a reboot the Brick just not wanted to show up on the website and the bricks.log was empty. So after a manual start of the main.py with Thonny it worked fine. Brick was online found.
Therefore Bernhard and I found out, that the main.py is not starting automaticly.
A result is still open.
If somebody has an idea to implement the autostart again properly let us know
Keep fresh