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

Update numpy to 1.26.1 #102021

Merged
merged 1 commit into from Oct 15, 2023
Merged

Update numpy to 1.26.1 #102021

merged 1 commit into from Oct 15, 2023

Conversation

cdce8p
Copy link
Member

@cdce8p cdce8p commented Oct 14, 2023

Needs: https://github.com/home-assistant/core/actions/runs/6520093494
Wheels are up on: https://wheels.home-assistant.io/musllinux/

Proposed change

https://github.com/numpy/numpy/releases/tag/v1.26.1

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.
  • Untested files have been added to .coveragerc.

To help with the load of incoming pull requests:

@home-assistant
Copy link

Hey there @Petro31, mind taking a look at this pull request as it has been labeled with an integration (compensation) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of compensation can trigger bot actions by commenting:

  • @home-assistant close Closes the pull request.
  • @home-assistant rename Awesome new title Renames the pull request.
  • @home-assistant reopen Reopen the pull request.
  • @home-assistant unassign compensation Removes the current integration label and assignees on the pull request, add the integration domain after the command.

@home-assistant
Copy link

Hey there @jpbede, mind taking a look at this pull request as it has been labeled with an integration (trend) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of trend can trigger bot actions by commenting:

  • @home-assistant close Closes the pull request.
  • @home-assistant rename Awesome new title Renames the pull request.
  • @home-assistant reopen Reopen the pull request.
  • @home-assistant unassign trend Removes the current integration label and assignees on the pull request, add the integration domain after the command.

@home-assistant
Copy link

Hey there @bachya, mind taking a look at this pull request as it has been labeled with an integration (iqvia) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of iqvia can trigger bot actions by commenting:

  • @home-assistant close Closes the pull request.
  • @home-assistant rename Awesome new title Renames the pull request.
  • @home-assistant reopen Reopen the pull request.
  • @home-assistant unassign iqvia Removes the current integration label and assignees on the pull request, add the integration domain after the command.

@home-assistant
Copy link

Hey there @hunterjm, @uvjustin, @allenporter, mind taking a look at this pull request as it has been labeled with an integration (stream) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of stream can trigger bot actions by commenting:

  • @home-assistant close Closes the pull request.
  • @home-assistant rename Awesome new title Renames the pull request.
  • @home-assistant reopen Reopen the pull request.
  • @home-assistant unassign stream Removes the current integration label and assignees on the pull request, add the integration domain after the command.

@cdce8p cdce8p marked this pull request as ready for review October 14, 2023 22:54
@bdraco bdraco merged commit 1f1a27d into dev Oct 15, 2023
74 checks passed
@bdraco bdraco deleted the cdce8p-numpy-update branch October 15, 2023 02:30
@bdraco
Copy link
Member

bdraco commented Oct 15, 2023

Thanks @cdce8p

@bdraco
Copy link
Member

bdraco commented Oct 15, 2023

Now seeing this on production

Oct 15 10:02:48 homeassistant homeassistant[547]: 2023-10-15 00:02:48.978 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Unable to import component: Error importing numpy: you should not try to import numpy from
Oct 15 10:02:48 homeassistant homeassistant[547]:         its source directory; please exit the numpy source tree, and relaunch
Oct 15 10:02:48 homeassistant homeassistant[547]:         your python interpreter from there.
Oct 15 10:02:48 homeassistant homeassistant[547]: Traceback (most recent call last):
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/local/lib/python3.11/site-packages/numpy/core/__init__.py", line 24, in <module>
Oct 15 10:02:48 homeassistant homeassistant[547]:     from . import multiarray
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/local/lib/python3.11/site-packages/numpy/core/multiarray.py", line 10, in <module>
Oct 15 10:02:48 homeassistant homeassistant[547]:     from . import overrides
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/local/lib/python3.11/site-packages/numpy/core/overrides.py", line 8, in <module>
Oct 15 10:02:48 homeassistant homeassistant[547]:     from numpy.core._multiarray_umath import (
Oct 15 10:02:48 homeassistant homeassistant[547]: ImportError: Error loading shared library ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ: No error information (needed by /usr/local/lib/python3.11/site-packages/numpy/core/../../numpy.libs/libopenblasp-r0-250824a8.3.23.so)
Oct 15 10:02:48 homeassistant homeassistant[547]: 
Oct 15 10:02:48 homeassistant homeassistant[547]: During handling of the above exception, another exception occurred:
Oct 15 10:02:48 homeassistant homeassistant[547]: 
Oct 15 10:02:48 homeassistant homeassistant[547]: Traceback (most recent call last):
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/local/lib/python3.11/site-packages/numpy/__init__.py", line 130, in <module>
Oct 15 10:02:48 homeassistant homeassistant[547]:     from numpy.__config__ import show as show_config
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/local/lib/python3.11/site-packages/numpy/__config__.py", line 4, in <module>
Oct 15 10:02:48 homeassistant homeassistant[547]:     from numpy.core._multiarray_umath import (
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/local/lib/python3.11/site-packages/numpy/core/__init__.py", line 50, in <module>
Oct 15 10:02:48 homeassistant homeassistant[547]:     raise ImportError(msg)
Oct 15 10:02:48 homeassistant homeassistant[547]: ImportError: 
Oct 15 10:02:48 homeassistant homeassistant[547]: 
Oct 15 10:02:48 homeassistant homeassistant[547]: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Oct 15 10:02:48 homeassistant homeassistant[547]: 
Oct 15 10:02:48 homeassistant homeassistant[547]: Importing the numpy C-extensions failed. This error can happen for
Oct 15 10:02:48 homeassistant homeassistant[547]: many reasons, often due to issues with your setup or how NumPy was
Oct 15 10:02:48 homeassistant homeassistant[547]: installed.
Oct 15 10:02:48 homeassistant homeassistant[547]: 
Oct 15 10:02:48 homeassistant homeassistant[547]: We have compiled some common reasons and troubleshooting tips at:
Oct 15 10:02:48 homeassistant homeassistant[547]: 
Oct 15 10:02:48 homeassistant homeassistant[547]:     https://numpy.org/devdocs/user/troubleshooting-importerror.html
Oct 15 10:02:48 homeassistant homeassistant[547]: 
Oct 15 10:02:48 homeassistant homeassistant[547]: Please note and check the following:
Oct 15 10:02:48 homeassistant homeassistant[547]: 
Oct 15 10:02:48 homeassistant homeassistant[547]:   * The Python version is: Python3.11 from "/usr/local/bin/python3"
Oct 15 10:02:48 homeassistant homeassistant[547]:   * The NumPy version is: "1.26.1"
Oct 15 10:02:48 homeassistant homeassistant[547]: 
Oct 15 10:02:48 homeassistant homeassistant[547]: and make sure that they are the versions you expect.
Oct 15 10:02:48 homeassistant homeassistant[547]: Please carefully study the documentation linked above for further help.
Oct 15 10:02:48 homeassistant homeassistant[547]: 
Oct 15 10:02:48 homeassistant homeassistant[547]: Original error was: Error loading shared library ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ: No error information (needed by /usr/local/lib/python3.11/site-packages/numpy/core/../../numpy.libs/libopenblasp-r0-250824a8.3.23.so)
Oct 15 10:02:48 homeassistant homeassistant[547]: 
Oct 15 10:02:48 homeassistant homeassistant[547]: 
Oct 15 10:02:48 homeassistant homeassistant[547]: The above exception was the direct cause of the following exception:
Oct 15 10:02:48 homeassistant homeassistant[547]: 
Oct 15 10:02:48 homeassistant homeassistant[547]: Traceback (most recent call last):
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/src/homeassistant/homeassistant/setup.py", line 215, in _async_setup_component
Oct 15 10:02:48 homeassistant homeassistant[547]:     component = integration.get_component()
Oct 15 10:02:48 homeassistant homeassistant[547]:                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/src/homeassistant/homeassistant/loader.py", line 816, in get_component
Oct 15 10:02:48 homeassistant homeassistant[547]:     ComponentProtocol, importlib.import_module(self.pkg_path)
Oct 15 10:02:48 homeassistant homeassistant[547]:                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
Oct 15 10:02:48 homeassistant homeassistant[547]:     return _bootstrap._gcd_import(name[level:], package, level)
Oct 15 10:02:48 homeassistant homeassistant[547]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/src/homeassistant/homeassistant/components/cloud/__init__.py", line 12, in <module>
Oct 15 10:02:48 homeassistant homeassistant[547]:     from homeassistant.components import alexa, google_assistant
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/src/homeassistant/homeassistant/components/alexa/__init__.py", line 19, in <module>
Oct 15 10:02:48 homeassistant homeassistant[547]:     from . import flash_briefings, intent, smart_home
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/src/homeassistant/homeassistant/components/alexa/smart_home.py", line 18, in <module>
Oct 15 10:02:48 homeassistant homeassistant[547]:     from .config import AbstractConfig
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/src/homeassistant/homeassistant/components/alexa/config.py", line 15, in <module>
Oct 15 10:02:48 homeassistant homeassistant[547]:     from .state_report import async_enable_proactive_mode
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/src/homeassistant/homeassistant/components/alexa/state_report.py", line 37, in <module>
Oct 15 10:02:48 homeassistant homeassistant[547]:     from .entities import ENTITY_ADAPTERS, AlexaEntity, generate_alexa_id
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/src/homeassistant/homeassistant/components/alexa/entities.py", line 8, in <module>
Oct 15 10:02:48 homeassistant homeassistant[547]:     from homeassistant.components import (
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 29, in <module>
Oct 15 10:02:48 homeassistant homeassistant[547]:     from homeassistant.components.stream import (
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 61, in <module>
Oct 15 10:02:48 homeassistant homeassistant[547]:     from .core import (
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/src/homeassistant/homeassistant/components/stream/core.py", line 14, in <module>
Oct 15 10:02:48 homeassistant homeassistant[547]:     import numpy as np
Oct 15 10:02:48 homeassistant homeassistant[547]:   File "/usr/local/lib/python3.11/site-packages/numpy/__init__.py", line 135, in <module>
Oct 15 10:02:48 homeassistant homeassistant[547]:     raise ImportError(msg) from e
Oct 15 10:02:48 homeassistant homeassistant[547]: ImportError: Error importing numpy: you should not try to import numpy from
Oct 15 10:02:48 homeassistant homeassistant[547]:         its source directory; please exit the numpy source tree, and relaunch
Oct 15 10:02:48 homeassistant homeassistant[547]:         your python interpreter from there.

I think we need to revert

bdraco added a commit that referenced this pull request Oct 15, 2023
bdraco added a commit to bdraco/home-assistant that referenced this pull request Oct 15, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants