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

Numpy issue? New install not working #19

Open
simongis opened this issue Feb 2, 2025 · 0 comments
Open

Numpy issue? New install not working #19

simongis opened this issue Feb 2, 2025 · 0 comments

Comments

@simongis
Copy link

simongis commented Feb 2, 2025

Deployed a Debian 11.11 AMD image onto Virtualbox.

  • Followed the instructions and install appeared to run smoothly.
  • Hooked up a camera RTSP and have audio coming through on the spec.
  • There is clear audible bird sounds at least once a minute in the day.
  • I am getting zero detections recorded after running it for around 10 hours.

If I look at the logs, I can spot a number of errors. I have included a snippet below. The ones around Numpy seem to be the root cause perhaps?

Let me know what additional information I should provide to help troubleshoot this. Very eager to get on board and really want to get this working in Virtualbox over a dedicated Pi.

09:54:38---Traceback (most recent call last):
09:54:38---  File "/usr/local/bin/server.py", line 635, in <module>
09:54:38---    start()
09:54:38---  File "/usr/local/bin/server.py", line 624, in start
09:54:38---    INTERPRETER = loadModel()
09:54:38---  File "/usr/local/bin/server.py", line 77, in loadModel
09:54:38---    myinterpreter = tflite.Interpreter(model_path=modelpath, num_threads=2)
09:54:38---  File "BirdNET-Pi/birdnet/lib/python3.9/site-packages/tflite_runtime/interpreter.py", line 464, in __init__
09:54:38---    self._interpreter = _interpreter_wrapper.CreateWrapperFromFile(
09:54:38---SystemError: <built-in method CreateWrapperFromFile of PyCapsule object at 0x7f5a44549ba0> returned a result with an error set
09:54:49---A module that was compiled using NumPy 1.x cannot be run in
09:54:49---NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
09:54:49---versions of NumPy, modules must be compiled with NumPy 2.0.
09:54:49---Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
09:54:49---If you are a user of the module, the easiest solution will be to
09:54:49---downgrade to 'numpy<2' or try to upgrade the affected module.
09:54:49---We expect that some modules will need time to support NumPy 2.
09:54:49---Traceback (most recent call last):  File "/usr/local/bin/server.py", line 635, in <module>
09:54:49---    start()
09:54:49---  File "/usr/local/bin/server.py", line 624, in start
09:54:49---    INTERPRETER = loadModel()
09:54:49---  File "/usr/local/bin/server.py", line 77, in loadModel
09:54:49---    myinterpreter = tflite.Interpreter(model_path=modelpath, num_threads=2)
09:54:49---  File "BirdNET-Pi/birdnet/lib/python3.9/site-packages/tflite_runtime/interpreter.py", line 464, in __init__
09:54:49---    self._interpreter = _interpreter_wrapper.CreateWrapperFromFile(
09:54:49---AttributeError: _ARRAY_API not found
09:54:49---LOADING TF LITE MODEL... ImportError: numpy.core.multiarray failed to import
09:54:49---The above exception was the direct cause of the following exception:
09:54:49---Traceback (most recent call last):
09:54:49---  File "/usr/local/bin/server.py", line 635, in <module>
09:54:49---    start()
09:54:49---  File "/usr/local/bin/server.py", line 624, in start
09:54:49---    INTERPRETER = loadModel()
09:54:49---  File "/usr/local/bin/server.py", line 77, in loadModel
09:54:49---    myinterpreter = tflite.Interpreter(model_path=modelpath, num_threads=2)
09:54:49---  File "BirdNET-Pi/birdnet/lib/python3.9/site-packages/tflite_runtime/interpreter.py", line 464, in __init__
09:54:49---    self._interpreter = _interpreter_wrapper.CreateWrapperFromFile(
09:54:49---SystemError: <built-in method CreateWrapperFromFile of PyCapsule object at 0x7f71ae5a2ba0> returned a result with an error set
09:55:00---A module that was compiled using NumPy 1.x cannot be run in
09:55:00---NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
09:55:00---versions of NumPy, modules must be compiled with NumPy 2.0.
09:55:00---Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
09:55:00---If you are a user of the module, the easiest solution will be to
09:55:00---downgrade to 'numpy<2' or try to upgrade the affected module.
09:55:00---We expect that some modules will need time to support NumPy 2.
09:55:00---Traceback (most recent call last):  File "/usr/local/bin/server.py", line 635, in <module>
09:55:00---    start()
09:55:00---  File "/usr/local/bin/server.py", line 624, in start
09:55:00---    INTERPRETER = loadModel()
09:55:00---  File "/usr/local/bin/server.py", line 77, in loadModel
09:55:00---    myinterpreter = tflite.Interpreter(model_path=modelpath, num_threads=2)
09:55:00---  File "BirdNET-Pi/birdnet/lib/python3.9/site-packages/tflite_runtime/interpreter.py", line 464, in __init__
09:55:00---    self._interpreter = _interpreter_wrapper.CreateWrapperFromFile(
09:55:00---AttributeError: _ARRAY_API not found
09:55:00---LOADING TF LITE MODEL... ImportError: numpy.core.multiarray failed to import
09:55:00---The above exception was the direct cause of the following exception:
09:55:00---Traceback (most recent call last):
09:55:00---  File "/usr/local/bin/server.py", line 635, in <module>
09:55:00---    start()
09:55:00---  File "/usr/local/bin/server.py", line 624, in start
09:55:00---    INTERPRETER = loadModel()
09:55:00---  File "/usr/local/bin/server.py", line 77, in loadModel
09:55:00---    myinterpreter = tflite.Interpreter(model_path=modelpath, num_threads=2)
09:55:00---  File "BirdNET-Pi/birdnet/lib/python3.9/site-packages/tflite_runtime/interpreter.py", line 464, in __init__
09:55:00---    self._interpreter = _interpreter_wrapper.CreateWrapperFromFile(
09:55:00---SystemError: <built-in method CreateWrapperFromFile of PyCapsule object at 0x7f3879dbaba0> returned a result with an error set
09:55:11---A module that was compiled using NumPy 1.x cannot be run in
09:55:11---NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
09:55:11---versions of NumPy, modules must be compiled with NumPy 2.0.
09:55:11---Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
09:55:11---If you are a user of the module, the easiest solution will be to
09:55:11---downgrade to 'numpy<2' or try to upgrade the affected module.
09:55:11---We expect that some modules will need time to support NumPy 2.
09:55:11---Traceback (most recent call last):  File "/usr/local/bin/server.py", line 635, in <module>
09:55:11---    start()
09:55:11---  File "/usr/local/bin/server.py", line 624, in start
09:55:11---    INTERPRETER = loadModel()
09:55:11---  File "/usr/local/bin/server.py", line 77, in loadModel
09:55:11---    myinterpreter = tflite.Interpreter(model_path=modelpath, num_threads=2)
09:55:11---  File "BirdNET-Pi/birdnet/lib/python3.9/site-packages/tflite_runtime/interpreter.py", line 464, in __init__
09:55:11---    self._interpreter = _interpreter_wrapper.CreateWrapperFromFile(
09:55:11---AttributeError: _ARRAY_API not found
09:55:11---LOADING TF LITE MODEL... ImportError: numpy.core.multiarray failed to import
09:55:11---The above exception was the direct cause of the following exception:
09:55:11---Traceback (most recent call last):
09:55:11---  File "/usr/local/bin/server.py", line 635, in <module>
09:55:11---    start()
09:55:11---  File "/usr/local/bin/server.py", line 624, in start
09:55:11---    INTERPRETER = loadModel()
09:55:11---  File "/usr/local/bin/server.py", line 77, in loadModel
09:55:11---    myinterpreter = tflite.Interpreter(model_path=modelpath, num_threads=2)
09:55:11---  File "BirdNET-Pi/birdnet/lib/python3.9/site-packages/tflite_runtime/interpreter.py", line 464, in __init__
09:55:11---    self._interpreter = _interpreter_wrapper.CreateWrapperFromFile(
09:55:11---SystemError: <built-in method CreateWrapperFromFile of PyCapsule object at 0x7fdbcbb96ba0> returned a result with an error set

Image

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant