Good Afternoon and Happy Friday!
I am currently trying to work with the humidity sensor using the python matrix-lite packages. I am new to python and have more experience with js/c#/java.
I was able to get the sensors running by using this code : https://github.com/matrix-io/matrix-lite-py
My code is pretty basic
import halSwig as hal
from time import sleep
# Print exported objects/functions
print(dir(hal))
## Humidity Example ##
humidity = hal.humidity()
while True:
data = humidity.read()
print("Humidity: ", data.humidity)
print("Temperature: ", data.temperature)
sleep(0.05)
Now what i am trying to do is take this logic and join it with the google-assistant-matrixio hotword.py logic.
When I add the below lines to the hotword.py file I get an error.
import halSwig as hal
from time import sleep
âTraceback (most recent call last):
File â/home/pi/google-assistant-matrixio/google-matrixio-assistant-hotwordâ, line 7, in
from matrixio.hotword import main
File â/home/pi/google-assistant-matrixio/matrixio/hotword.pyâ, line 29, in
import halSwig as hal
ImportError: No module named âhalSwigââ
Why would one scrpt have no issues finding halSwig and then another script have an issue?
Thanks!