projectchrono / chrono

High-performance C++ library for multiphysics and multibody dynamics simulations
http://projectchrono.org
BSD 3-Clause "New" or "Revised" License
2.25k stars 469 forks source link

Pychrono AddMesh error. TypeError: in method 'ChAssembly_AddMesh', argument 2 of type 'std::shared_ptr< fea::ChMesh >' #215

Open LeoG2 opened 4 years ago

LeoG2 commented 4 years ago

Hi, I have trying to run a code by creating a mesh using nodes 3D positioning and computing the links between them. I colleague created a code and it was working. The code was running both, in linux and in windows 10, running perfectly. I am using the same working code in a different computer with windows 10. When running the code there is an error when using mysystem.AddMesh(mesh). in the visualization setup. The following error is prompted:

TypeError: in method 'ChAssembly_AddMesh', argument 2 of type 'std::shared_ptr< fea::ChMesh >'

If I do not use this function the software runs perfectly. I also tried the demos and no issues are shown.

Any Idea what this could be?

Benatti1991 commented 4 years ago

Hi Leo, could you please post the cose that is giving the error? Are you using the same pychrono version? Are you using the same python version? Thanks, Simone