PyChrono--AttributeError

19 views
Skip to first unread message

ttt feng

unread,
Oct 28, 2022, 2:20:30 AM10/28/22
to ProjectChrono
HI, I just started learning to use pychrono and when I run demos cloned from github, I always get  attribute errors, Is the version I downloaded wrong or is there something else?

AttributeError: 'ChWheeledVehicle' object has no attribute 'GetVehiclePos'
AttributeError: 'ChBodyEasyBox' object has no attribute 'AddAsset'

Radu Serban

unread,
Oct 28, 2022, 4:25:13 AM10/28/22
to ProjectChrono

You are using demos that are incompatible with your PyChrono built/installation.  Please see the notice at https://api.projectchrono.org/tutorial_table_of_content_pychrono.html regarding where to look for compatible demo sources.  Do not simply grab the source of a demo from some branch in the Chrono repository.

 

--Radu

--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/a1d222f4-ae6a-43f5-9a29-b7c1e9fd7eeen%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages