Some problems in the chrono: : sensor module

317 views
Skip to first unread message

孙杰

unread,
Jul 1, 2023, 8:41:24 PM7/1/23
to ProjectChrono
Hello,
My name is Jay Sun, I have already installed pychrono (installation manual: https://api.projectchrono.org/development/pychrono_installation.html), also successfully run the site - packages \ pychrono \ demos, some of the demos, But I reported an error when running the sensor module. The following is the wrong picture. Could you tell me how to solve it? 

Thank you very much!

Regards,
Jay Sun5b67689809ad65abe16f6e9001ed249.png23d3123aa62cb0a5406b4b13b85d74f.png

Thomas LIANG

unread,
Jul 3, 2023, 2:11:28 PM7/3/23
to ProjectChrono
Hi Jay,

Did you install NumPy in the conda environment? (NumPy is required for sensor) If you still encounter the problem, enter a python environment and import _sensor; please take a screenshot of the error form the python environment.

Kind regards,
Thomas

孙杰

unread,
Jul 5, 2023, 7:51:50 AM7/5/23
to ProjectChrono
Hi Thomas,
     I have installed Numpy library in conda environment, and I can run the demo that comes with pychrono, such as the demo in vehicle and robot modules, which can be seen in the screenshot on the right above.
     However, the problems that will occur in the demo running the sensor module are the same as what I sent for the first time, as shown in the screenshot above on the left.
I can make sure that I have the Numpy library installed because demos like vehicle use the Numpy library.
     I'm confused about this,looking forward to your reply.

Regards, 
Jay

Thomas LIANG

unread,
Jul 5, 2023, 12:22:33 PM7/5/23
to ProjectChrono
Hi Jay,
Can you enter a Python environment (type "python" in the anaconda environment) and type: "import _sensor" from there? It should give you more information on what is going wrong.
Kind regards,
Thomas
Message has been deleted

Eric Dishman

unread,
Nov 29, 2023, 8:09:05 AM11/29/23
to ProjectChrono
Hi Jay,

I see from messages in the group that you were able to get the sensor module to work for Pychrono. I am having a similar issue with the module. I followed all the instructions and I am able to run all the demos except for the sensor module demos.

I see the _sensor.pyd file. Through toubleshooting, I was able to get an error that said either _sensor is missing or one of its dependencies.

Can you please tell me what you did to get the module to load properly? 

Thanks
Eric

Jay Sun

unread,
Dec 1, 2023, 10:51:26 PM12/1/23
to ProjectChrono
Hi Eric,
To be honest, I don't know how to install it, I think I installed it in C++ (not fully installed), and then pychrono can use the sensor module. In fact, I am also very confused.I have successfully installed it once so far. I'm so sorry.

Jay

Thomas LIANG

unread,
Dec 2, 2023, 12:37:53 AM12/2/23
to ProjectChrono
Hi Eric and Jay,

There are two ways to install PyChrono, one through CMake and one through Conda. I am guessing Jay built it from CMake (by enabling the Python module during the build process). Eric, if you can post a screenshot and tell me if you installed it with CMake or Conda, we can debug the issue from there.

Best,
Thomas

Jay Sun

unread,
Dec 6, 2023, 12:04:57 AM12/6/23
to ProjectChrono
Hi Thomas,

I tried to use the latest version of Pychrono (win-64_pychrono-8.0.0-py39_3631.tar.bz2), install with anaconda, And according to the official documentation (https://api.projectchrono.org/8.0.0/pychrono_installation.html) installation, appear error shown below. How can I solve it? The code is attached.

Best,
JayCleanShot 2023-12-06 at 12.57.49@2x.png
demo.py
Reply all
Reply to author
Forward
0 new messages