← Back to team overview

yade-dev team mailing list archive

[Bug 571522] Re: list of broken scripts as of bzr 2185

 

Hi Janek, thaks for this nice job. Hopefully someone can pick it up a
fix some of them, i will fix several myself.

I will think about a way of making scripts runnable in an automatized
way, so that we can check that all of them work, in a way similar to
what regression tests do now on more basic scale.

-- 
list of broken scripts as of bzr 2185
https://bugs.launchpad.net/bugs/571522
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.

Status in Yet Another Dynamic Engine: New

Bug description:
Listing them all should at least help remembering about fixing them ;)
If you think that I should list them in separate bug reports, then I can do that, just tell me to.

trunk/scripts/test, bzr 2185
================================
Running script Dem3DofGeom.py
Traceback (most recent call last):
  File "/home/janek/bin/yy", line 112, in <module>
    execfile(args[0])
  File "Dem3DofGeom.py", line 24, in <module>
    Gl1_Dem3DofGeom_SphereSphere(normal=True,rolledPoints=True,unrolledPoints=True,shear=True,shearLabel=True),
ArgumentError: Python argument types in
    Gl1_Dem3DofGeom_SphereSphere.__init__(Gl1_Dem3DofGeom_SphereSphere)
did not match C++ signature:
    __init__(_object*)


================================
Running script Se3Interpolator.py
Traceback (most recent call last):
  File "/home/janek/bin/yy", line 112, in <module>
    execfile(args[0])
  File "Se3Interpolator.py", line 8, in <module>
    Se3Interpolator(subscribedBodies=[0],goal=(Vector3(10,10,0),Quaternion(0,0,1,pi)),startIter=10,goalIter=1010,goalHook='print "Finished moving the thing!"; O.pause()'),
NameError: name 'Se3Interpolator' is not defined


================================
Running script ResetRandomPosition.py
WARN: object['mass'] syntax is deprecated, use object.mass instead.
WARN: object['kn']=value syntax is deprecated, use object.kn=value instead.
WARN: object['cn']=value syntax is deprecated, use object.cn=value instead.
WARN: object['ks']=value syntax is deprecated, use object.ks=value instead.
WARN: object['cs']=value syntax is deprecated, use object.cs=value instead.
/home/janek/40-Yade/Bin/HEAD-fast/lib/yade-trunk/py/yade/__init__.py:54: DeprecationWarning: Class `Law2_Spheres_Viscoelastic_SimpleViscoelastic' was renamed to (or replaced by) `Law2_ScGeom_ViscElPhys_Basic', update your code! (you can run 'yade --update script.py' to do that automatically)
Traceback (most recent call last):
  File "/home/janek/bin/yy", line 112, in <module>
    execfile(args[0])
  File "ResetRandomPosition.py", line 58, in <module>
    ResetRandomPosition(factoryFacets=fctIds,velocity=(0,0,-2),virtPeriod=0.01,subscribedBodies=spheres,point=(0,0,-.5),normal=(0,0,1),maxAttempts=100),
AttributeError: No such attribute: virtPeriod.


================================
Running script bex-move.py
Traceback (most recent call last):
  File "/home/janek/bin/yy", line 112, in <module>
    execfile(args[0])
  File "bex-move.py", line 10, in <module>
    print O.bex.f(0),O.bodies[0].state.pos
AttributeError: 'Omega' object has no attribute 'bex'


================================
Running script callback.py
5
(0,0)<cb=0x2b5da00, setting cb->scene=0x24c49b0>{0,0,this=0x2b5da00,scene=0x54c,forces=0x5dc}<1,cb=0x2b5da00,scene=0x24c49b0>[1,#1,scene=0x54c]
zsh: segmentation fault  yy callback.py


================================
Running script clump-hopper-viscoelastic.py
WARN: object['mass'] syntax is deprecated, use object.mass instead.
WARN: object['kn']=value syntax is deprecated, use object.kn=value instead.
WARN: object['cn']=value syntax is deprecated, use object.cn=value instead.
(gives lots of warnings, but seems to work otherwise)


================================
Running script clump-inbox-viscoelastic.py
WARN: object['mass'] syntax is deprecated, use object.mass instead.
WARN: object['kn']=value syntax is deprecated, use object.kn=value instead.
WARN: object['cn']=value syntax is deprecated, use object.cn=value instead.
/home/janek/40-Yade/Bin/HEAD-fast/lib/yade-trunk/py/yade/__init__.py:68: DeprecationWarning: Class `Law2_Spheres_Viscoelastic_SimpleViscoelastic' was renamed to (or replaced by) `Law2_ScGeom_ViscElPhys_Basic', update your code! (you can run 'yade --update script.py' to do that automatically)
  import utils # some others?
Traceback (most recent call last):
  File "/home/janek/bin/yy", line 112, in <module>
    execfile(args[0])
  File "clump-inbox-viscoelastic.py", line 71, in <module>
    NewtonIntegrator(damping=0,accRigidBodyRot=True),
AttributeError: No such attribute: accRigidBodyRot.

================================
Running script clump-viscoelastic.py
WARN: object['mass'] syntax is deprecated, use object.mass instead.
WARN: object['kn']=value syntax is deprecated, use object.kn=value instead.
WARN: object['cn']=value syntax is deprecated, use object.cn=value instead.
/home/janek/40-Yade/Bin/HEAD-fast/lib/yade-trunk/py/yade/__init__.py:48: DeprecationWarning: Class `Law2_Spheres_Viscoelastic_SimpleViscoelastic' was renamed to (or replaced by) `Law2_ScGeom_ViscElPhys_Basic', update your code! (you can run 'yade --update script.py' to do that automatically)
Traceback (most recent call last):
  File "/home/janek/bin/yy", line 112, in <module>
    execfile(args[0])
  File "clump-viscoelastic.py", line 51, in <module>
    NewtonIntegrator(damping=0,accRigidBodyRot=True),
AttributeError: No such attribute: accRigidBodyRot.


================================
Running script clump.py
Traceback (most recent call last):
  File "/home/janek/bin/yy", line 112, in <module>
    execfile(args[0])
  File "clump.py", line 8, in <module>
    PersistentSAPCollider(),
NameError: name 'PersistentSAPCollider' is not defined

================================
Running script collider-stride-triax.py
Traceback (most recent call last):
  File "/home/janek/bin/yy", line 112, in <module>
    execfile(args[0])
  File "collider-stride-triax.py", line 7, in <module>
    TriaxialTest(numberOfGrains=2000,fast=True,noFiles=True).generate(loadFrom)
AttributeError: No such attribute: fast.


================================
Running script facet-box.py
Traceback (most recent call last):
  File "/home/janek/bin/yy", line 112, in <module>
    execfile(args[0])
  File "facet-box.py", line 2
     O.bodies.append(utils.facetBox((0,0,10),(10,5,2),wallMask=0b110011,wire=False))
                                                                      ^
 SyntaxError: invalid syntax


================================
Running script genCylLSM.py
Traceback (most recent call last):
  File "/home/janek/bin/yy", line 112, in <module>
    execfile(args[0])
  File "genCylLSM.py", line 23, in <module>
    from gengeo import *
ImportError: No module named gengeo


================================
Running script gts-random-pack-obb.py
/usr/lib/python2.5/site-packages/pytz/__init__.py:32: UserWarning: Module pylab was already imported from /usr/lib/pymodules/python2.5/pylab.py, but /usr/lib/pymodules/python2.5 is being added to sys.path
  from pkg_resources import resource_stream
/usr/lib/python2.5/site-packages/pytz/__init__.py:32: UserWarning: Module matplotlib was already imported from /usr/lib/pymodules/python2.5/matplotlib/__init__.py, but /usr/lib/pymodules/python2.5 is being added to sys.path
  from pkg_resources import resource_stream
Best-fit oriented-bounding-box computed for GTS surface, orientation is Quaternion((-0.055563684716141794,0.98940307230140856,0.1341426012171322),0.79295968138975126)
Traceback (most recent call last):
  File "/home/janek/bin/yy", line 112, in <module>
    execfile(args[0])
  File "gts-random-pack-obb.py", line 15, in <module>
    O.bodies.append(pack.randomDensePack(pack.inGtsSurface(surf),radius=3e-2,rRelFuzz=1e-1,memoizeDb='/tmp/gts-triax-packings.sqlite'))
  File "/home/janek/40-Yade/Bin/HEAD-fast/lib/yade-trunk/py/yade/pack.py", line 335, in randomDensePack
    noFiles=True,lowerCorner=[0,0,0],sigmaIsoCompaction=1e7,sigmaLateralConfinement=1e3,StabilityCriterion=.05,strainRate=.2,fast=True,thickness=-1,maxWallVelocity=.1,wallOversizeFactor=1.5,autoUnload=True,autoCompressionActivation=False).load()
AttributeError: No such attribute: fast.


================================
Running script gts-random-pack.py
/usr/lib/python2.5/site-packages/pytz/__init__.py:32: UserWarning: Module pylab was already imported from /usr/lib/pymodules/python2.5/pylab.py, but /usr/lib/pymodules/python2.5 is being added to sys.path
  from pkg_resources import resource_stream
/usr/lib/python2.5/site-packages/pytz/__init__.py:32: UserWarning: Module matplotlib was already imported from /usr/lib/pymodules/python2.5/matplotlib/__init__.py, but /usr/lib/pymodules/python2.5 is being added to sys.path
  from pkg_resources import resource_stream
Best-fit oriented-bounding-box computed for GTS surface, orientation is Quaternion((0.37490111080898092,0.15528912464581837,0.91396632590097526),0.85103102347718163)
Traceback (most recent call last):
  File "/home/janek/bin/yy", line 112, in <module>
    execfile(args[0])
  File "gts-random-pack.py", line 35, in <module>
    O.bodies.append(pack.randomDensePack(pack.inGtsSurface(surf),radius=5e-3,rRelFuzz=1e-4,memoizeDb=memoizeDb))
  File "/home/janek/40-Yade/Bin/HEAD-fast/lib/yade-trunk/py/yade/pack.py", line 335, in randomDensePack
    noFiles=True,lowerCorner=[0,0,0],sigmaIsoCompaction=1e7,sigmaLateralConfinement=1e3,StabilityCriterion=.05,strainRate=.2,fast=True,thickness=-1,maxWallVelocity=.1,wallOversizeFactor=1.5,autoUnload=True,autoCompressionActivation=False).load()
AttributeError: No such attribute: fast.


================================
Running script pack-cloud.py
Traceback (most recent call last):
  File "/home/janek/bin/yy", line 112, in <module>
    execfile(args[0])
  File "pack-cloud.py", line 5, in <module>
    print p.makeCloud(Vector3().ZERO,O.cellSize[1],.5,.5,1200,True)
ArgumentError: Python argument types in
    SpherePack.makeCloud(SpherePack, Vector3, float, float, float, int, bool)
did not match C++ signature:
    makeCloud(SpherePack {lvalue}, Wm3::Vector3<double> minCorner, Wm3::Vector3<double> maxCorner, double rMean, double rRelFuzz, int num=-1, bool periodic=False, double porosity=-1)


================================
Running script periodic-compress.py
618   WARN  yade.SpherePack /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/pkg/dem/DataClass/SpherePack.cpp:111 makeCloud: Exceeded 1000 tries to insert non-overlapping sphere to packing. Only 194 spheres was added, although you requested 700
Vector3(20,20,10)
3017  FATAL yade.ThreadRunner /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/core/ThreadRunner.cpp:31 run: Exception occured: 
Unable to shring cell due to maximum body size (although required by stress condition). Increase particle rigidity, increase total sample dimensions, or decrease goal stress.
3029  ERROR yade.pack.predicates py/yadeWrapper/yadeWrapper.cpp:326 wait: Simulation error encountered.
Traceback (most recent call last):
  File "/home/janek/bin/yy", line 112, in <module>
    execfile(args[0])
  File "periodic-compress.py", line 29, in <module>
    O.wait()
RuntimeError: std::exception


================================
Running script wall.py
Traceback (most recent call last):
  File "/home/janek/bin/yy", line 112, in <module>
    execfile(args[0])
  File "wall.py", line 7, in <module>
    utils.wall(1,axis=2,sense=-1,**kw),
TypeError: wall() got an unexpected keyword argument 'young'


/trunk/scripts/test/SpheresFactory
================================
Running script model.py
/home/janek/40-Yade/Bin/HEAD-fast/lib/yade-trunk/py/yade/utils.py:609: DeprecationWarning: Function utils.import_stl_geometry is deprecated, use yade.import.stl instead.
  _deprecatedUtilsFunction('import_stl_geometry','yade.import.stl')
Traceback (most recent call last):
  File "/home/janek/bin/yy", line 112, in <module>
    execfile(args[0])
  File "model.py", line 11, in <module>
    box = utils.import_stl_geometry('plane.stl',young=Young,poisson=Poisson,color=[0.7,0.7,0.7],wire=False)
  File "/home/janek/40-Yade/Bin/HEAD-fast/lib/yade-trunk/py/yade/utils.py", line 611, in import_stl_geometry
    return yade.ymport.stl(*args,**kw)
TypeError: stl() got an unexpected keyword argument 'young'


trunk/examples
================================
Running script cyl.py
Generating cloud…
zsh: segmentation fault  yy cyl.py





Follow ups

References