Skip to content

Cannot import _sensor issue #601

@srivatsankp

Description

@srivatsankp

Summary
I have just installed Pychrono for vehicle simulation and am interested in sensor simualtion as well. I am able to run the demo files in relation to simulation pretty well, without the _core issue (like #471). When I try to run the sensor demos, I get the following traceback:
(base) PS C:\Users\spullabhotla6\AppData\Local\anaconda3\envs\pychrono\Lib\site-packages\pychrono\demos> C:/Users/spullabhotla6/AppData/Local/anaconda3/Scripts/activate (base) PS C:\Users\spullabhotla6\AppData\Local\anaconda3\envs\pychrono\Lib\site-packages\pychrono\demos> conda activate pychrono (pychrono) PS C:\Users\spullabhotla6\AppData\Local\anaconda3\envs\pychrono\Lib\site-packages\pychrono\demos> & C:/Users/spullabhotla6/AppData/Local/anaconda3/envs/pychrono/python.exe c:/Users/spullabhotla6/AppData/Local/anaconda3/envs/pychrono/Lib/site-packages/pychrono/demos/sensor/demo_SEN_radar.py Traceback (most recent call last): File "c:\Users\spullabhotla6\AppData\Local\anaconda3\envs\pychrono\Lib\site-packages\pychrono\demos\sensor\demo_SEN_radar.py", line 14, in <module> import pychrono.sensor as sens File "C:\Users\spullabhotla6\AppData\Local\anaconda3\envs\pychrono\lib\site-packages\pychrono\sensor.py", line 13, in <module> from . import _sensor ImportError: cannot import name '_sensor' from 'pychrono' (C:\Users\spullabhotla6\AppData\Local\anaconda3\envs\pychrono\lib\site-packages\pychrono\__init__.py)

Chrono Version and Platform
Chrono Version : pychrono-9.0.0-py310_4852.tar
Python Version : 3.10.15
Platform : Windows

One difference from the official installation documentation is that pythonocc-core 7.4.1 was incompatible with 3.10.15, so I installed 7.9.0. Is that bound to cause this issue? Thanks! I have also not installed gnuplot as that isn't supported on windows. I don't see how that should cause an issue though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions