woo

Error message - tutorial case

Asked by Ralf

Dear all,

doing the simple tutorial case (a sphere falling onto a plane), I alway got an error message when trying to add a particle or a wall.

This is the in- and output:

Woo [1]: import woo, woo.core, woo.dem
Woo [2]: S=woo.master.scene=woo.core.Scene(fields=[woo.dem.DemField(gravity=(0,0,-9.81))])
Woo [3]: wall=woo.dem.Wall.make(0,axis=2)
Woo [4]: S.dem.par.add(wall)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
C:\Program Files\Woo\wooMain.pyc in <module>()
----> 1 S.dem.par.add(wall)

AttributeError: 'ParticleContainer' object has no attribute 'add'
Woo [5]:

....

My system is a windows 7 pc with the lastest lib and installer files (Woo-main-0.99-r3517-installer.exe ; Woo-libs-1.0e-installer.exe).
As I'm beginner using python, it might be a rather simple input error.
Any help would be appreciated.

Thanks a lot!
Best regards,

Ralf

Question information

Language:
English Edit question
Status:
Solved
For:
woo Edit question
Assignee:
No assignee Edit question
Solved by:
Václav Šmilauer
Solved:
Last query:
Last reply:
Revision history for this message
Best Václav Šmilauer (eudoxos) said :
#1

Hi Ralf,

I am sorry for the issue. You are running an older release of Woo (3517) with the current documentation; the Windows build was lastly updated a few months ago (Linux is the primary platform) and did not match that. If you can, download and install build 3596 (from https://launchpad.net/woo/+download) which I built just today and the problem you have should disappear.

HTH,

Václav

Revision history for this message
Ralf (ralf-kuehn) said :
#2

Hi Václav,

The tutorial worked fine with the new Windows build.

Thanks a lot ...