Open Joerg-Albrecht opened 2 weeks ago
Hi,
Could you try to install
librosa==0.9.2
and
tensorflow==2.15.0
as this is what we have in our requirements.txt and might already solve your issue.
Thank you for the suggestion. In the first try I couldn't install tensorflow==2.15.0
, because it is not supported by python 3.12, which runs on the windows machine.
Following your suggestion I tried it with python 3.11, which supports librosa==0.9.2
and tensorflow==2.15.0
. However, I still encounter the error. Here is what I tried and the error message:
M:\Telearbeit\RoamingProfileData\AppData\BirdNET-Analyzer>py -3.11 analyze.py --i example/ --o example/ --slist example/ --min_conf 0.5 --threads 4
Traceback (most recent call last):
File "M:\Telearbeit\RoamingProfileData\AppData\BirdNET-Analyzer\model.py", line 25, in <module>
import tflite_runtime.interpreter as tflite # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'tflite_runtime'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "M:\Telearbeit\RoamingProfileData\AppData\BirdNET-Analyzer\analyze.py", line 17, in <module>
import model
File "M:\Telearbeit\RoamingProfileData\AppData\BirdNET-Analyzer\model.py", line 27, in <module>
from tensorflow import lite as tflite
File "\\srvhlugfaswi001\AlbrechtJo\Telearbeit\RoamingProfileData\AppData\Python\Python311\site-packages\tensorflow\__init__.py", line 45, in <module>
from tensorflow.python import tf2 as _tf2
File "\\srvhlugfaswi001\AlbrechtJo\Telearbeit\RoamingProfileData\AppData\Python\Python311\site-packages\tensorflow\python\tf2.py", line 21, in <module>
from tensorflow.python.platform import _pywrap_tf2
ImportError: DLL load failed while importing _pywrap_tf2: Eine DLL-Initialisierungsroutine ist fehlgeschlagen.
The problem seems to be the call to tflite_runtime
.
I'm not familiar mit the switch py -3.11
.
Please type py --version
to check your python version. Looks to me like it's still the same problem.
I have both versions of python (3.11 and 3.12) installed. The command py -3.11
is a shorthand in pylauncher to run a specific version of python. Maybe I need to create a virtual environment.
Describe the bug I installed BirdNET-Analyzer on a Windows server and wanted to make a test run but ran into problems (see error message below). It seems to be related to the import of tflite_runtime.interpreter in the script model.py.
Any help regarding the solution to the problem would be great.
To Reproduce I tried to start the birdNET-Analyzer.exe for windows as described in the Readme, using the following command:
I get the following error message:
A similar error occurred when I tried to run BirdNET-Analyzer using the cloned github repository.
Expected behavior I expected BirdNET to analyze the example files but I got the following error message.
Desktop (please complete the following information):
OS: Windows Server 2022 Datacenter
Version 21H2
Python version 3.12.1
Additional context Add any other context about the problem here.