Failed in importing sympy in yade

Asked by Leonard on 2019-08-07

Hello,
I want to use sympy to solve equations in yade script. I have installed sympy in Ubuntu because there is no error when I open python3 and import sympy in terminal. However, when I import sympy in yade, it failed as:
In [1]: import sympy
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/usr/bin/yade in <module>()
----> 1 import sympy

ImportError: No module named sympy

My yade version is 2018.02b, my Ubuntu version is 18.04.
Could you please help me with that?
Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
2019-08-07
Last query:
2019-08-07
Last reply:
2019-08-07
Best Jan Stránský (honzik) said : #1

> My yade version is 2018.02b

2018.02b uses python2, so just install sympy for python2

Jan

Leonard (z2521899293) said : #2

Thanks Jan Stránský, that solved my question.