I am running home assistant 88.2 in a venv under ubuntu 18.04. I’ve been getting errors on a python program that I’ve been launching successfully for some time with a shell command. To get additional data I decided to run the program manually from within the venv
Here’s what I did and the result.
(homeassistant) homeassistant@cassandra:~$ /srv/homeassistant/bin/python3 /home/homeassistant/.homeassistant/python_progs/check_webservers.py
Traceback (most recent call last):
File “/home/homeassistant/.homeassistant/python_progs/check_webservers.py”, line 3, in
import homeassistant.remote as remote
ModuleNotFoundError: No module named 'homeassistant.remote
I’ve looked through the docs and other posts about homeassistant.remote and haven’t found anything that seems helpful. Perhaps I missed sometning in the release notes. Hopefully it’s something obvious.
Here are the first several lines of the python program check_webservers.py
import csv
import time
import homeassistant.remote as remote
from homeassistant.const import STATE_ON, STATE_OFF
import urllib.requestPreformatted text
For what it’s worth I gave up on sending data directly to Home Assistant. Now I’m writing the data to my MQTT server running on the same machine as Home Assistant. So not exactly solved but a decent work around.
Hi
Can you please check which version you have?
I get
(homeassistant) hass@NUC:~/.homeassistant/shell$ pip3 install homeassistant.remote
Collecting homeassistant.remote
Could not find a version that satisfies the requirement homeassistant.remote (from versions: )
No matching distribution found for homeassistant.remote
(homeassistant) hass@NUC:~/.homeassistant/shell$
You are correct. There is no python module named homeassistant.remote.
Did you source your venv first? source /srv/homeassistant/bin/activate
I have no pythonprogs directory. I expect homeassistant.remote.py should be a file in the same directory as the script. You need to check with the people who supplied the script.