home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.22k stars 30.58k forks source link

Radio browser can't be setup from UI #68302

Closed lupa18 closed 2 years ago

lupa18 commented 2 years ago

The problem

When trying to add as described in documentation, it fails and says "doesn't admin UI installation" (or similar).

What version of Home Assistant Core has the issue?

core-2022.3.5

What was the last working version of Home Assistant Core?

core-2022.3.5

What type of installation are you running?

Home Assistant Core

Integration causing the issue

radio browser

Link to integration documentation on our website

https://www.home-assistant.io/integrations/radio_browser/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.loader
Source: deps/lib/python3.9/site-packages/pycountry/__init__.py:13
First occurred: 09:46:36 (2 occurrences)
Last logged: 10:16:52

Unexpected exception importing platform homeassistant.components.radio_browser.config_flow
Traceback (most recent call last):
  File ".pyenv/versions/3.9.8/lib/python3.9/site-packages/homeassistant/loader.py", line 572, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File ".pyenv/versions/3.9.8/lib/python3.9/site-packages/homeassistant/loader.py", line 589, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File ".pyenv/versions/3.9.8/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File ".pyenv/versions/3.9.8/lib/python3.9/site-packages/homeassistant/components/radio_browser/__init__.py", line 4, in <module>
    from radios import RadioBrowser, RadioBrowserError
  File "deps/lib/python3.9/site-packages/radios/__init__.py", line 8, in <module>
    from .models import Country, Language, Station, Stats, Tag
  File "deps/lib/python3.9/site-packages/radios/models.py", line 7, in <module>
    import pycountry
  File "deps/lib/python3.9/site-packages/pycountry/__init__.py", line 13, in <module>
    __version__ = pkg_resources.get_distribution("pycountry").version
  File ".pyenv/versions/3.9.8/lib/python3.9/site-packages/pkg_resources/__init__.py", line 471, in get_distribution
    dist = get_provider(dist)
  File ".pyenv/versions/3.9.8/lib/python3.9/site-packages/pkg_resources/__init__.py", line 347, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File ".pyenv/versions/3.9.8/lib/python3.9/site-packages/pkg_resources/__init__.py", line 891, in require
    needed = self.resolve(parse_requirements(requirements))
  File ".pyenv/versions/3.9.8/lib/python3.9/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pycountry' distribution was not found and is required by the application

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

radio_browser documentation radio_browser source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @frenck, mind taking a look at this issue as it has been labeled with an integration (radio_browser) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

frenck commented 2 years ago

Upstream issue: https://github.com/flyingcircusio/pycountry/issues/106