Thanks for the response! 1) My operating system is Windows 10 Enterprise 2) I am using Python 3.9.15 3) I specified a specific package with *conda install* *<pychrono_package>.tar.bz2. *I used 'pychrono 8.0.0-py39_0.tar.bz2'. 4) Yes, I have a directory called pychrono-8.0.0-py39_0.
As far as I can tell when I run "conda list" I have all of the correct versions of the required packages. I have attached a .txt file of the "conda list" output in the venv. Maybe there is something out of place there that I am missing. Any ideas / other troubleshooting steps I could take? Thanks so much, Jeremy On Monday, February 13, 2023 at 7:52:04 PM UTC-4 [email protected] wrote: Hi Jeremy, Can you please answer a few questions so I can understand your issue better, 1. What is your Operating System? 2. Which version of Python are you using? 3. When you used conda to install Chrono, did you use * "conda install -c projectchrono pychrono" *command or did you specify a specific package with *conda install* *<pychrono_package>.tar.bz2*? 4. Go to the anaconda installation folder: In windows: "C:\Users\<username>\anaconda3\pkgs\", In linux: "~/anaconda3/pkgs" and see if you have a directory called: *pychrono-X.0.0-py3X_XXXX. *Is the *py3X *version consistent with your own python version? Ex: If you have python 3.10, you should have a directory called: pychrono-X.0.0-py310_XXXX. If there is a version mismatch for question 4, you need to install the correct chrono package corresponding to your python version. Go to: https://anaconda.org/projectchrono/pychrono/files to find the relevant package name and use *conda install* *<pychrono_package>.tar.bz2 *to install the package. Also, make sure you have all the requirements listed in https://api.projectchrono.org/pychrono_installation.html properly installed. Hope these steps fix your problem. Please let me know if this doesn't work, so we can further look into it. Best, Nevindu On Monday, February 13, 2023 at 3:46:38 PM UTC-6 Jeremy Kimball wrote: Hello everyone, I am relatively new to python programming and am just getting started with PyChrono for my masters thesis research, specifically I am interested in the sensor module. I have installed pychrono according to the steps outlined at: https://api.projectchrono.org/pychrono_installation.html. All of the demos other than the sensor ones run on my machine, however, when I attempt to run any of the sensor demos I get an import error: ImportError: cannot import name '_sensor' from 'pychrono'. I have Nvidia graphics driver version 528.02 and my machine has an Nvidia GeForce MX250 GPU. All of the packages in my venv seem to align with the required versions as per chrono documentation. I would also like to mention that I have only had success running the other demos when either 1) in VSCode I paste all of the .dll chrono files into the active folder or 2) when I run the demo scripts directly from the anaconda prompt. I am hopeful that there is a simple fix here that I am overlooking or that other users have encountered the same issue and found a solution. Any help would be greatly appreciated. Thanks, Jeremy -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/07475c16-26a5-40e3-b563-c30b74d36c29n%40googlegroups.com.
(chrono) C:\Users\jkimball>conda list # packages in environment at C:\Users\jkimball\Anaconda3\envs\chrono: # # Name Version Build Channel bzip2 1.0.8 vc14h53ad9d4_9 [vc14] intel ca-certificates 2022.12.7 h5b45459_0 conda-forge certifi 2022.12.7 pyhd8ed1ab_0 conda-forge cuda-cccl 11.7.58 0 nvidia/label/cuda-11.7.0 cuda-command-line-tools 11.7.0 0 nvidia/label/cuda-11.7.0 cuda-compiler 11.7.0 0 nvidia/label/cuda-11.7.0 cuda-cudart 11.7.60 0 nvidia/label/cuda-11.7.0 cuda-cudart-dev 11.7.60 0 nvidia/label/cuda-11.7.0 cuda-cuobjdump 11.7.50 0 nvidia/label/cuda-11.7.0 cuda-cupti 11.7.50 0 nvidia/label/cuda-11.7.0 cuda-cuxxfilt 11.7.50 0 nvidia/label/cuda-11.7.0 cuda-documentation 11.7.50 0 nvidia/label/cuda-11.7.0 cuda-libraries 11.7.0 0 nvidia/label/cuda-11.7.0 cuda-libraries-dev 11.7.0 0 nvidia/label/cuda-11.7.0 cuda-memcheck 11.7.50 0 nvidia/label/cuda-11.7.0 cuda-nsight-compute 11.7.0 0 nvidia/label/cuda-11.7.0 cuda-nvcc 11.7.64 0 nvidia/label/cuda-11.7.0 cuda-nvdisasm 11.7.50 0 nvidia/label/cuda-11.7.0 cuda-nvml-dev 11.7.50 0 nvidia/label/cuda-11.7.0 cuda-nvprof 11.7.50 0 nvidia/label/cuda-11.7.0 cuda-nvprune 11.7.50 0 nvidia/label/cuda-11.7.0 cuda-nvrtc 11.7.50 0 nvidia/label/cuda-11.7.0 cuda-nvrtc-dev 11.7.50 0 nvidia/label/cuda-11.7.0 cuda-nvtx 11.7.50 0 nvidia/label/cuda-11.7.0 cuda-nvvp 11.7.50 0 nvidia/label/cuda-11.7.0 cuda-sanitizer-api 11.7.50 0 nvidia/label/cuda-11.7.0 cuda-toolkit 11.7.0 0 nvidia/label/cuda-11.7.0 cuda-tools 11.7.0 0 nvidia/label/cuda-11.7.0 cuda-visual-tools 11.7.0 0 nvidia/label/cuda-11.7.0 fontconfig 2.13.1 hdcb13c4_1002 conda-forge freetype 2.10.2 vc14he233217_1 [vc14] intel glfw 3.3.8 h8ffe710_0 conda-forge icu 67.1 h33f27b4_0 conda-forge intel-openmp 2023.0.0 h57928b3_25922 conda-forge intelpython 2023.0.0 1 intel irrlicht 1.8.5 h739eaf8_2 conda-forge jpeg 9e h8ffe710_2 conda-forge libblas 3.9.0 8_mkl conda-forge libcblas 3.9.0 8_mkl conda-forge libcublas 11.10.1.25 0 nvidia/label/cuda-11.7.0 libcublas-dev 11.10.1.25 0 nvidia/label/cuda-11.7.0 libcufft 10.7.2.50 0 nvidia/label/cuda-11.7.0 libcufft-dev 10.7.2.50 0 nvidia/label/cuda-11.7.0 libcurand 10.2.10.50 0 nvidia/label/cuda-11.7.0 libcurand-dev 10.2.10.50 0 nvidia/label/cuda-11.7.0 libcusolver 11.3.5.50 0 nvidia/label/cuda-11.7.0 libcusolver-dev 11.3.5.50 0 nvidia/label/cuda-11.7.0 libcusparse 11.7.3.50 0 nvidia/label/cuda-11.7.0 libcusparse-dev 11.7.3.50 0 nvidia/label/cuda-11.7.0 libiconv 1.17 h8ffe710_0 conda-forge liblapack 3.9.0 8_mkl conda-forge libnpp 11.7.3.21 0 nvidia/label/cuda-11.7.0 libnpp-dev 11.7.3.21 0 nvidia/label/cuda-11.7.0 libnvjpeg 11.7.2.34 0 nvidia/label/cuda-11.7.0 libnvjpeg-dev 11.7.2.34 0 nvidia/label/cuda-11.7.0 libpng 1.6.37 vc14h53ad9d4_8 [vc14] intel libxml2 2.10.3 hc3477c8_0 conda-forge libzlib 1.2.13 hcfcfb64_4 conda-forge mkl 2020.4 hb70f87d_311 conda-forge nsight-compute 2022.2.0.13 0 nvidia/label/cuda-11.7.0 numpy 1.24.0 py39hbccbffa_0 conda-forge occt 7.4.0 h823b557_3 conda-forge openssl 1.1.1s hcfcfb64_1 conda-forge pip 22.2.2 py39haa95532_0 intel pychrono 8.0.0 py39_0 <unknown> python 3.9.15 he6a1c74_2 intel python_abi 3.9 2_cp39 conda-forge pythonocc-core 7.4.1 py39h3d1c7c5_0 conda-forge sdl 1.2.60 h63175ca_0 conda-forge sdl2 2.26.2 h63175ca_0 conda-forge setuptools 63.4.1 py39haa95532_0 intel six 1.16.0 pyh6c4a22f_0 conda-forge sqlite 3.40.0 h2bbff1b_0 intel tbb 2020.3 vc14_intel_311 [vc14] intel tk 8.6.12 h2bbff1b_0 intel ucrt 10.0.22621.0 h57928b3_0 conda-forge vc 14.2 h21ff451_1 intel vs2015_runtime 14.34.31931 h4c5c07a_10 conda-forge wheel 0.37.1 pyhd3eb1b0_0 intel wincertstore 0.2 py39haa95532_2 intel xz 5.2.6 h8cc25b3_0 intel zlib 1.2.13 hcfcfb64_4 conda-forge
