Skip to content

ImportError when trying to use CLI #928

Description

@jmhatch

Describe the bug
I'm trying to run BirdNET-Analyzer from the command line in Windows 11, but I'm getting an ImportError.

To Reproduce
Steps to reproduce the behavior:
For the CLI provide us with the arguments used.

BirdNET-Analyzer.exe "D:/data/20260510_083000-1.wav" -o C:/Users/Documents/git-repos/audioMoth/data --week 19 --min_conf 0.6

Expected behavior
I was expecting to get a selection table of potential bird species detected in the audio clip.

Screenshots

[2026-06-17 14:59:03]
Traceback (most recent call last):
File "tensorflow\python\pywrap_tensorflow.py", line 73, in
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "birdnet_analyzer\utils.py", line 27, in wrapper
File "birdnet_analyzer\analyze\cli.py", line 29, in main
File "birdnet_analyzer\analyze\core.py", line 72, in analyze
File "pyimod02_importers.py", line 457, in exec_module
File "birdnet_analyzer\analyze\utils.py", line 12, in
File "pyimod02_importers.py", line 457, in exec_module
File "birdnet_analyzer\model.py", line 11, in
File "pyimod02_importers.py", line 457, in exec_module
File "keras_init_.py", line 7, in
File "pyimod02_importers.py", line 457, in exec_module
File "keras_tf_keras_init_.py", line 1, in
File "pyimod02_importers.py", line 457, in exec_module
File "keras_tf_keras\keras_init_.py", line 7, in
File "pyimod02_importers.py", line 457, in exec_module
File "keras\activations_init_.py", line 7, in
File "pyimod02_importers.py", line 457, in exec_module
File "keras\src_init_.py", line 1, in
File "pyimod02_importers.py", line 457, in exec_module
File "keras\src\activations_init_.py", line 3, in
File "pyimod02_importers.py", line 457, in exec_module
File "keras\src\activations\activations.py", line 1, in
File "pyimod02_importers.py", line 457, in exec_module
File "keras\src\backend_init_.py", line 1, in
File "pyimod02_importers.py", line 457, in exec_module
File "keras\src\backend\config.py", line 448, in
File "keras\src\backend\config.py", line 249, in set_nnx_enabled
File "pyimod02_importers.py", line 457, in exec_module
File "keras\src\backend\common_init_.py", line 2, in
File "pyimod02_importers.py", line 457, in exec_module
File "keras\src\backend\common\dtypes.py", line 5, in
File "pyimod02_importers.py", line 457, in exec_module
File "keras\src\backend\common\variables.py", line 11, in
File "pyimod02_importers.py", line 457, in exec_module
File "keras\src\utils_init_.py", line 1, in
File "pyimod02_importers.py", line 457, in exec_module
File "keras\src\utils\audio_dataset_utils.py", line 4, in
File "pyimod02_importers.py", line 457, in exec_module
File "keras\src\utils\dataset_utils.py", line 9, in
File "pyimod02_importers.py", line 457, in exec_module
File "keras\src\tree_init_.py", line 1, in
File "pyimod02_importers.py", line 457, in exec_module
File "keras\src\tree\tree_api.py", line 8, in
File "pyimod02_importers.py", line 457, in exec_module
File "keras\src\tree\optree_impl.py", line 13, in
File "pyimod02_importers.py", line 457, in exec_module
File "tensorflow_init_.py", line 40, in
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow # pylint: disable=unused-import
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pyimod02_importers.py", line 457, in exec_module
File "tensorflow\python\pywrap_tensorflow.py", line 88, in
raise ImportError(
ImportError: Traceback (most recent call last):
File "tensorflow\python\pywrap_tensorflow.py", line 73, in
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.

Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors for some common causes and solutions.
If you need help, create an issue at https://github.com/tensorflow/tensorflow/issues and include the entire stack trace above this error message.

Desktop (please complete the following information):

  • OS: Win11
  • Version 25H2 (OS Build 26200.8655)

Additional context
Installed V2.4.0 from Releases

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions