Comments (7)
So i did the system apt install path:
sudo apt install python3-paho-mqtt pyhton3-wheel python3-sdnotify python3-unidecode python3-colorama python3-tzlocal python3-requests
which resulted in
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-colorama is already the newest version (0.4.4-1).
python3-paho-mqtt is already the newest version (1.5.1-1).
python3-requests is already the newest version (2.25.1+dfsg-2).
python3-sdnotify is already the newest version (0.3.1-2).
python3-tzlocal is already the newest version (2.1-1).
python3-unidecode is already the newest version (1.2.0-1).
python3-wheel is already the newest version (0.34.2-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
compared this to the requirements file,
colorama>=0.4.3
paho-mqtt>=1.4.0
requests>=2.28.2
sdnotify>=0.3.1
tzlocal>=2.1.0
wheel>=0.29.0
Unidecode>=0.4.21
it seems requirements are met.
from rpi-reporter-mqtt2ha-daemon.
What I do is:
cd /opt/RPi-Reporter-MQTT2HA-Daemon
mkdir venv
python3 -m venv venv # create the virtual environment
. venv/bin/activate # activate the virtual environment
pip install -r requirements.txt
python3 ISP-RPi-mqtt-daemon.py
and then in isp-rpi-reporter.service
, I do
-ExecStart=/usr/bin/python3 -u /opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py
+ExecStart=/opt/RPi-Reporter-MQTT2HA-Daemon/venv/bin/python3 -u /opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py
from rpi-reporter-mqtt2ha-daemon.
I ended up using —break-system-packages
from rpi-reporter-mqtt2ha-daemon.
from rpi-reporter-mqtt2ha-daemon.
from rpi-reporter-mqtt2ha-daemon.
I believe
So i did the system apt install path:
sudo apt install python3-paho-mqtt pyhton3-wheel python3-sdnotify python3-unidecode python3-colorama python3-tzlocal python3-requests
which resulted in
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-colorama is already the newest version (0.4.4-1).
python3-paho-mqtt is already the newest version (1.5.1-1).
python3-requests is already the newest version (2.25.1+dfsg-2).
python3-sdnotify is already the newest version (0.3.1-2).
python3-tzlocal is already the newest version (2.1-1).
python3-unidecode is already the newest version (1.2.0-1).
python3-wheel is already the newest version (0.34.2-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.compared this to the requirements file,
colorama>=0.4.3
paho-mqtt>=1.4.0
requests>=2.28.2
sdnotify>=0.3.1
tzlocal>=2.1.0
wheel>=0.29.0
Unidecode>=0.4.21it seems requirements are met.
I believe this should be:
sudo apt install python3-paho-mqtt python3-wheel python3-sdnotify python3-unidecode python3-colorama python3-tzlocal python3-requests
... Unless you have a really weird python3-wheel -package, of course :)
from rpi-reporter-mqtt2ha-daemon.
Ahhh.... Python on Raspberry Pi
The latest os has made changes. I'll need to update the install instructions for this new OS and later.
I'm learning venv setup and will adjust my instructions when I figure out a good approach.
Meanwhile, Which would you see using more? A per-user setup for Venv or a per-project setup?
from rpi-reporter-mqtt2ha-daemon.
Related Issues (20)
- Error: This environment is externally managed HOT 1
- sensor_name seems to need to be manually updated to contain correct as {hostname} isn't dereferenced HOT 3
- RPI-Reporter Could not start after OS Update HOT 4
- Bookworm reports "arch=armhf"
- systemd timeout - start of service timed out (no RPI in MQTT) HOT 1
- Pi Zero & /opt/ Kernel Panic HOT 1
- DietPi on Dell Wyze 3040 HOT 1
- Buster not reporting, status of payload sometimes "offline", sometimes "online" HOT 4
- I'm struggling to get this workin on my pi4 HOT 1
- Should {hostname} be replaced with hostname? HOT 6
- Ability for networking to show all connections HOT 2
- Discovery prefix is forced to lowercase HOT 1
- Feature Request: Adding wifi signal strength HOT 5
- This URL has been moved to https
- Reboot and shutdown buttons not working from Home Assistant. HOT 2
- RPi-Reporter doesn't work with paho-mqtt 2.0.0+ HOT 2
- systemctl stopped being able start process HOT 7
- Option for setting mqtt not to retain state... HOT 2
- Problems with MQTT coms when adding new Raspberry Pi or when changing name of RPi
- 3rd Party Data Collection to kz0q (dot) com HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpi-reporter-mqtt2ha-daemon.