tag:help.appveyor.com,2012-11-13:/discussions/problems/20308-importerror-dll-load-failed-the-specified-module-could-not-be-foundAppVeyor: Discussion 2019-08-13T21:01:20Ztag:help.appveyor.com,2012-11-13:Comment/469523072019-02-13T02:48:13Z2019-02-13T02:48:13ZImportError: DLL load failed: The specified module could not be found.<div><p>Currently investigating a similar issue with another user.</p>
<p>For now, you can switch your image to <code>Previous Visual Studio 2015</code>. This is a temporary workaround as we investigate the root cause of this.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/469523072019-02-13T02:56:14Z2019-02-13T02:56:16ZImportError: DLL load failed: The specified module could not be found.<div><p>Thank you for looking into it! We'll use the previous image in the meantime.</p></div>Benjamin Bengorttag:help.appveyor.com,2012-11-13:Comment/469523072019-04-04T13:55:32Z2019-04-04T13:55:33ZImportError: DLL load failed: The specified module could not be found.<div><p>I am having a similar error when trying to run a server. I'm new to Django so I was unsure if I was doing something wrong. Python Version 3.7.1 Windows 64 bit Operating System.</p>
<p>(MegaWattHr) c:\Users\adroi\Desktop\MegaWattHr\MegaWattHr> python manage.py run server Traceback (most recent call last):<br>
File "manage.py", line 21, in main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File "C:\Users\adroi\Envs\MegaWattHr\lib\site-packages\django\core\management_<em>init</em><em>.py", line 381, in execute_from_command_line utility.execute() File "C:\Users\adroi\Envs\MegaWattHr\lib\site-packages\django\core\management__init</em><em>.py", line 357, in execute django.setup() File "C:\Users\adroi\Envs\MegaWattHr\lib\site-packages\django__init</em><em>.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "C:\Users\adroi\Envs\MegaWattHr\lib\site-packages\django\apps\registry.py", line 114, in populate app_config.import_models() File "C:\Users\adroi\Envs\MegaWattHr\lib\site-packages\django\apps\config.py", line 211, in import_models self.models_module = import_module(models_module_name) File "C:\Users\adroi\Envs\MegaWattHr\lib\importlib__init</em><em>.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "C:\Users\adroi\Envs\MegaWattHr\lib\site-packages\django\contrib\auth\models.py", line 2, in from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager File "C:\Users\adroi\Envs\MegaWattHr\lib\site-packages\django\contrib\auth\base_user.py", line 47, in class AbstractBaseUser(models.Model): File "C:\Users\adroi\Envs\MegaWattHr\lib\site-packages\django\db\models\base.py", line 117, in __new</em>_ new_class.add_to_class('<em>meta', Options(meta, app_label)) File "C:\Users\adroi\Envs\MegaWattHr\lib\site-packages\django\db\models\base.py", line 321, in add_to_class value.contribute_to_class(cls, name) File "C:\Users\adroi\Envs\MegaWattHr\lib\site-packages\django\db\models\options.py", line 204, in contribute_to_class self.db_table = truncate_name(self.db_table, connection.ops.max_name_length()) File "C:\Users\adroi\Envs\MegaWattHr\lib\site-packages\django\db__init</em><em>.py", line 28, in __getattr</em>_ return getattr(connections[DEFAULT_DB_ALIAS], item) File "C:\Users\adroi\Envs\MegaWattHr\lib\site-packages\django\db\utils.py", line 201, in <strong>getitem</strong> backend = load_backend(db['ENGINE']) File "C:\Users\adroi\Envs\MegaWattHr\lib\site-packages\django\db\utils.py", line 110, in load_backend return import_module('%s.base' % backend_name) File "C:\Users\adroi\Envs\MegaWattHr\lib\importlib_<em>init</em><em>.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "C:\Users\adroi\Envs\MegaWattHr\lib\site-packages\django\db\backends\sqlite3\base.py", line 13, in from sqlite3 import dbapi2 as Database File "c:\users\adroi\anaconda3\Lib\sqlite3__init</em>_.py", line 23, in from sqlite3.dbapi2 import * File "c:\users\adroi\anaconda3\Lib\sqlite3\dbapi2.py", line 27, in from _sqlite3 import * ImportError: DLL load failed: The specified module could not be found.</p>
<p>(MegaWattHr) c:\Users\adroi\Desktop\MegaWattHr\MegaWattHr></p></div>Jonathantag:help.appveyor.com,2012-11-13:Comment/469523072019-04-04T15:14:11Z2019-04-04T15:14:11ZImportError: DLL load failed: The specified module could not be found.<div><p>Can you please link to your specific build.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/469523072019-04-18T14:27:01Z2019-04-18T14:27:03ZImportError: DLL load failed: The specified module could not be found.<div><p>Hello, this issue has started again, we are currently using the <code>Previous Visual Studio 2017</code> image.</p>
<p>The failing build is:</p>
<p><a href="https://ci.appveyor.com/project/districtdatalabs/yellowbrick/builds/23946825/job/4haehx4e2pbb8gkq">https://ci.appveyor.com/project/districtdatalabs/yellowbrick/builds...</a></p>
<p>We are working through two fix attempts:</p>
<ol>
<li>Removing the <code>image:</code> declaration from our <code>.appveyor.yaml</code> to see if the default image works.<br></li>
<li>Reverting once again to the <code>Previous Visual Studio 2015</code> image.</li>
</ol></div>Benjamin Bengforttag:help.appveyor.com,2012-11-13:Comment/469523072019-04-18T15:25:02Z2019-04-18T15:25:03ZImportError: DLL load failed: The specified module could not be found.<div><p>Unfortunately, neither of these fixes worked. We've had to comment out miniconda from our build matrix which is less than ideal. If there is another solution, we'd appreciate it because testing against miniconda is critical to our workflow.</p>
<p>Failing builds:</p>
<p><a href="https://ci.appveyor.com/project/districtdatalabs/yellowbrick/builds/23948948/job/9dct318qikbot98h">https://ci.appveyor.com/project/districtdatalabs/yellowbrick/builds...</a></p>
<p><a href="https://ci.appveyor.com/project/districtdatalabs/yellowbrick/builds/23949638">https://ci.appveyor.com/project/districtdatalabs/yellowbrick/builds...</a></p></div>Benjamin Bengforttag:help.appveyor.com,2012-11-13:Comment/469523072019-04-22T19:06:13Z2019-04-22T19:06:13ZImportError: DLL load failed: The specified module could not be found.<div><p>Sorry for delayed response. I'm far from an expert in python development, so i haven't been able to find any obvious cause.<br>
Just to clarify, you have a local build using miniconda that does work?</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/469523072019-05-15T12:59:48Z2019-05-15T12:59:49ZImportError: DLL load failed: The specified module could not be found.<div><p>Hi Owen, sorry it's taken a while to respond. Yes - we do have a local build of miniconda that works, and the previous images worked. We do have a PR open that we're currently reviewing that may fix the install issues but causes our tests to break. Still, this is not an issue with our code base but is rather an install issue for one of our dependencies in the setup phase of the tests. We are also looking into conda-forge to do the install, but these seem like a lot of hoops to jump through for Python testing.</p></div>Benjamin Bengforttag:help.appveyor.com,2012-11-13:Comment/469523072019-05-17T07:32:47Z2019-05-17T07:32:47ZImportError: DLL load failed: The specified module could not be found.<div><p>I forked your repo and after many partly random/partly educated guesses i got a <a href="https://ci.appveyor.com/project/OwenMcDonnell/yellowbrick/builds/24612732">successful build</a> on the current VS 2017 image.<br>
The relevant change is in the line,<br></p>
<pre>
<code>- "SET PATH=%PYTHON%;%PYTHON%\Scripts;%PYTHON%\Library\bin;%PATH%"</code>
</pre>
in the <code>install:</code> stage.
<p>Though, I'm frankly not well versed enough in Python module machinery to understand why this is necessary and still confused as to how this is working on your local machine. It's difficult to imagine how the installation of miniconda on our build VMs could be faulty.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/469523072019-05-21T19:36:54Z2019-05-21T19:36:55ZImportError: DLL load failed: The specified module could not be found.<div><p>If it is a path issue, then I think it's more about how the image installs conda/pip -- with a local install that is handled once when you start working and then you don't think about it again. In this case, my guess is that the installer couldn't find a module because it was installed in a location on the $PATH that didn't match the modules being found? Did the path or the install location change during the image revision?</p></div>Benjamin Bengforttag:help.appveyor.com,2012-11-13:Comment/469523072019-05-21T22:21:46Z2019-05-21T22:21:46ZImportError: DLL load failed: The specified module could not be found.<div><p>No changes to the install path of miniconda were made in either image updates.<br>
The version of miniconda changed on <a href="https://www.appveyor.com/updates/2019/02/11/">this platform update</a>. That initially broke your build so you used previous as a temporary workaround until another platform update made the "previous" image the newer one.<br>
How do you know it's not the newer version of miniconda that causes this failure?</p>
<p>I suggest that you <a href="https://www.appveyor.com/docs/how-to/rdp-to-build-worker/">RDP</a> to the build machine to investigate, and let us know what your idea of what is wrong with the build image is.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/469523072019-06-06T07:48:51Z2019-06-06T07:48:52ZImportError: DLL load failed: The specified module could not be found.<div><p>Hello,</p>
<p>I have a similar problem. Here is my build log: <a href="https://ci.appveyor.com/project/GUDHI/gudhi-devel/builds/25082612">https://ci.appveyor.com/project/GUDHI/gudhi-devel/builds/25082612</a></p>
<p>I tried:<br></p>
<pre>
<code>SET PATH=%PYTHON%;%PYTHON%\Scripts;%PYTHON%\Library\bin;%PATH%</code>
</pre>
<p>I also had to:<br></p>
<pre>
<code>SET PYTHONPATH=%PYTHON%\Lib\site-packages;%PYTHONPATH%</code>
</pre>
<pre>
<code>python setup.py install</code>
</pre>
<p>is built and installed successfully (cf. log: copying build\lib.win-amd64-3.7\gudhi.cp37-win_amd64.pyd -> C:\Python37-x64\Lib\site-packages )</p>
<pre>
<code>DIR %PYTHON%\\Lib\\site-packages
...
Directory of C:\Python37-x64\Lib\site-packages
...
06/06/2019 07:39 AM 1,320,960 gudhi.cp37-win_amd64.pyd
... .</code>
</pre>
<p>But import fails:<br></p>
<pre>
<code>python -c "import gudhi; print(gudhi.<strong>version</strong>)"
ImportError: DLL load failed: The specified module could not be found.</code>
</pre>
<p>I really do not understand why and some help would be appreciate ;-)</p>
<p>Vincent.</p></div>Vincent Rouvreautag:help.appveyor.com,2012-11-13:Comment/469523072019-06-12T05:37:46Z2019-06-12T05:37:48ZImportError: DLL load failed: The specified module could not be found.<div><p>Hello,</p>
<p>and sorry for the noise.</p>
<p>The issue was coming from a dll dependency installed with vcpkg.<br>
I added dll path to the PATH and the module is imported correctly.</p>
<p>Vincent.</p></div>Vincent Rouvreautag:help.appveyor.com,2012-11-13:Comment/469523072019-06-12T21:47:50Z2019-06-12T21:47:50ZImportError: DLL load failed: The specified module could not be found.<div><p>Thanks for the update.</p></div>Owen McDonnell