Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform error sensor.meteoalarm_m - No module named 'bs4' #12

Open
mfabiani53 opened this issue Apr 11, 2021 · 8 comments
Open

Platform error sensor.meteoalarm_m - No module named 'bs4' #12

mfabiani53 opened this issue Apr 11, 2021 · 8 comments

Comments

@mfabiani53
Copy link

Using the "Check Configuration" add-on i get this error:

"Platform error sensor.meteoalarm_m - No module named 'bs4'"

How to fix this?

@djgragra
Copy link

djgragra commented Jun 5, 2021

I have the same problem

@stefanolanfranco
Copy link

If needed my traceback:

Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/config.py", line 872, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/loader.py", line 498, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/loader.py", line 503, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/custom_components/meteoalarm_m/sensor.py", line 8, in
from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'

@pilot1981
Copy link

Hi,
I have same error when I go to do check before update to 2021.10.1 version...any solution?

@kapiorr
Copy link

kapiorr commented Nov 22, 2021

python3 -m pip install bs4

@caiosweet
Copy link

Simply add the module to the requirements list of the manifest.json file.

{
  "domain": "meteoalarm_m",
  "name": "meteoalarm_m",
  "documentation": "https://github.com/kodi1/meteoalarm",
  "dependencies": [],
  "codeowners": ["@kodi1"],
  "requirements": ["bs4==0.0.1"],
  "version": "0.0.1"
}

@pilot1981
Copy link

I already have this manifest:

D33E886E-F79E-483E-A561-F949F7B5A8FB

@caiosweet
Copy link

If you look closely, this line "requirements": ["bs4==0.0.1"], is different. :0)

@pilot1981
Copy link

Thanks: this workaround worked fine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants