FL550 / dwd_weather

Deutscher Wetterdienst integration for Home-Assistant
MIT License
173 stars 11 forks source link

Can't add the integration #62

Closed HyperCriSiS closed 1 year ago

HyperCriSiS commented 1 year ago

Version of home_assistant

2023.1.7

Version of the custom_component

1.2.24

Describe the bug

Hi,

I want to add the integration and I get the error: Der Konfigurationsfluss konnte nicht geladen werden: 500 internal Server Error Server got itself in trouble.

Thanks Hyper

Debug log

Logger: homeassistant.util.package Source: util/package.py:98 First occurred: 15:06:51 (3 occurrences) Last logged: 15:07:05

Unable to install package simple_dwd_weatherforecast==1.1.5: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [3 lines of output] Building lxml version 4.9.2. Building without Cython. Error: Please make sure the libxml2 and libxslt development packages are installed. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. [notice] A new release of pip available: 22.3.1 -> 23.0 [notice] To update, run: pip install --upgrade pip

FL550 commented 1 year ago

Hi,

I did a bit of research and it seems like your platform is missing the required libraries as described here: https://github.com/lxml/lxml/blob/master/INSTALL.txt

Can you please install them and see if the error persists?

HyperCriSiS commented 1 year ago

Thanks for pointing me to this. :smile:

apt install libxml2-dev libxslt-dev python3-lxml pip install lxml

After a restart of HA, it works now. Thanks!! :smile: :+1:

Btw. it works very well in combination with Lovelace animated weather card. All values are automatically populated.

FL550 commented 1 year ago

You're welcome! I'm happy to help ☺️