Question #482400 on Yade changed:
https://answers.launchpad.net/yade/+question/482400
Jan Stránský posted a new comment:
> "bash: syntax error
the "bash" looks very suspicious.. could you please send all commands
(including console command starting yade or possibly even some console commands
Question #482400 on Yade changed:
https://answers.launchpad.net/yade/+question/482400
Status: Solved => Open
sunwei is still having a problem:
now I input
Yade [1]: import sys
Yade [2]: sys.path.append('/home/thusunwei/myyade/trunk/py/FEMxDEM')
Yade [3]: from yadeimport import *
but
Question #482400 on Yade changed:
https://answers.launchpad.net/yade/+question/482400
Status: Answered => Solved
sunwei confirmed that the question is solved:
thank you jan. That solves my problem.
The reason why i import Yade into Yade session is to take Yade as an object to
couple with
Question #482400 on Yade changed:
https://answers.launchpad.net/yade/+question/482400
Jan Stránský proposed the following answer:
Thanks for info,
empty sys.argv is not standard. A workaround should be
argv = sys.argv
sys.argv = ['whatever']
from yadeimport import *
sys.argv = argv
Anyway, why
Question #482400 on Yade changed:
https://answers.launchpad.net/yade/+question/482400
sunwei posted a new comment:
the complete error is as follows:
Yade [1]: import sys
Yade [2]: sys.path.append('/home/thusunwei/myyade/trunk/py/FEMxDEM')
Yade [3]: from yadeimport import *
Question #482400 on Yade changed:
https://answers.launchpad.net/yade/+question/482400
Jan Stránský proposed the following answer:
Please put here complete error, system you use and Yade version.
Thanks
Jan
2017-02-25 8:43 GMT+01:00 sunwei :
> Question
Question #482400 on Yade changed:
https://answers.launchpad.net/yade/+question/482400
sunwei posted a new comment:
in fact, i had already installed it. so it doesn't work. it still has
the" index out of range" problem.
--
You received this question notification because your team yade-users is
Question #482400 on Yade changed:
https://answers.launchpad.net/yade/+question/482400
Status: Open => Answered
Jan Stránský proposed the following answer:
Hello,
"except ImportError: # argparse not present, print error message
> raise RuntimeError("\n\nPlease install 'python-argparse'
New question #482400 on Yade:
https://answers.launchpad.net/yade/+question/482400
when i want to Import Yade in other Python applications, i do the command as
https://www.yade-dem.org/doc/user.html#python-specialties-and-tricks:
$ cd /path/where/you/want/yadeimport
$ ln -s
9 matches
Mail list logo