kahst / BirdNET-Analyzer

BirdNET analyzer for scientific audio data processing.
Other
816 stars 149 forks source link

ModuleNotFoundError: No module named 'tflite_runtime' [Windows] #346

Open FuryBart opened 3 months ago

FuryBart commented 3 months ago

Describe the bug When I start the BirdNET-Analyzer.exe, I get an error message. _ModuleNotFoundError: No module named 'tfliteruntime'

To Reproduce I have downloaded the latest version: BirdNET-Analyzer-GUI-1.x.x-win.exe, unblocked the exe file and followed the installation instructions https://github.com/kahst/BirdNET-Analyzer?tab=readme-ov-file#setup-windows.

As described in the instructions, I did not install Python or Tensorflow separately as it is a full version with no additional packages to install.

Expected behavior Starting BirdNET Analyzer.

Desktop

Complete Error Message

Traceback (most recent call last):
  File "model.py", line 21, in <module>
ModuleNotFoundError: No module named 'tflite_runtime'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "analyze.py", line 17, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
  File "model.py", line 23, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
  File "tensorflow\__init__.py", line 45, in <module>
    from tensorflow.python import tf2 as _tf2
  File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
  File "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.
[9500] Failed to execute script 'analyze' due to unhandled exception!
FuryBart commented 3 months ago

Update. I have tested the first release BirdNET-Analyzer-GUI-1.0.2-win.exe with Windows 10 [22H2 19045.4474] and got the same error. Installing the latest VC distributable dll's from https://learn.microsoft.com/de-de/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version had no effect. Something must be missing in the "as-is" package.

Can I provide any additional information?

FuryBart commented 2 months ago

Unfortunately I've the same issue with the latest release 1.3.0. _ModuleNotFoundError: No module named 'tfliteruntime'.

In the PDF BirdNET-Analyzer Usage Guide I found a download Link to an older version of a BirdNET-Analyzer.zip from tuc.cloud. This version doesn't need any installation an runs as it is. Maybe this information is somehow helpful.