BirdNET-Analyzer icon indicating copy to clipboard operation
BirdNET-Analyzer copied to clipboard

ModuleNotFoundError: No module named 'tflite_runtime' [Windows]

Open FuryBart opened this issue 1 year ago • 2 comments

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

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

  • OS: Windows 10 22H2 (latest CU)
  • Versions 1.0.2, 1.1.0, 1.2.0, 1.3.0

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 avatar May 31 '24 20:05 FuryBart