← Back to team overview

yade-users team mailing list archive

[Question #675481]: How to run a script using YADE

 

New question #675481 on Yade:
https://answers.launchpad.net/yade/+question/675481

Hello all,

I habe installed YADE in my system (Ubuntu 16.04). I am learning the basics. I have saved the bouncing cube (https://yade-dem.org/doc/tutorial-examples.html#bouncing-sphere) in a python file and triend to run it by 

```
python bouncing_ball.py
```
But I get the following error. 

``` dinesh@Personal /home/dinesh/myYade/examples $  
|  Personal desktop => python bouncing_ball.py 
Traceback (most recent call last):
  File "bouncing_ball.py", line 8, in <module>
    O.bodies.append([
NameError: name 'O' is not defined

```

Am I running the script right?

Thanks.



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