Re: [Yade-users] [Question #390174]: No to_python (by-value) converter found for C++ type: boost:: ...
2016-09-16 16:08 GMT+02:00 Luc Sibille : > Note that gcc-4.9 is consequently required for the compilation. Consider to update your operating system. gcc_4.9 is pretty old and if we switch to C++-14, you will unlikely be able to compile the code due to a weak support of this standard version in 4.9. Cheers Anton ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #390174]: No to_python (by-value) converter found for C++ type: boost:: ...
Question #390174 on Yade changed: https://answers.launchpad.net/yade/+question/390174 Luc Sibille confirmed that the question is solved: Thanks Václav Šmilauer, that solved my question. -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #390174]: No to_python (by-value) converter found for C++ type: boost:: ...
Question #390174 on Yade changed: https://answers.launchpad.net/yade/+question/390174 Status: Answered => Solved Luc Sibille confirmed that the question is solved: Thank you all, it works with boost 1.61.0 Note that gcc-4.9 is consequently required for the compilation. Cheers, Luc -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #390174]: No to_python (by-value) converter found for C++ type: boost:: ...
Question #390174 on Yade changed: https://answers.launchpad.net/yade/+question/390174 Václav Šmilauer proposed the following answer: This is a regression inreoduced in boost 1.60 and fixed in 1.61 (https://github.com/boostorg/python/issues/56). Use <1.60 or >1.60 and the error will go away. Cheers, vaclav -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #390174]: No to_python (by-value) converter found for C++ type: boost:: ...
Question #390174 on Yade changed: https://answers.launchpad.net/yade/+question/390174 Anton Gladky proposed the following answer: Could you please try to use the boost, which is shipped with the distribution? Version 1.55 in case of Debian 7. Cheers Anton -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #390174]: No to_python (by-value) converter found for C++ type: boost:: ...
Question #390174 on Yade changed: https://answers.launchpad.net/yade/+question/390174 Luc Sibille posted a new comment: Hi Bruno, The system: 3.2.0-4-amd64 #1 SMP Debian 3.2.73-2+deb7u2 x86_64 (Goliarda computational facility of 3SR Lab) Here is the cmake output: -- Version is set to 2016-09-01.git-e4e757f -- GTS using gts-config /usr/bin/gts-config -- Using GTS from /usr -- Boost version: 1.60.0 -- Found the following Boost libraries: -- python -- thread -- filesystem -- iostreams -- regex -- serialization -- system -- date_time -- Boost_VERSION: 106000 -- Boost_LIB_VERSION: 1_60 -- Boost_INCLUDE_DIRS: /opt/boost/1.60.0 -- Boost_LIBRARIES: /opt/boost/1.60.0/stage/lib/libboost_python.so/opt/boost/1.60.0/stage/lib/libboost_thread.so/opt/boost/1.60.0/stage/lib/libboost_filesystem.so/opt/boost/1.60.0/stage/lib/libboost_iostreams.so/opt/boost/1.60.0/stage/lib/libboost_regex.so/opt/boost/1.60.0/stage/lib/libboost_serialization.so/opt/boost/1.60.0/stage/lib/libboost_system.so/opt/boost/1.60.0/stage/lib/libboost_date_time.so/usr/lib/x86_64-linux-gnu/libpthread.so -- Found Eigen3, version: 3.2.4 -- Disable vectorization -- The imported target "vtkParseJava" references the file "/usr/bin/vtkParseJava" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets-release.cmake" but not all the files it references. -- The imported target "vtkWrapJava" references the file "/usr/bin/vtkWrapJava" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets-release.cmake" but not all the files it references. -- The imported target "vtkCommonJava" references the file "/usr/lib/jni/libvtkCommonJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets-release.cmake" but not all the files it references. -- The imported target "vtkFilteringJava" references the file "/usr/lib/jni/libvtkFilteringJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets-release.cmake" but not all the files it references. -- The imported target "vtkImagingJava" references the file "/usr/lib/jni/libvtkImagingJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets-release.cmake" but not all the files it references. -- The imported target "vtkGraphicsJava" references the file "/usr/lib/jni/libvtkGraphicsJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets-release.cmake" but not all the files it references. -- The imported target "vtkGenericFilteringJava" references the file "/usr/lib/jni/libvtkGenericFilteringJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets-release.cmake" but not all the files it references. -- The imported target "vtkIOJava" references the file "/usr/lib/jni/libvtkIOJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets-release.cmake" but not all the files it references. -- The imported target "vtkRenderingJava" references the file "/usr/lib/jni/libvtkRenderingJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets-release.cmake" but not all the files it references. -- T
Re: [Yade-users] [Question #390174]: No to_python (by-value) converter found for C++ type: boost:: ...
Question #390174 on Yade changed: https://answers.launchpad.net/yade/+question/390174 Status: Open => Answered Bruno Chareyre proposed the following answer: Can you tell on which system and paste the output of cmake? Bruno -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
[Yade-users] [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 () > 1 O.cell.refSize=(2,2,2) TypeError: No to_python (by-value) converter found for C++ type: boost::shared_ptr 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 () > 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 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. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp