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

Revert "Update numpy to 1.26.1" #102036

Merged
merged 1 commit into from Oct 15, 2023
Merged

Revert "Update numpy to 1.26.1" #102036

merged 1 commit into from Oct 15, 2023

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Oct 15, 2023

Reverts #102021

numpy 1.26.1 is causing some pretty interesting failures on my production systems. Downgrading it back to 1.26.0 resolves the issue:

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.

@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 @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 @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 @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.

@bdraco
Copy link
Member Author

bdraco commented Oct 15, 2023

I didn't see the problem on production until I restarted twice since .0 was already loaded before the pip install happened

@bdraco bdraco merged commit 7fe2bfa into dev Oct 15, 2023
53 checks passed
@bdraco bdraco deleted the revert-102021-cdce8p-numpy-update branch October 15, 2023 15:42
@bdraco
Copy link
Member Author

bdraco commented Oct 15, 2023

Thanks. I haven't been able to figure out what is actually causing the problem. The traces are the same on another system production system I tried it on so that wasn't a help

@bdraco
Copy link
Member Author

bdraco commented Oct 15, 2023

Both production systems are x86_64 py 3.11

@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

7 participants