mawinkler / astroweather

Asynchronous Astro Weather Forecast for Home Assistant
GNU General Public License v3.0
69 stars 9 forks source link

Error while setting up astroweather platform for weather #16

Closed tarheelz closed 2 years ago

tarheelz commented 2 years ago

Looks like this might be a typo: "tsday" should be "today"? Error resolves by going back a few versions.

Logger: homeassistant.components.weather
Source: custom_components/astroweather/weather.py:225
Integration: Weather (documentation, issues)
First occurred: 6:55:09 PM (2 occurrences)
Last logged: 6:55:10 PM

Error adding entities for domain weather with platform astroweather
Error while setting up astroweather platform for weather
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 810, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 533, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 574, in _async_write_ha_state
    attr.update(self.extra_state_attributes or {})
  File "/config/custom_components/astroweather/weather.py", line 355, in extra_state_attributes
    ATTR_WEATHER_DEEPSKY_TODAY_DESC: self.deepsky_forecast_today_desc,
  File "/config/custom_components/astroweather/weather.py", line 225, in deepsky_forecast_today_desc
    return self._current.deepsky_forecast_today_desc
  File "/usr/local/lib/python3.9/site-packages/pyastroweatherio/dataclasses.py", line 333, in deepsky_forecast_today_desc
    return MAP_WEATHER_TYPE[nightly_conditions.weather]
KeyError: 'tsday'
mawinkler commented 2 years ago

Thank you for reporting. This is already fixed in the upcoming version 0.22 of astroweather. Sadly I had very little time recently but will try to make a new release in the next few days. The KeyError was caused by a not properly documented weather type of 7timer and I read over it, so I missed it. CHANGELOG

mawinkler commented 2 years ago

Should now be fixed with v0.22.0

locorotondo-gitter commented 2 years ago

Hi. I just tried to install v.0.22.0 and it fails with a "could not load config flow: undefined" in the GUI and in the logs I find:

2022-07-10 11:39:02 ERROR (SyncWorker_19) [homeassistant.util.package] Unable to install package pyastroweatherio==0.22.0: error: subprocess-exited-with-error

× Building wheel for h3 (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [9 lines of output] File "/tmp/pip-build-env-15ph7_c9/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 613, in setup cmkr = cmaker.CMaker(cmake_executable) File "/tmp/pip-build-env-15ph7_c9/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 141, in init self.cmake_version = get_cmake_version(self.cmake_executable) File "/tmp/pip-build-env-15ph7_c9/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 95, in get_cmake_version raise SKBuildError( Traceback (most recent call last):

  Problem with the CMake installation, aborting build. CMake executable is cmake
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for h3 ERROR: Could not build wheels for h3, which is required to install pyproject.toml-based projects

Futher down in the log there is the line: homeassistant.requirements.RequirementsNotFound: Requirements for astroweather not found: ['pyastroweatherio==0.22.0']

Just holler if you need more info (I am on 2022.07.2, on Home Assistant OS)

Cheers, F.

danielbrunt57 commented 2 years ago

Hi. I just tried to install v.0.22.0 and it fails with a "could not load config flow: undefined" in the GUI and in the logs I find:

Same issue for me except I had been using it for a while. Seems to have broken starting with HA 2022.7.x...

mawinkler commented 2 years ago

Hmm, interesting. My dev environment is on 2022.8 and my live HA is on 2022.7.2. Did you try to restart HA?

danielbrunt57 commented 2 years ago

Yes, numerous times since yesterday for other reasons. Today I deleted the integration and now I can't add it back...

image

danielbrunt57 commented 2 years ago

I've just re-downloaded the integration in HACS and am restarting...

danielbrunt57 commented 2 years ago

Now I have this...

image

and it's stuck.

danielbrunt57 commented 2 years ago
Logger: homeassistant.util.package
Source: util/package.py:99
First occurred: 12:36:14 PM (3 occurrences)
Last logged: 12:37:47 PM

Unable to install package pyastroweatherio==0.22.0: error: subprocess-exited-with-error × Building wheel for h3 (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [9 lines of output] File "/tmp/pip-build-env-k_6342eh/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 613, in setup cmkr = cmaker.CMaker(cmake_executable) File "/tmp/pip-build-env-k_6342eh/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 141, in __init__ self.cmake_version = get_cmake_version(self.cmake_executable) File "/tmp/pip-build-env-k_6342eh/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 95, in get_cmake_version raise SKBuildError( Traceback (most recent call last): Problem with the CMake installation, aborting build. CMake executable is cmake [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for h3 ERROR: Could not build wheels for h3, which is required to install pyproject.toml-based projects
Unable to install package pyastroweatherio==0.22.0: error: subprocess-exited-with-error × Building wheel for h3 (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [9 lines of output] File "/tmp/pip-build-env-ljs4w12c/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 613, in setup cmkr = cmaker.CMaker(cmake_executable) File "/tmp/pip-build-env-ljs4w12c/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 141, in __init__ self.cmake_version = get_cmake_version(self.cmake_executable) File "/tmp/pip-build-env-ljs4w12c/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 95, in get_cmake_version raise SKBuildError( Traceback (most recent call last): Problem with the CMake installation, aborting build. CMake executable is cmake [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for h3 ERROR: Could not build wheels for h3, which is required to install pyproject.toml-based projects
Unable to install package pyastroweatherio==0.22.0: error: subprocess-exited-with-error × Building wheel for h3 (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [9 lines of output] File "/tmp/pip-build-env-nlgeloeo/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 613, in setup cmkr = cmaker.CMaker(cmake_executable) File "/tmp/pip-build-env-nlgeloeo/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 141, in __init__ self.cmake_version = get_cmake_version(self.cmake_executable) File "/tmp/pip-build-env-nlgeloeo/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 95, in get_cmake_version raise SKBuildError( Traceback (most recent call last): Problem with the CMake installation, aborting build. CMake executable is cmake [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for h3 ERROR: Could not build wheels for h3, which is required to install pyproject.toml-based projects
danielbrunt57 commented 2 years ago

Uninstalled the integration in HACS - restart not required and confirmed /config/custom_components/astroweather did not exist. Reinstalled integration in HACS, restarted and tried reinstalling it in HA but same errors:

Logger: homeassistant.util.package
Source: util/package.py:99
First occurred: 12:51:18 PM (1 occurrences)
Last logged: 12:51:18 PM

Unable to install package pyastroweatherio==0.22.0: error: subprocess-exited-with-error × Building wheel for h3 (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [9 lines of output] File "/tmp/pip-build-env-vhok01ym/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 613, in setup cmkr = cmaker.CMaker(cmake_executable) File "/tmp/pip-build-env-vhok01ym/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 141, in __init__ self.cmake_version = get_cmake_version(self.cmake_executable) File "/tmp/pip-build-env-vhok01ym/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 95, in get_cmake_version raise SKBuildError( Traceback (most recent call last): Problem with the CMake installation, aborting build. CMake executable is cmake [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for h3 ERROR: Could not build wheels for h3, which is required to install pyproject.toml-based projects

image

mawinkler commented 2 years ago

Yes, numerous times in last couple of days for other reasons but the integration failed to load each time. I deleted the integration and now I can't add it back...

image

I released 0.22.0 today, so which version did you test in the last couple of days?

danielbrunt57 commented 2 years ago

Just now it is 0.22.0 image

danielbrunt57 commented 2 years ago

Now that I think about it, I believe my issue started with your release of 0.22.0. I think it was fine before...

mawinkler commented 2 years ago

Duplicate of #17

locorotondo-gitter commented 2 years ago

In case it helps..... I reverted back to 2022.06.7 as too many things stopped working (mainly integrations depending on html or something like that), but the 0.22.0 version of Astroweather throws the same error under 2022.06.7, so the error is (most likely) not triggered by 2022.7.x (and the higher version of python). Let me know if I can test something for you or create error logs or anything. More than willing to help squash this bug ;-)

mawinkler commented 2 years ago

As of now, it seems to be somehow related to Rpi installations of HassOS / supervised. Please try installing the pyastroweatherio package on Hass OS directly to get some more detail about the error and report back. pip install pyastroweatherio

danielbrunt57 commented 2 years ago

I am on HASS Supervised on ODROID Blue...

locorotondo-gitter commented 2 years ago

Will do today. I'm on hassos 8.2 on odroid blue.

locorotondo-gitter commented 2 years ago

OK. There we go... `➜ ~ pip install pyastroweatherio
Looking in links: https://wheels.home-assistant.io/musllinux/
Collecting pyastroweatherio
Downloading pyastroweatherio-0.22.0.tar.gz (10 kB)
Preparing metadata (setup.py) ... done
Collecting aiohttp
Downloading https://wheels.home-assistant.io/musllinux/aiohttp-3.8.1-cp310-cp310-musllinux_1_2_aarch64.whl (559 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 559.5/559.5 kB 6.0 MB/s eta 0:00:00
Collecting pyephem
Downloading pyephem-9.99.tar.gz (1.4 kB)
Preparing metadata (setup.py) ... done
Collecting timezonefinder
Downloading timezonefinder-6.0.2-py3-none-any.whl (45.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.7/45.7 MB 2.6 MB/s eta 0:00:00
Collecting charset-normalizer<3.0,>=2.0
Downloading charset_normalizer-2.1.0-py3-none-any.whl (39 kB)
Collecting async-timeout<5.0,>=4.0.0a3
Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting frozenlist>=1.1.1
Downloading https://wheels.home-assistant.io/musllinux/frozenlist-1.3.0-cp310-cp310-musllinux_1_2_aarch64.whl (37 kB)
Collecting yarl<2.0,>=1.0
Downloading https://wheels.home-assistant.io/musllinux/yarl-1.7.2-cp310-cp310-musllinux_1_2_aarch64.whl (127 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 127.1/127.1 kB 3.7 MB/s eta 0:00:00 Collecting attrs>=17.3.0 Downloading attrs-21.4.0-py2.py3-none-any.whl (60 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.6/60.6 kB 33.2 MB/s eta 0:00:00 Collecting aiosignal>=1.1.2 Downloading aiosignal-1.2.0-py3-none-any.whl (8.2 kB) Collecting multidict<7.0,>=4.5 Downloading https://wheels.home-assistant.io/musllinux/multidict-6.0.2-cp310-cp310-musllinux_1_2_aarch64.whl (32 kB) Collecting ephem Downloading ephem-4.1.3-cp310-cp310-musllinux_1_1_aarch64.whl (1.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 3.8 MB/s eta 0:00:00 Collecting h3<4.0.0,>=3.7.3 Downloading h3-3.7.4.tar.gz (178 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 178.4/178.4 kB 2.2 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting numpy<2.0,>=1.22 Downloading https://wheels.home-assistant.io/musllinux/numpy-1.23.1-cp310-cp310-musllinux_1_2_aarch64.whl (10.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.8/10.8 MB 2.2 MB/s eta 0:00:00 Collecting idna>=2.0 Downloading idna-3.3-py3-none-any.whl (61 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 3.5 MB/s eta 0:00:00 Using legacy 'setup.py install' for pyastroweatherio, since package 'wheel' is not installed. Using legacy 'setup.py install' for pyephem, since package 'wheel' is not installed. Building wheels for collected packages: h3 Building wheel for h3 (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for h3 (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [66 lines of output]

  --------------------------------------------------------------------------------
  -- Trying "Ninja" generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
  -- Configuring incomplete, errors occurred!
  See also "/tmp/pip-install-diao3opa/h3_bf40cdd58bb341d19cad4b6d38a87e4a/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying "Ninja" generator - failure
  --------------------------------------------------------------------------------

  --------------------------------------------------------------------------------
  -- Trying "Unix Makefiles" generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
  -- Configuring incomplete, errors occurred!
  See also "/tmp/pip-install-diao3opa/h3_bf40cdd58bb341d19cad4b6d38a87e4a/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying "Unix Makefiles" generator - failure
  --------------------------------------------------------------------------------

  ********************************************************************************
  scikit-build could not get a working generator for your system. Aborting build.

  Building Linux wheels for Python 3.10 requires a compiler (e.g gcc).
  But scikit-build does *NOT* know how to install it on alpine

  To build compliant wheels, consider using the manylinux system described in PEP-513.
  Get it with "dockcross/manylinux-x64" docker image:

    https://github.com/dockcross/dockcross#readme

  For more details, please refer to scikit-build documentation:

    http://scikit-build.readthedocs.io/en/latest/generators.html#linux

  ********************************************************************************
  [end of output]

`

locorotondo-gitter commented 2 years ago

Hi,

Could the following two lines from the above pasted bunch be at the root of the problem?

"Building Linux wheels for Python 3.10 requires a compiler (e.g gcc). But scikit-build does NOT know how to install it on alpine"

If you would like me to test something else out, just holler.

locorotondo-gitter commented 2 years ago

First time I ran your command I ran it from the terminal within home-assistant. I now re-ran it, login in via SSH and that gives more info:

`➜ ~ pip install pyastroweatherio Collecting pyastroweatherio Downloading pyastroweatherio-0.22.0.tar.gz (10 kB) Preparing metadata (setup.py) ... done Collecting aiohttp Downloading aiohttp-3.8.1-cp310-cp310-musllinux_1_1_aarch64.whl (1.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 3.3 MB/s eta 0:00:00 Collecting pyephem Downloading pyephem-9.99.tar.gz (1.4 kB) Preparing metadata (setup.py) ... done Collecting timezonefinder Downloading timezonefinder-6.0.2-py3-none-any.whl (45.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.7/45.7 MB 2.4 MB/s eta 0:00:00 Collecting yarl<2.0,>=1.0 Downloading yarl-1.7.2-cp310-cp310-musllinux_1_1_aarch64.whl (310 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 310.2/310.2 kB 3.3 MB/s eta 0:00:00 Collecting multidict<7.0,>=4.5 Downloading multidict-6.0.2-cp310-cp310-musllinux_1_1_aarch64.whl (138 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 138.5/138.5 kB 2.8 MB/s eta 0:00:00 Collecting attrs>=17.3.0 Downloading attrs-21.4.0-py2.py3-none-any.whl (60 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.6/60.6 kB 1.7 MB/s eta 0:00:00 Collecting frozenlist>=1.1.1 Downloading frozenlist-1.3.0-cp310-cp310-musllinux_1_1_aarch64.whl (160 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 160.4/160.4 kB 4.6 MB/s eta 0:00:00 Collecting charset-normalizer<3.0,>=2.0 Downloading charset_normalizer-2.1.0-py3-none-any.whl (39 kB) Collecting aiosignal>=1.1.2 Downloading aiosignal-1.2.0-py3-none-any.whl (8.2 kB) Collecting async-timeout<5.0,>=4.0.0a3 Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB) Collecting ephem Downloading ephem-4.1.3-cp310-cp310-musllinux_1_1_aarch64.whl (1.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 3.3 MB/s eta 0:00:00 Collecting h3<4.0.0,>=3.7.3 Downloading h3-3.7.4.tar.gz (178 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 178.4/178.4 kB 3.4 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting numpy<2.0,>=1.22 Downloading numpy-1.23.1.tar.gz (10.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.7/10.7 MB 3.5 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting idna>=2.0 Downloading idna-3.3-py3-none-any.whl (61 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 4.0 MB/s eta 0:00:00 Using legacy 'setup.py install' for pyastroweatherio, since package 'wheel' is not installed. Using legacy 'setup.py install' for pyephem, since package 'wheel' is not installed. Building wheels for collected packages: h3, numpy Building wheel for h3 (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for h3 (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [66 lines of output] Not searching for unused variables given on the command line. CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. -- Configuring incomplete, errors occurred! See also "/tmp/pip-install-8ctg03dk/h3_e576615a84f847d0afa134fff7ca89ce/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log". Not searching for unused variables given on the command line. CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. -- Configuring incomplete, errors occurred! See also "/tmp/pip-install-8ctg03dk/h3_e576615a84f847d0afa134fff7ca89ce/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".


-- Trying "Ninja" generator






--







-- Trying "Ninja" generator - failure


-- Trying "Unix Makefiles" generator






--







-- Trying "Unix Makefiles" generator - failure


scikit-build could not get a working generator for your system. Aborting build.

Building Linux wheels for Python 3.10 requires a compiler (e.g gcc). But scikit-build does NOT know how to install it on alpine

To build compliant wheels, consider using the manylinux system described in PEP-513. Get it with "dockcross/manylinux-x64" docker image:

https://github.com/dockcross/dockcross#readme

For more details, please refer to scikit-build documentation:

http://scikit-build.readthedocs.io/en/latest/generators.html#linux


[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for h3 Building wheel for numpy (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for numpy (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [258 lines of output] Running from numpy source directory. setup.py:86: DeprecationWarning:

numpy.distutils is deprecated since NumPy 1.23.0, as a result of the deprecation of distutils itself. It will be removed for Python >= 3.12. For older Python versions it will remain present. It is recommended to use setuptools < 60.0 for those Python versions. For more details, see: https://numpy.org/devdocs/reference/distutils_status_migration.html

import numpy.distutils.command.sdist Processing numpy/random/_bounded_integers.pxd.in Processing numpy/random/_generator.pyx Processing numpy/random/bit_generator.pyx Processing numpy/random/_sfc64.pyx Processing numpy/random/mtrand.pyx Processing numpy/random/_mt19937.pyx Processing numpy/random/_common.pyx Processing numpy/random/_bounded_integers.pyx.in Processing numpy/random/_pcg64.pyx Processing numpy/random/_philox.pyx Cythonizing sources INFO: blas_opt_info: INFO: blas_armpl_info: INFO: customize UnixCCompiler INFO: libraries armpl_lp64_mp not found in ['/usr/local/lib', '/usr/lib'] INFO: NOT AVAILABLE INFO: INFO: blas_mkl_info: INFO: libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib'] INFO: NOT AVAILABLE INFO: INFO: blis_info: INFO: libraries blis not found in ['/usr/local/lib', '/usr/lib'] INFO: NOT AVAILABLE INFO: INFO: openblas_info: INFO: libraries openblas not found in ['/usr/local/lib', '/usr/lib'] INFO: NOT AVAILABLE INFO: INFO: accelerate_info: INFO: NOT AVAILABLE INFO: INFO: atlas_3_10_blas_threads_info: INFO: Setting PTATLAS=ATLAS INFO: libraries tatlas not found in ['/usr/local/lib', '/usr/lib'] INFO: NOT AVAILABLE INFO: INFO: atlas_3_10_blas_info: INFO: libraries satlas not found in ['/usr/local/lib', '/usr/lib'] INFO: NOT AVAILABLE INFO: INFO: atlas_blas_threads_info: INFO: Setting PTATLAS=ATLAS INFO: libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib'] INFO: NOT AVAILABLE INFO: INFO: atlas_blas_info: INFO: libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib'] INFO: NOT AVAILABLE INFO: /tmp/pip-install-8ctg03dk/numpy_ea28531abaff40e0bcdd6dc372e20f20/numpy/distutils/system_info.py:2077: UserWarning: Optimized (vendor) Blas libraries are not found. Falls back to netlib Blas library which has worse performance. A better performance should be easily gained by switching Blas library. if self._calc_info(blas): INFO: blas_info: INFO: libraries blas not found in ['/usr/local/lib', '/usr/lib'] INFO: NOT AVAILABLE INFO: /tmp/pip-install-8ctg03dk/numpy_ea28531abaff40e0bcdd6dc372e20f20/numpy/distutils/system_info.py:2077: UserWarning: Blas (http://www.netlib.org/blas/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [blas]) or by setting the BLAS environment variable. if self._calc_info(blas): INFO: blas_src_info: INFO: NOT AVAILABLE INFO: /tmp/pip-install-8ctg03dk/numpy_ea28531abaff40e0bcdd6dc372e20f20/numpy/distutils/system_info.py:2077: UserWarning: Blas (http://www.netlib.org/blas/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [blas_src]) or by setting the BLAS_SRC environment variable. if self._calc_info(blas): INFO: NOT AVAILABLE INFO: non-existing path in 'numpy/distutils': 'site.cfg' INFO: lapack_opt_info: INFO: lapack_armpl_info: INFO: libraries armpl_lp64_mp not found in ['/usr/local/lib', '/usr/lib'] INFO: NOT AVAILABLE INFO: INFO: lapack_mkl_info: INFO: libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib'] INFO: NOT AVAILABLE INFO: INFO: openblas_lapack_info: INFO: libraries openblas not found in ['/usr/local/lib', '/usr/lib'] INFO: NOT AVAILABLE INFO: INFO: openblas_clapack_info: INFO: libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib'] INFO: NOT AVAILABLE INFO: INFO: flame_info: INFO: libraries flame not found in ['/usr/local/lib', '/usr/lib'] INFO: NOT AVAILABLE INFO: INFO: atlas_3_10_threads_info: INFO: Setting PTATLAS=ATLAS INFO: libraries tatlas,tatlas not found in /usr/local/lib INFO: libraries tatlas,tatlas not found in /usr/lib INFO: <class 'numpy.distutils.system_info.atlas_3_10_threads_info'> INFO: NOT AVAILABLE INFO: INFO: atlas_3_10_info: INFO: libraries satlas,satlas not found in /usr/local/lib INFO: libraries satlas,satlas not found in /usr/lib INFO: <class 'numpy.distutils.system_info.atlas_3_10_info'> INFO: NOT AVAILABLE INFO: INFO: atlas_threads_info: INFO: Setting PTATLAS=ATLAS INFO: libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib INFO: libraries ptf77blas,ptcblas,atlas not found in /usr/lib INFO: <class 'numpy.distutils.system_info.atlas_threads_info'> INFO: NOT AVAILABLE INFO: INFO: atlas_info: INFO: libraries f77blas,cblas,atlas not found in /usr/local/lib INFO: libraries f77blas,cblas,atlas not found in /usr/lib INFO: <class 'numpy.distutils.system_info.atlas_info'> INFO: NOT AVAILABLE INFO: INFO: lapack_info: INFO: libraries lapack not found in ['/usr/local/lib', '/usr/lib'] INFO: NOT AVAILABLE INFO: /tmp/pip-install-8ctg03dk/numpy_ea28531abaff40e0bcdd6dc372e20f20/numpy/distutils/system_info.py:1902: UserWarning: Lapack (http://www.netlib.org/lapack/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [lapack]) or by setting the LAPACK environment variable. return getattr(self, '_calcinfo{}'.format(name))() INFO: lapack_src_info: INFO: NOT AVAILABLE INFO: /tmp/pip-install-8ctg03dk/numpy_ea28531abaff40e0bcdd6dc372e20f20/numpy/distutils/system_info.py:1902: UserWarning: Lapack (http://www.netlib.org/lapack/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [lapack_src]) or by setting the LAPACK_SRC environment variable. return getattr(self, '_calcinfo{}'.format(name))() INFO: NOT AVAILABLE INFO: INFO: numpy_linalg_lapack_lite: INFO: FOUND: INFO: language = c INFO: define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOLSUFFIX', '64')] INFO: Warning: attempted relative import with no known parent package /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) running bdist_wheel running build running config_cc INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src INFO: build_src INFO: building py_modules sources creating build creating build/src.linux-aarch64-3.10 creating build/src.linux-aarch64-3.10/numpy creating build/src.linux-aarch64-3.10/numpy/distutils INFO: building library "npymath" sources WARN: Could not locate executable armflang WARN: Could not locate executable gfortran WARN: Could not locate executable f95 WARN: Could not locate executable ifort WARN: Could not locate executable ifc WARN: Could not locate executable lf95 WARN: Could not locate executable pgfortran WARN: Could not locate executable nvfortran WARN: Could not locate executable f90 WARN: Could not locate executable f77 WARN: Could not locate executable fort WARN: Could not locate executable efort WARN: Could not locate executable efc WARN: Could not locate executable g77 WARN: Could not locate executable g95 WARN: Could not locate executable pathf95 WARN: Could not locate executable nagfor WARN: Could not locate executable frt WARN: don't know how to compile Fortran code on platform 'posix'

[Errno 2] No such file or directory: 'gcc'

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in main() File "/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main json_out['return_val'] = hook(hook_input['kwargs']) File "/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 261, in build_wheel return _build_backend().build_wheel(wheel_directory, config_settings, File "/tmp/pip-build-env-v_0ebudn/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 230, in build_wheel return self._build_with_temp_dir(['bdist_wheel'], '.whl', File "/tmp/pip-build-env-v_0ebudn/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir self.run_setup() File "/tmp/pip-build-env-v_0ebudn/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 267, in run_setup super(_BuildMetaLegacyBackend, File "/tmp/pip-build-env-v_0ebudn/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 158, in run_setup exec(compile(code, file, 'exec'), locals()) File "setup.py", line 493, in setup_package() File "setup.py", line 485, in setup_package setup(metadata) File "/tmp/pip-install-8ctg03dk/numpy_ea28531abaff40e0bcdd6dc372e20f20/numpy/distutils/core.py", line 169, in setup return old_setup(new_attr) File "/tmp/pip-build-env-v_0ebudn/overlay/lib/python3.10/site-packages/setuptools/init.py", line 153, in setup return distutils.core.setup(attrs) File "/usr/lib/python3.10/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/tmp/pip-build-env-v_0ebudn/overlay/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 299, in run self.run_command('build') File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/tmp/pip-install-8ctg03dk/numpy_ea28531abaff40e0bcdd6dc372e20f20/numpy/distutils/command/build.py", line 62, in run old_build.run(self) File "/usr/lib/python3.10/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/tmp/pip-install-8ctg03dk/numpy_ea28531abaff40e0bcdd6dc372e20f20/numpy/distutils/command/build_src.py", line 144, in run self.build_sources() File "/tmp/pip-install-8ctg03dk/numpy_ea28531abaff40e0bcdd6dc372e20f20/numpy/distutils/command/build_src.py", line 155, in build_sources self.build_library_sources(*libname_info) File "/tmp/pip-install-8ctg03dk/numpy_ea28531abaff40e0bcdd6dc372e20f20/numpy/distutils/command/build_src.py", line 288, in build_library_sources sources = self.generate_sources(sources, (lib_name, build_info)) File "/tmp/pip-install-8ctg03dk/numpy_ea28531abaff40e0bcdd6dc372e20f20/numpy/distutils/command/build_src.py", line 378, in generate_sources source = func(extension, build_dir) File "/tmp/pip-install-8ctg03dk/numpy_ea28531abaff40e0bcdd6dc372e20f20/numpy/core/setup.py", line 758, in get_mathlib_info raise RuntimeError( RuntimeError: Broken toolchain: cannot link a simple C program. [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for numpy Failed to build h3 numpy ERROR: Could not build wheels for h3, numpy, which is required to install pyproject.toml-based projects`

danielbrunt57 commented 2 years ago

Is this relevant? scikit-build/ninja-python-distributions/issues/22 - Fails to build in Alpine 3.9 #22

danielbrunt57 commented 2 years ago

It looks like the homeassistant container - Alpine Linux v3.16 has a problem with "wheel" & "numpy" but so far I have not found a solution...

danielbrunt57 commented 2 years ago

"Alpine is built with musl, which is incompatible with python wheels" ???

danielbrunt57 commented 2 years ago

Install fails building wheel on alpine 3.15 #445

mawinkler commented 2 years ago

Hi, good news - the issue should be fixed. If you're feeling adventurous redownload astroweather from the main branch, delete the integration via devices and services, restart hass and add the integration again. It should now work on all hass variants since I removed the dependency to timezonefinder and h3. Tested the container running on Ubuntu and HassOS on RPi 4.

I didn't find the time to create new releases so far but will do it later this evening after some positive feedback, hopefully.

From the changelog:

Changes

Fixes

Breaking Changes

danielbrunt57 commented 2 years ago

In bed now but will give it a go in a few hours! Thanks!

locorotondo-gitter commented 2 years ago

If you're feeling adventurous redownload astroweather from the main branch, delete the integration via devices and services, restart hass and add the integration again. It should now work on all hass variants since I removed the dependency to timezonefinder and h3. Tested the container running on Ubuntu and HassOS on RPi 4.

@mawinkler SUCCESS! Installs without any problem HassOS 8.2 on Odroid N2+.

Awesome job! :-)

mawinkler commented 2 years ago

Thank you all for reporting, helping, and patience. I did just release the version v0.21.1

danielbrunt57 commented 2 years ago

image

mawinkler commented 2 years ago

image

Greetings to Vancouver! Nice city you're living in :-)

danielbrunt57 commented 2 years ago

Thanks! I've always wanted to visit Germany! My mother was born in East Germany...