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

Benjamin Bengort's Avatar

Benjamin Bengort

13 Feb, 2019 01:50 AM

Hello,

Recently our builds started failing on https://ci.appveyor.com/project/districtdatalabs/yellowbrick 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\runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "C:\Miniconda3-x64\lib\runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "C:\Miniconda3-x64\lib\site-packages\nltk\__init__.py", line 152, in <module>
    from nltk.stem import *
  File "C:\Miniconda3-x64\lib\site-packages\nltk\stem\__init__.py", line 29, in <module>
    from nltk.stem.snowball import SnowballStemmer
  File "C:\Miniconda3-x64\lib\site-packages\nltk\stem\snowball.py", line 32, in <module>
    from nltk.corpus import stopwords
  File "C:\Miniconda3-x64\lib\site-packages\nltk\corpus\__init__.py", line 66, in <module>
    from nltk.corpus.reader import *
  File "C:\Miniconda3-x64\lib\site-packages\nltk\corpus\reader\__init__.py", line 105, in <module>
    from nltk.corpus.reader.panlex_lite import *
  File "C:\Miniconda3-x64\lib\site-packages\nltk\corpus\reader\panlex_lite.py", line 15, in <module>
    import sqlite3
  File "C:\Miniconda3-x64\lib\sqlite3\__init__.py", line 23, in <module>
    from sqlite3.dbapi2 import *
  File "C:\Miniconda3-x64\lib\sqlite3\dbapi2.py", 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:

https://github.com/ContinuumIO/anaconda-issues/issues/10034

We have tried several updates to the .appveyor.yaml file to try to fix the problem: https://github.com/DistrictDataLabs/yellowbrick/pull/743 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

Generic

? 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