Piglow module causing restart to hang

I have just installed and tested the piglow module using python and it works correctly

I have enabled it in my config

light:
  platform: piglow

as per

I then run a check config from the config tab and it comes back as ok

I then run hass --checkconfig comes back find

then i run reload core, nothing happens that I can see

I then restart the service and see this in the logs

17-03-02 18:35:09 INFO (MainThread) [homeassistant.loader] Loaded light.piglow from homeassistant.components.light.piglow
17-03-02 18:35:09 INFO (MainThread) [homeassistant.bootstrap] Setting up light
17-03-02 18:35:09 INFO (MainThread) [homeassistant.components.light] Setting up light.piglow

and the restart hangs, service fails to start, I am waiting right now to see if it fails out or not. it has been about 5 minutes so far

TIA

I have also come across this error when trying to run

/home/homeassistant/.homeassistant/deps/piglow.py

This library requires python3-smbus
Install with: sudo apt-get install python3-smbus

to add I am seeing that in the homeassitant log on restart now

17-03-02 21:02:31 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=camera>
17-03-02 21:02:31 INFO (MainThread) [homeassistant.loader] Loaded light.piglow from homeassistant.components.light.piglow
17-03-02 21:02:32 INFO (MainThread) [homeassistant.bootstrap] Setting up light
17-03-02 21:02:32 INFO (MainThread) [homeassistant.components.light] Setting up light.piglow
This library requires python3-smbus
Install with: sudo apt-get install python3-smbus

I have also verified I can run piglow in the VENV as homeasstant user using

sudo python3 piglow.py

it seems ha cannont see python3-smbus which is installed.

I am confused

Sme issue i Start it manually

lol :slight_smile: I am not sure why I didn’t think of that

Seems like hass cant start it itself

still getting this if i try and run it w/o sudo

This library requires python3-smbus
Install with: sudo apt-get install python3-smbus

there is some problem with the VENV seeing smbus from what I can figure

how are you auto starting it? and can you run in w/o sudo?

No. I don’t autostart it I just installed it manually outside Hass. But I’d like having the dev of this component here telling us how he got this component running in a venv

ok that makes sense, and yes I would too! is there a way to tag them on this ?

Was this ever fixed? I’m still getting the error :confused: