run yade

Asked by LiTingting

when I type "yade script.py",then the terminal will show the contents that are:
----------------------------------------------------------------------------
Running script script.py

Traceback (most recent call last):

File " /usr /bin/yade", line 182, in runScript

execfile(script,globals( ))

IOError: [Errno 2] No such file or directory: ' script. py'
----------------------------------------------------------------------------
I don't know where the script.py should be saved?

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Karol Brzezinski
Solved:
Last query:
Last reply:
Revision history for this message
Best Karol Brzezinski (kbrzezinski) said :
#1

Hi,

maybe it is just a typo? I see in the error that you have an extra space in the filename: 'script .py' instead of 'script.py'.

You just need to Navigator with your terminal to the directory where script is save and then type 'yade script.py' (just as you typed in question).

Cheers,
Karol

Revision history for this message
LiTingting (tingtingli) said :
#2

Thanks Karol Brzezinski, that solved my question.