Error running vehicle demos

28 views
Skip to first unread message

Brock Birdsong

unread,
Mar 17, 2026, 11:42:29 AM (6 days ago) Mar 17
to ProjectChrono
I get an error complaining about visualization when running the demos for any vehicle other than the DeformableSoil.py: 

AttributeError: module 'pychrono.vehicle' has no attribute 'VisualizationType_PRIMITIVES'. Did you mean: 'CollisionType_PRIMITIVES'?
(magic25) PS C:\Users\birds\.conda\pkgs\pychrono-9.0.1-py312h84d2775_0\Lib\site-packages\pychrono\demos\vehicle> python .\demo_VEH_M113.py
Traceback (most recent call last):
  File "C:\Users\birds\.conda\pkgs\pychrono-9.0.1-py312h84d2775_0\Lib\site-packages\pychrono\demos\vehicle\demo_VEH_M113.py", line 179, in <module>
    main()
  File "C:\Users\birds\.conda\pkgs\pychrono-9.0.1-py312h84d2775_0\Lib\site-packages\pychrono\demos\vehicle\demo_VEH_M113.py", line 48, in main
    m113.SetChassisVisualizationType(veh.VisualizationType_PRIMITIVES)
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pychrono.vehicle' has no attribute

 'VisualizationType_PRIMITIVES'. Did you mean: 'CollisionType_PRIMITIVES'?
(magic25) PS C:\Users\birds\.conda\pkgs\pychrono-9.0.1-py312h84d2775_0\Lib\site-packages\pychrono\demos\vehicle>


I can run other demos successfully, so I believe my installation is at least partially correct (:

Bocheng Zou

unread,
Mar 17, 2026, 11:56:16 AM (6 days ago) Mar 17
to projec...@googlegroups.com

Hi Brock,

Please note that those demo has been heavily updated. Please obtain those demos from the latest main branch from https://github.com/projectchrono/chrono with the latest conda package (by running "conda install pychrono=9.0.1=py312h8c5e8c1_45 -c conda-forge" if you are on Windows)

Best,

Bocheng Zou

--
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 visit https://groups.google.com/d/msgid/projectchrono/7e1b73e6-c069-446c-8d6c-121885f1c130n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages