an installing problem for a new user

Asked by Zhenyu Han

Hi,

I am a new user of Escript, and have installed everything (python-escript_3.4.2-trusty_amd64.deb) as the "install guide " told me.

But when I ran the first example "example01a.py", the compiler cannot find the esys class.

File "example01a.py", line 35, in <module>
    from esys.escript import * # This imports everything from the escript library
ImportError: No module named escript

So what should I do next.

Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
esys-escript Edit question
Assignee:
No assignee Edit question
Solved by:
Simon Shaw
Solved:
Last query:
Last reply:
Revision history for this message
Best Simon Shaw (simon-shaw) said :
#1

If you are using python to execute the example, you will need to ensure you have the escript libraries in your path.

You should be able to use run-escript (added to your path when you install escript) instead, e.g.:
run-escript example01a.py

Revision history for this message
Zhenyu Han (z-han2) said :
#2

Hi Simon,

It works.

Thanks for your answer.