core: OpenWeatherMap: Update to 0.118.1 breaks integration
The problem
After updating from v0.117.6 to 0.118.1 the openweathermap integration does not load anymore
Environment
HW: Raspberry Pi 3 B+ Installation: Manual (venv) Affected Version: 0.118.1 Python Version: v3.8.6
- Home Assistant Core release with the issue: 0.118.1
- Last working Home Assistant Core release (if known): 0.117.6
- Operating environment (OS/Container/Supervised/Core): Core
- Integration causing this issue: openweathermap
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/openweathermap/
Problem-relevant configuration.yaml
No config set in configuration.yaml
Traceback/Error logs
2020-11-20 12:54:30 ERROR (MainThread) [homeassistant.setup] Setup failed for openweathermap: Unable to import component: No module named ‘_bz2’
Additional information
Rollback to v0.117.6 fixed the issue
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (5 by maintainers)
Update:
So no, its not working at all. Ideas?
A search for
import bz2
in my virtual env developer environment shows that actuallybz2
is required in a bunch of places, not just for openweathermap.My gut feeling is that using the
venv
installation method gets you into all sorts of weird errors when upgrading and new dependencies come in.We can probably update the
venv
documentation, but I’d recommend moving to Docker or hass.io if I were you.I recently moved from
venv
to Docker and it’s much more stable & predictable, and easier to upgrade!