How to run an example with source code version

Asked by ehsan benabbas

Hello everyone

I have installed Yade source code successfully and now want to run an example. There are some examples for package version (I haven't installed the package version), but I cannot run them by source code version. To be more specific, when I want to run a code with the Package version I just need to go to the directory of my python file and then type a command as: "yade filename.py"

my problem is I don't know how should I run a code I have with the source code version because "yade filename.py" command doesn't work. It gives me an error like this:

ehsan@ehsan:~/Desktop/mycodes$ yade 3axtst.py

Command 'yade' not found, but can be installed with:

sudo apt install yade

ehsan@ehsan:~/Desktop/mycodes$

So, since I have the code (a .py file), could you please tell me how can I run an example with the source code version of Yade? I'm looking for instruction of what's the command to run a code (a .py file) we have with the source code version.

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
ehsan benabbas
Solved:
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hello,

> There are some examples for package version

again, please be more specific on what "there" is

also please provide the commands you used to install yade from source

thanks
Jan

Revision history for this message
ehsan benabbas (ehsanben) said :
#2

I just solved my problem.
I needed to go to the directory that my .py file is there, and then try to call yade by the following command:
/home/ehsan/myYade/install/bin/yade-2019-07-08.git-e27605e filename.py

Thank you.

Revision history for this message
Jan Stránský (honzik) said :
#3

Also see [1] (for future reference)
Jan
[1] https://answers.launchpad.net/yade/+question/682453