yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #05037
[Question #173942]: Running script on boucing sphere example
New question #173942 on Yade:
https://answers.launchpad.net/yade/+question/173942
when I type execfile('1.py') or execfile('1.py',globals()) into yade the script doesn't run. However, there are no more errors.
ervin@ubuntu:~$ ~/yade/bin/yade-trunk 1.py
Welcome to Yade bzr2923
TCP python prompt on localhost:9000, auth cookie `ucakss'
XMLRPC info provider on http://localhost:21000
Running script 1.py
[[ ^L clears screen, ^U kills line. F8 plot. ]]
Yade [1]: execfile('1.py',globals())
Yade [2]:
tried running the program like this: Does this following error have any significance?
Yade [4]: run 1.py
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/home/ervin/1.py in <module>()
6 # add 2 particles to the simulation
7 # they the default material (utils.defaultMat)
----> 8 O.bodies.append([
9 # fixed: particle's position in space will not change (support)
10 utils.sphere(center=(0,0,0),radius=.5,fixed=True),
NameError: name 'O' is not defined
WARNING: Failure executing file: <1.py>
Yade [5]:
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.