yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #13363
[Question #390174]: No to_python (by-value) converter found for C++ type: boost:: ...
New question #390174 on Yade:
https://answers.launchpad.net/yade/+question/390174
Hello,
I compiled the last trunk version yade-2016-09-01.git-e4e757f
When I run yade I have several errors of the same type. 2 exemples:
1st example:
Yade [1]: O.periodic=True
Yade [2]: O.cell.refSize=(2,2,2)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/3S-LAB/lsibille/yade_testPFV/install/bin/yade-2016-09-01.git-e4e757f in <module>()
----> 1 O.cell.refSize=(2,2,2)
TypeError: No to_python (by-value) converter found for C++ type: boost::shared_ptr<Cell>
2nd example:
Yade [3]: from yade import pack
Yade [4]: O.bodies.append(geom.facetBox((.5,.5,.5),(.5,.5,.5),wallMask=31))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/3S-LAB/lsibille/yade_testPFV/install/bin/yade-2016-09-01.git-e4e757f in <module>()
----> 1 O.bodies.append(geom.facetBox((.5,.5,.5),(.5,.5,.5),wallMask=31))
/home/3S-LAB/lsibille/yade_testPFV/install/lib/x86_64-linux-gnu/yade-2016-09-01.git-e4e757f/py/yade/geom.pyc in facetBox(center, extents, orientation, wallMask, **kw)
23 """
24
---> 25 return facetParallelepiped(center=center, extents=extents, height=extents[2], orientation=orientation, wallMask=wallMask, **kw)
26
27 #facetParallelepiped===============================================================
/home/3S-LAB/lsibille/yade_testPFV/install/lib/x86_64-linux-gnu/yade-2016-09-01.git-e4e757f/py/yade/geom.pyc in facetParallelepiped(center, extents, height, orientation, wallMask, **kw)
79 G=orientation*Vector3(mx[0]+dx,mx[1],mx[2])+center
80 H=orientation*Vector3(mn[0]+dx,mx[1],mx[2])+center
---> 81 if wallMask&1: ret+=doWall(A,D,H,E)
82 if wallMask&2: ret+=doWall(B,F,G,C)
83 if wallMask&4: ret+=doWall(A,E,F,B)
/home/3S-LAB/lsibille/yade_testPFV/install/lib/x86_64-linux-gnu/yade-2016-09-01.git-e4e757f/py/yade/geom.pyc in doWall(a, b, c, d)
65 mn,mx=[-extents[i] for i in 0,1,2],[extents[i] for i in 0,1,2]
66 def doWall(a,b,c,d):
---> 67 return [utils.facet((a,b,c),**kw),utils.facet((a,c,d),**kw)]
68 ret=[]
69
/home/3S-LAB/lsibille/yade_testPFV/install/lib/x86_64-linux-gnu/yade-2016-09-01.git-e4e757f/py/yade/utils.pyc in facet(vertices, dynamic, fixed, wire, color, highlight, noBound, material, mask, chain)
259 vertices=Vector3(vertices[0])-center,Vector3(vertices[1])-center,Vector3(vertices[2])-center
260 b.shape=Facet(color=color if color else randomColor(),wire=wire,highlight=highlight,vertices=vertices)
--> 261 _commonBodySetup(b,0,Vector3(0,0,0),material,noBound=noBound,pos=center,fixed=fixed)
262 b.aspherical=False # mass and inertia are 0 anyway; fell free to change to ``True`` if needed
263 b.mask=mask
/home/3S-LAB/lsibille/yade_testPFV/install/lib/x86_64-linux-gnu/yade-2016-09-01.git-e4e757f/py/yade/utils.pyc in _commonBodySetup(b, volume, geomInertia, material, pos, noBound, resetState, dynamic, fixed, blockedDOFs)
121 else: raise TypeError("The 'material' argument must be None (for defaultMaterial), string (for shared material label), int (for shared material id) or Material instance.");
122 ## resets state (!!)
--> 123 if resetState: b.state=b.mat.newAssocState()
124 mass=volume*b.mat.density
125 b.state.mass,b.state.inertia=mass,geomInertia*b.mat.density
TypeError: No to_python (by-value) converter found for C++ type: boost::shared_ptr<State>
Apparently it is related with boost librairy?
Any idea?
Best,
Luc
--
You received this question notification because your team yade-users is
an answer contact for Yade.