Closed brinzlee closed 3 years ago
I'm not sure what exactly the problem is, but installing numpy as a system package instead of from the python packages seems to solve the issue for me:
system_packages:
- py3-pillow
- py3-numpy
python_packages:
- spotipy
- Pillow
init_commands: []
Have just updated AppDaemon 4 to version 0.70 and this now longer works due to a problem with numpy...This is my error
`2021-08-22 13:47:39.252587 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/ad-spotify-mood-lights-sync/spotify_mood_lights_sync.py 2021-08-22 13:47:39.262484 WARNING Error: ------------------------------------------------------------ 2021-08-22 13:47:39.263263 WARNING Error: Unexpected error loading module: /config/appdaemon/apps/ad-spotify-mood-lights-sync/spotify_mood_lights_sync.py: 2021-08-22 13:47:39.263943 WARNING Error: ------------------------------------------------------------ 2021-08-22 13:47:39.274903 WARNING Error: Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/numpy/core/init.py", line 22, in
from . import multiarray
File "/usr/lib/python3.9/site-packages/numpy/core/multiarray.py", line 12, in
from . import overrides
File "/usr/lib/python3.9/site-packages/numpy/core/overrides.py", line 7, in
from numpy.core._multiarray_umath import (
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/appdaemon/app_management.py", line 970, in check_app_updates
await utils.run_in_executor(self, self.read_app, mod["name"], mod["reload"])
File "/usr/lib/python3.9/site-packages/appdaemon/utils.py", line 308, in run_in_executor
response = future.result()
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.9/site-packages/appdaemon/app_management.py", line 761, in read_app
self.modules[module_name] = importlib.import_module(module_name)
File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 855, in exec_module
File "", line 228, in _call_with_frames_removed
File "/config/appdaemon/apps/ad-spotify-mood-lights-sync/spotify_mood_lights_sync.py", line 5, in
import numpy as np
File "/usr/lib/python3.9/site-packages/numpy/init.py", line 150, in
from . import core
File "/usr/lib/python3.9/site-packages/numpy/core/init.py", line 48, in
raise ImportError(msg)
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following: