Fails to load in HA 0.94.1 (hassbian)
See original GitHub issueJust upgrade my HA setup to 0.94.1 and now the Sonoff integration fails to load:
Log Details (ERROR)
Mon Jun 10 2019 23:07:13 GMT-0400 (EDT)
Error loading custom_components.sonoff. Make sure all dependencies are installed
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py", line 263, in _load_file
module = importlib.import_module(path)
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/custom_components/sonoff/__init__.py", line 28, in <module>
import websocket
ModuleNotFoundError: No module named 'websocket'
Any ideas?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
0.94: SmartHab, Watson TTS, Azure Event Hub - Home Assistant
Running HA in a pyvenv. See the following error message in my log on restart: 019-06-05 13:36:45 ERROR (MainThread) [homeassistant.
Read more >HASSbian - Home Assistant Community - RSSing.com
Home Assistant won't install on a fresh Hassbian flash ... Is there a good guide about upgrading python to 3.6.x release on hassbian...
Read more >What is the [A-]/[HA] ratio necessary to prepare a ... - Chegg
Question: What is the [A-]/[HA] ratio necessary to prepare a buffer solution with a pH of 4.78? Ka = 2.3 × 10 -5...
Read more >Software-update: Home Assistant 0.102 - Computer - Tweakers
Het draait via Hassbian op een Raspberry Pi 3 of een Linux-, ... The problem with this specification is that it cannot properly...
Read more >PROYECTO FIN DE GRADO - Archivo Digital UPM
Esta transformación digital ha tenido un impacto directo ... Acceso remoto a Hassbian mediante conexión SSH . ... Bit Error Rate.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

You’re welcome - cheers.
Assuming you can login interactively to a terminal session as the Pi user, here’s the commands to switch to the homeassistant user, activate the virtual environment and then install:
sudo -u homeassistant -H -s source /srv/homeassistant/bin/activate pip install websocket-client