ImportError: DLL load failed: The specified module could not be found.

Benjamin Bengort's Avatar

Benjamin Bengort

13 Feb, 2019 01:50 AM


Recently our builds started failing on in our Miniconda3-x64 matrix (though they pass on the vanilla Python builds). I don't believe we made any changes to our codebase that might have caused the builds to fail (the last few PRs have been primarily documentation related). The builds are failing with the following traceback:

python -m nltk.downloader popular
Traceback (most recent call last):
  File "C:\Miniconda3-x64\lib\", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "C:\Miniconda3-x64\lib\", line 109, in _get_module_details
  File "C:\Miniconda3-x64\lib\site-packages\nltk\", line 152, in <module>
    from nltk.stem import *
  File "C:\Miniconda3-x64\lib\site-packages\nltk\stem\", line 29, in <module>
    from nltk.stem.snowball import SnowballStemmer
  File "C:\Miniconda3-x64\lib\site-packages\nltk\stem\", line 32, in <module>
    from nltk.corpus import stopwords
  File "C:\Miniconda3-x64\lib\site-packages\nltk\corpus\", line 66, in <module>
    from nltk.corpus.reader import *
  File "C:\Miniconda3-x64\lib\site-packages\nltk\corpus\reader\", line 105, in <module>
    from nltk.corpus.reader.panlex_lite import *
  File "C:\Miniconda3-x64\lib\site-packages\nltk\corpus\reader\", line 15, in <module>
    import sqlite3
  File "C:\Miniconda3-x64\lib\sqlite3\", line 23, in <module>
    from sqlite3.dbapi2 import *
  File "C:\Miniconda3-x64\lib\sqlite3\", line 27, in <module>
    from _sqlite3 import *
ImportError: DLL load failed: The specified module could not be found.

This doesn't appear to be a problem with nltk, but rather with the python site-packages library sqlite3. We've googled around and found several related issues where there appears to be a stray DLL, which I believe is part of the image, and not part of our testing process:

We have tried several updates to the .appveyor.yaml file to try to fix the problem: but with no success. Any advice would be appreciated!

Best Regards,
The scikit-yb developers

  1. Support Staff 1 Posted by Owen McDonnell on 13 Feb, 2019 02:48 AM

    Owen McDonnell's Avatar

    Currently investigating a similar issue with another user.

    For now, you can switch your image to Previous Visual Studio 2015. This is a temporary workaround as we investigate the root cause of this.

  2. 2 Posted by Benjamin Bengor... on 13 Feb, 2019 02:56 AM

    Benjamin Bengort's Avatar

    Thank you for looking into it! We'll use the previous image in the meantime.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

20 Mar, 2019 01:15 PM
20 Mar, 2019 11:09 AM
20 Mar, 2019 10:37 AM
20 Mar, 2019 09:01 AM
20 Mar, 2019 08:51 AM


20 Mar, 2019 02:33 AM
19 Mar, 2019 06:21 PM
19 Mar, 2019 06:03 PM
19 Mar, 2019 05:22 PM
19 Mar, 2019 05:08 PM
19 Mar, 2019 05:00 PM