I’m running the latest version of HA with the Virtual Box on a Mac mini.
When testing the Coral TPU with the parrot model according to their website I get the following error:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "/Users/smarthome/Downloads/edgetpu_runtime/coral/pycoral/coral/pycoral/examples/classify_image.py", line 40, in <module>
from pycoral.utils.edgetpu import make_interpreter
File "/Users/smarthome/Library/Python/3.9/lib/python/site-packages/pycoral/utils/edgetpu.py", line 24, in <module>
from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
AttributeError: _ARRAY_API not found
Traceback (most recent call last):
File "/Users/smarthome/Downloads/edgetpu_runtime/coral/pycoral/coral/pycoral/examples/classify_image.py", line 40, in <module>
from pycoral.utils.edgetpu import make_interpreter
File "/Users/smarthome/Library/Python/3.9/lib/python/site-packages/pycoral/utils/edgetpu.py", line 24, in <module>
from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
SystemError: initialization of _pywrap_coral raised unreported exception
After downgrading to 1.26.4 I still don’t get the results as per the coral website but the following:
File "/Users/smarthome/Downloads/edgetpu_runtime/coral/pycoral/coral/pycoral/examples/classify_image.py", line 121, in <module>
main()
File "/Users/smarthome/Downloads/edgetpu_runtime/coral/pycoral/coral/pycoral/examples/classify_image.py", line 71, in main
interpreter = make_interpreter(*args.model.split('@'))
File "/Users/smarthome/Library/Python/3.9/lib/python/site-packages/pycoral/utils/edgetpu.py", line 87, in make_interpreter
delegates = [load_edgetpu_delegate({'device': device} if device else {})]
File "/Users/smarthome/Library/Python/3.9/lib/python/site-packages/pycoral/utils/edgetpu.py", line 52, in load_edgetpu_delegate
return tflite.load_delegate(_EDGETPU_SHARED_LIB, options or {})
File "/Users/smarthome/Library/Python/3.9/lib/python/site-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
delegate = Delegate(library, options)
File "/Users/smarthome/Library/Python/3.9/lib/python/site-packages/tflite_runtime/interpreter.py", line 89, in __init__
self._library = ctypes.pydll.LoadLibrary(library)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/ctypes/__init__.py", line 444, in LoadLibrary
return self._dlltype(name)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/ctypes/__init__.py", line 366, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(libedgetpu.1.dylib, 0x0006): tried: 'libedgetpu.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibedgetpu.1.dylib' (no such file), '/usr/lib/libedgetpu.1.dylib' (no such file, not in dyld cache), 'libedgetpu.1.dylib' (no such file)
Exception ignored in: <function Delegate.__del__ at 0x2cf297040>
Traceback (most recent call last):
File "/Users/smarthome/Library/Python/3.9/lib/python/site-packages/tflite_runtime/interpreter.py", line 124, in __del__
if self._library is not None:
AttributeError: 'Delegate' object has no attribute '_library'
Does anyone have any idea?