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

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

Open
FuryBart opened this issue May 31, 2024 · 2 comments
Open

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

FuryBart opened this issue May 31, 2024 · 2 comments

Comments

@FuryBart
Copy link

FuryBart commented May 31, 2024

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
Copy link
Author

FuryBart commented Jun 5, 2024

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
Copy link
Author

FuryBart commented Jul 2, 2024

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

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.

@FuryBart FuryBart changed the title ModuleNotFoundError with BirdNET-Analyzer-GUI-1.1.0-win.exe ModuleNotFoundError: No module named 'tflite_runtime' [Windows] Jul 2, 2024
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