Open MennoLabs opened 5 months ago
Perhaps a conflict sudo versus not sudo? I assume also that all is using python3 (pip3 vs pip).
Nope:
pi@domoticz:~ $ service roomba start ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units === Authentication is required to start 'roomba.service'. Authenticating as: ,,, (pi) Password:
In the mean time, these "Please install paho-mqtt 'pip install paho-mqtt' to use this library" lines filled my daemon.log to the point where the complete disk was full.
Maybe some symlink is in order to point the service to the proper location?
My paho-mqtt is in /usr/local/lib/python3.7/dist-packages/paho (Raspbian Buster), does that offer a clue? Python version 3.7.3.
Hi, I am also using Python 3.7.3 running on Buster. paho is also installed in the same folder as you mentioned.
Did you already tried using the command prompt? Open a python3 prompt and use "paho.mqtt.client". I also assume you installed Domoticz "natively"... not using a Docker container, right?
F
pi@domoticz:~ $ python3 Python 3.7.3 (default, Mar 23 2024, 16:12:05) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.
paho.mqtt.client Traceback (most recent call last): File "
", line 1, in NameError: name 'paho' is not defined
Native, no Dockers.
This means that it is not installed correctly. Nothing to do with Domotica or the plugin
I never meant to blame either the plugin or Domoticz, but I do wonder why it's not working as intended when installing with sudo pip3 install paho-mqtt
, as per instructions?
I know. No worry. Perhaps uninstall and reinstall...
Op di 9 jul. 2024 22:32 schreef MennoLabs @.***>:
I never meant to blame either the plugin or Domoticz, but I do wonder why it's not working as intended when installing with sudo pip3 install paho-mqtt, as per instructions?
— Reply to this email directly, view it on GitHub https://github.com/FilipDem/Domoticz-iROBOT-ROOMBA-plugin/issues/8#issuecomment-2218678612, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3SGC7K73MAMOM6W2HX5G3ZLRCHHAVCNFSM6AAAAABJYVRJJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJYGY3TQNRRGI . You are receiving this because you commented.Message ID: @.***>
Just tried that (while you were typing your reply ;-)), no success.
I would advise to "google" on sth like "paho.mqtt.client not found"... I see there are several people with a similar problem as you...
Op di 9 jul 2024 om 22:36 schreef MennoLabs @.***>:
Just tried that (while you were typing your reply ;-)), no success.
— Reply to this email directly, view it on GitHub https://github.com/FilipDem/Domoticz-iROBOT-ROOMBA-plugin/issues/8#issuecomment-2218684505, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3SGC5SGHUAHF67RCIHR2DZLRCUFAVCNFSM6AAAAABJYVRJJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJYGY4DINJQGU . You are receiving this because you commented.Message ID: @.***>
Yes, tried that, but the lucky tip has not yet materialised from that search. Will try some more tomorrow.
pi@domoticz:~ $ sudo service roomba status ● roomba.service - Roomba mqtt client Loaded: loaded (/etc/systemd/system/roomba.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2024-06-23 22:39:37 CEST; 1min 45s ago Main PID: 481 (python3) Tasks: 2 (limit: 2176) CGroup: /system.slice/roomba.service └─481 /usr/bin/python3 /home/pi/domoticz/plugins/Roomba/roomba --configfile /home/pi/domoticz/plugins/Roomba/conf
Jun 23 22:41:22 domoticz python3[481]: Please install paho-mqtt 'pip install paho-mqtt' to use this library Jun 23 22:41:22 domoticz python3[481]: Please install paho-mqtt 'pip install paho-mqtt' to use this library Jun 23 22:41:22 domoticz python3[481]: Please install paho-mqtt 'pip install paho-mqtt' to use this library Jun 23 22:41:22 domoticz python3[481]: Please install paho-mqtt 'pip install paho-mqtt' to use this library Jun 23 22:41:22 domoticz python3[481]: Please install paho-mqtt 'pip install paho-mqtt' to use this library Jun 23 22:41:22 domoticz python3[481]: Please install paho-mqtt 'pip install paho-mqtt' to use this library Jun 23 22:41:22 domoticz python3[481]: Please install paho-mqtt 'pip install paho-mqtt' to use this library Jun 23 22:41:22 domoticz python3[481]: Please install paho-mqtt 'pip install paho-mqtt' to use this library Jun 23 22:41:22 domoticz python3[481]: Please install paho-mqtt 'pip install paho-mqtt' to use this library Jun 23 22:41:22 domoticz python3[481]: Please install paho-mqtt 'pip install paho-mqtt' to use this library
pi@domoticz:~ $ sudo pip3 install paho-mqtt Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: paho-mqtt in /usr/local/lib/python3.7/dist-packages (2.1.0)