Problem in the installation of Escript

Asked by Colin

I install escript-3.2-MPI-win32-py2.6 in my desktop. Following the ReadMe file, I type "import esys.escript" in command line
after I install all dependencies. The error information is shown as follows:

>>>import esys.escript
Tracebacl (most recent call last):
  File "<stdin>", line 1, in <module>
  File "escript\py_src\_init_.py", line 22, in <module>
  File "escript\py_src\escript.py", line 28, in <module>
ImportError: DLL load failed: The specified module could not be found

So how can I solve this problem? Thank you in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
esys-escript Edit question
Assignee:
No assignee Edit question
Solved by:
Colin
Solved:
Last query:
Last reply:
Revision history for this message
Colin (zhihe-zhao2004) said :
#1

can anyone give me a hint? I tried it on two computers. And I get the exactly same error information.

Revision history for this message
Bob (caltinay) said :
#2

Hey Colin,

Please ensure the following:

-the unpacked 'esys' directory is located in your python's 'site-packages' directory, (e.g. C:\Python26\Lib\site-packages)
-all escript DLL files are in your PATH (try echo %PATH% before running python to check)

Hope this helps,
Cihan

Revision history for this message
Thomas Poulet (thomas-poulet) said :
#3

Hi Colin,

This is the error message you get if you don't add the folder with the esys dlls to your path, as mentioned in the ReadMe.txt file which is part of the zip archive for the windows "installer". Please try to add "C:\Python26\libs\esys_dlls" to your path (or whichever folder containing escript.dll, finley.dll, etc.) and try again. Let us know how you go.
Cheers,
Thomas.

Revision history for this message
Colin (zhihe-zhao2004) said :
#4

Hello Cihan & Thomas,

  Thank you for your replies. I exactly followed ReadMe file. That is
1) Copy unpacked folder 'esys' to python's 'site-packages' directory
2) Copy unpacked foler 'esys_dlls' to C:\Python26\libs
3) Add 'C:\Python26\Lib\site_packages' and 'C:\Python26\libs\esys_dlls' to the path

To make sure that 'C:\Python26\libs\esys_dlls' is in my path. I copied some other application file('test.exe') to C:\Python26\libs\esys_dlls. I type 'test' in command prompt window and it works.

I tried on two computers(one is window 7 and 64 bit, the other is window xp and 32 bit). And I got exactly the same error.
I am really confused. Could it be some other reasons?

Kind regards,

Colin

Revision history for this message
Bob (caltinay) said :
#5

Colin,

Okay, I suspect that you don't have MPICH installed but since you downloaded the parallel version of escript (MPI) it is required. Can you confirm you have MPICH installed? Do you start the python interpreter using 'python' or 'pythonmpi'?

Cihan

Revision history for this message
Colin (zhihe-zhao2004) said :
#6

Hello Cihan,

I have MPICH installed, but it is not the right version. So after I installed the right one,
it works like magic. Thank you for helping me solve this problem.

Kind regards,

Colin