Closed ejpenney closed 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?
For me is the same after I restarted the HA (core-2022.7.2) after I updated to 0.22.0 Edit: The same result with the core-2022.7.3
I just tried restarting a few times with no success. Error looks the same each time. Might be worth noting the failure causes this message in Notifications (obfuscated my URL):
Invalid config
The following integrations and platforms could not be set up:
[astroweather](https://github.com/mawinkler/astroweather) ([Show logs](https://<URL>/config/logs?filter=astroweather))
Please check your config and [logs](https://<URL>/config/logs).
4 minutes ago
If my gut feeling is right, I think I know the reason for the error. I'm going to create a new pyastroweatherio for you to try tomorrow.
Same as above, trying to install Astroweather, it gets stuck trying to setup, Astroweather, 0.22.0:
Please try the following:
change the requirements
and version
within the file custom-components/astroweather/manifest.json
to:
{
"domain": "astroweather",
"name": "AstroWeather",
"version": "0.22.0",
"documentation": "https://github.com/mawinkler/astroweather",
"issue_tracker": "https://github.com/mawinkler/astroweather/issues",
"config_flow": true,
"dependencies": [],
"codeowners": [
"@mawinkler"
],
"requirements": [
"pyastroweatherio==0.22.1.dev1"
],
"iot_class": "cloud_polling"
}
Thx, but does not work for me:
`2022-07-12 08:14:03 ERROR (SyncWorker_6) [homeassistant.util.package] Unable to install package pyastroweatherio==0.22.1.dev1: 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-mwlbywbr/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 613, in setup cmkr = cmaker.CMaker(cmake_executable) File "/tmp/pip-build-env-mwlbywbr/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-mwlbywbr/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 `
Honestly, I have no idea what's wrong. I just started a completely new home assistant container 2022.7.3 from scratch (on a different host), configured HACS, added Astroweather and it just works without any complaints. At the moment I cannot replicate your problems.
I did remove the dependency on NumPy which I introduced in 0.22 in the dev pyastroweatherio release from above and now calculate the ln() via the built-in Decimals. Apparently, this didn't help.
If you have any idea, please advise.
May I ask how you run your HASS?
I narrowed it down to the timezonefinder
which requires h3
It's a supervised setup on a Raspberry Pi.
Please try the following: change the
requirements
andversion
within the filecustom-components/astroweather/manifest.json
to:{ "domain": "astroweather", "name": "AstroWeather", "version": "0.22.0", "documentation": "https://github.com/mawinkler/astroweather", "issue_tracker": "https://github.com/mawinkler/astroweather/issues", "config_flow": true, "dependencies": [], "codeowners": [ "@mawinkler" ], "requirements": [ "pyastroweatherio==0.22.1.dev1" ], "iot_class": "cloud_polling" }
This did not work for me either.
Commenting out from my config.yaml: (Left over from preevios astroweather integration install.)
The "check configuration" becomes valid, and no longer loops forever.
Very similar behaviour happening on my instance. I'm running OS on a RPi 4. Started happening following the 2022.07 updates. Will keep an eye on this ticket for updates.
Please try the following: change the
requirements
andversion
within the filecustom-components/astroweather/manifest.json
to:{ "domain": "astroweather", "name": "AstroWeather", "version": "0.22.0", "documentation": "https://github.com/mawinkler/astroweather", "issue_tracker": "https://github.com/mawinkler/astroweather/issues", "config_flow": true, "dependencies": [], "codeowners": [ "@mawinkler" ], "requirements": [ "pyastroweatherio==0.22.1.dev1" ], "iot_class": "cloud_polling" }
This did not work for me either.
Commenting out from my config.yaml: (Left over from preevios astroweather integration install.)
- platform: season
type: astronomical
The "check configuration" becomes valid, and no longer loops forever.
Plantform season has nothing to do with astroweather
I had to delete the integration because it was preventing HA from completing a restart. Saw some similar errors.
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
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-yezx657l/h3_01f5cb034a39436b859c7a04478e0768/_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-yezx657l/h3_01f5cb034a39436b859c7a04478e0768/_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]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for h3 Failed to build h3 ERROR: Could not build wheels for h3, which is required to install pyproject.toml-based projects ➜ ~
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-yezx657l/h3_01f5cb034a39436b859c7a04478e0768/_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-yezx657l/h3_01f5cb034a39436b859c7a04478e0768/_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]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for h3 Failed to build h3 ERROR: Could not build wheels for h3, which is required to install pyproject.toml-based projects
What kind of hass environment did you try on?
Rpi 4
Home Assistant OS 8.2
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:
c
-module h3 on some home assistant deployment variants (e.g. Home Assistant Operating System on RPi). The config flow now allows to select the timezone for the specific AstroWeather instance for which reason the dependency to timezonefinder
is not required anymore.Devices & Services
section of your Home AssistantDownloaded main branch as zip, deleted previous integration and astroweather folder in custom_components, placed updated astroweather folder in custom_components, rebooted HA, installed astroweather integration, went through config flow and everything worked with no issues. RPi 3b+ running Bullseye and HA 2022.7.5. Appreciate Astroweather and you for getting it fixed sir.
Thank you all for reporting, helping, and patience. I did just release the version v0.21.1
I deleted my old astroweather folder, created a new one, then individually downloaded all the required files. I couldn't find a ZIP file to download.
Rebooted and got the integration to load and configure.
Downloaded the custom Lovelace astroweather card files and added the following card as discribed in
type: custom:astroweather-card entity: weather.astroweather_LONGITUTE_LATITUDE name: AstroWeather forecast: true deepskydetails: true details: true current: true number_of_forecasts: '7
But then got stumped when I kept getting an error on
weather.astroweather_LONGITUTE_LATITUDE
Until I realized I needed to substitute the LONGITUTE and LATITUDE to my correct values as seen in the list of entities.
Also, on this custom card, the current temp at the top is showing 90°C and the correct value should be 90 °F.
Thanks for correcting the astroweather integration.
Tom
From: Markus Winkler @.> Sent: Wednesday, July 20, 2022 10:49 AM To: mawinkler/astroweather @.> Cc: MisterTFM @.>; Comment @.> Subject: Re: [mawinkler/astroweather] 0.22.0 Fails To Build on 2022.7.2 (Issue #17)
Thank you all for reporting, helping, and patience. I did just release the version v0.21.1https://github.com/mawinkler/astroweather/releases/tag/v0.22.1
— Reply to this email directly, view it on GitHubhttps://github.com/mawinkler/astroweather/issues/17#issuecomment-1190383495, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR2QWD2NQE6GQRW2R3V72KLVVAGWJANCNFSM53FNEGPA. You are receiving this because you commented.Message ID: @.***>
Tried installing the update today and it blew up during startup:
Rolled back to 0.21.0 and everything worked fine.