question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails to load in HA 0.94.1 (hassbian)

See original GitHub issue

Just 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:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
gambalayacommented, Jun 13, 2019

You’re welcome - cheers.

1reaction
gambalayacommented, Jun 13, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found