INSTALLED ON WINDOWS. ImportError: DLL load failed: The specified module could not be found!

Asked by Mojtaba Tavakoli

Hi Everybody,

I created a new environment (with Python 3.7) in Anaconda installed on my Windows 10. Then I installed escript into this new environment using Anaconda Prompt console (I was not able to simply add the esys.escript package to the new environment via Anaconda).
Currently, I can see esys-escript package as an installed package in the new environment.

HERE IS THE PROBLEM:
I launch the Spyder (4.1.5) via Anaconda. I typed on the Spyder console:
  from esys.escript import *
But I got this error:
  ImportError: DLL load failed: The specified module could not be found.

I am trying to run some geophysical inversion codes.

Question information

Language:
English Edit question
Status:
Solved
For:
esys-escript Edit question
Assignee:
No assignee Edit question
Solved by:
Adam Ellery
Solved:
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Mojtaba Tavakoli (mjtba) said :
#2

To whom it may concern,
I highly appreciate reopening my question. I am still having the problem.

BEST
MOJTABA

On Tue, Sep 22, 2020 at 4:55 PM Launchpad Janitor <
<email address hidden>> wrote:

> Your question #692791 on esys-escript changed:
> https://answers.launchpad.net/escript-finley/+question/692791
>
> Status: Open => Expired
>
> Launchpad Janitor expired the question:
> This question was expired because it remained in the 'Open' state
> without activity for the last 15 days.
>
> --
> If you're still having this problem, you can reopen your question either
> by replying to this email or by going to the following page and
> entering more information about your problem:
> https://answers.launchpad.net/escript-finley/+question/692791
>
> You received this question notification because you asked the question.
>

--
*-------------------------------------------------------------------------------------------------------*

*Tavakoli, Mojtaba*
*Email: <email address hidden> <email address hidden>;*

*Cellphone: +98 915 105 6597*
*Iran, **Shahroud, **Shahroud University of Technology, Faculty of Mining,
Petroleum and Geophysics*

Revision history for this message
Best Adam Ellery (aellery) said :
#3

Hi Mojtaba,

Sorry for the late reply.

You can manually set the path to the DLL file using the command:

set PATH=%CONDA_PREFIX%\lib;%PATH%

Can you please tell if if this resolves your issue?

- Adam

Revision history for this message
Mojtaba Tavakoli (mjtba) said :
#4

Thanks Adam Ellery, that solved my question.