Repost: ImportError: DLL load failed while importing _impl: The specified module could not be found

Please see previous post:

Essentially what’s happening with this bug, after much investigation, is that the file is compiled with certain instructions (AVX) which only newer Intel/AMD chips support. Older CPU’s lacking this instruction set can’t load the file and throw an exception, which manifests as this import error.

I’ve seen a lot of posts of frustrated people trying to get past this bug, and the recommendations is that the file is not being found correctly. However, I verified that in 0.9.3 this isn’t the case: is found correctly, it just can’t load and initialize.

The solution to this should be that the loading of the _impl file be wrapped up in a try-except block and then a helpful error message should be printed explaining that the failure is likely due to an old CPU/Missing instruction set. However, looking at the file it’s clear this is autogenerated by swig, and the entry point from the swig file to put in this try-catch block is unclear.

However, if the DeepSpeech team puts in the investment of doing a proper error early on in the launch process then the results will be less bug reports like this. In the future it would be awesome if the right binaries can be swapped in depending on system state. But from what I understand this problem is coming from the TensorFlow so it might be harder to do.

1 Like

Hi @ZachVorhies I’m sure the DeepSpeech team will pay attention to this for the next release. In the meantime, you can join us on Mozilla’s Matrix to get in contact with them directly.

Thanks Francisc, I’ve gone ahead done that.

1 Like

hi, is there update on this case? because i got exactly the same error when executing this :

import deepspeech

deepspeech v0.9.3

python is v3.8.12, using spyder IDE v5.1.5, windows 7 OS

Any update on this please?