← Back to team overview

yade-users team mailing list archive

Re: [Question #670527]: How to get YadeVerion and executable file to create Wrapper .py

 

Question #670527 on Yade changed:
https://answers.launchpad.net/yade/+question/670527

    Status: Open => Answered

Jan Stránský proposed the following answer:
As the error says, python does not know about simDEM module..

the documentation says, that it is part of Yade source code, in my case it located at
/usr/lib/x86_64-linux-gnu/yade/py/yade/FEMxDEM/simDEM.py
so to be able to import it, you have to tell python where it is. What I have tried:

in shell:
mkdir /tmp/test
cd /tmp/test
ln -s /usr/bin/yade yadeimport.py
cp /usr/lib/x86_64-linux-gnu/yade/py/yade/FEMxDEM/simDEM.py .
# create test.py, see below
python test.py

content of test.py:
###
from simDEM import *
print avgRotation3D
###

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.