Errors when importing pychrono.pardisomkl and pychrono.cascade (pychrono-5.0.1-py38_929)

413 views
Skip to first unread message

luis medina

unread,
Jan 29, 2021, 8:01:33 AM1/29/21
to ProjectChrono

Hi everybody,

 

I have updated PyChrono to the latest- I guess it is- version, i.e. pychrono-5.0.1-py38_929), using Anaconda. When I run some  demos, to check if everything is OK, I got the following error messages:

 

For instance, when running demo_FEA_beams the error message related with “import pychrono.pardisomkl as mkl” is:

 

ModuleNotFoundError: No module named 'pychrono.pardisomkl'

 

When running demo_CAS_cascade the error message that seems to be related with “

import pychrono.cascade as cascade” is:

 

  File "C:\Users\....\Anaconda3\envs\myenv\lib\site-packages\pychrono\cascade.py", line 13, in <module>

    from . import _cascade

 

ImportError: DLL load failed while importing _cascade

 

I have removed and reinstalled the same PyChrono version, but still I got the same errors. Any suggestions to solve this? Thanks in advance.



Luis

SIMONE BENATTI

unread,
Feb 25, 2021, 12:14:03 PM2/25/21
to ProjectChrono
Hi Luis,
 - MKL: there was an error after mkl renaming (an old building script that kept MKL instead of PARDISO_MKL. The newer develop packages will fix this.
- Cascade: have you installed PytohnOCC? If not, in the environment where you have PyChrono run:

   conda install -c pythonocc pythonocc-core

Simone

luis medina

unread,
Feb 25, 2021, 5:27:45 PM2/25/21
to SIMONE BENATTI, ProjectChrono

Hi Simone,

Once again, thanks for your help. Look, What I did:

a.       I uninstalled Anaconda and reinstalled the available latest version for Windows (Anaconda3-2020.11-Windows-x86_64).


b.      I reinstalled the latest 'develop' PyChrono (pychrono-6.0.0-py38_17). Then, when running demo_CAS_cascade.py I got the same error I mentioned in my previous email.


c.  Following your suggestion, I tried to install PytohnOCC from my PyChrono environment by running: conda install -c pythonocc pythonocc-core

Then I got the message I copied below, that seems to report a Python version issue . Does PythonOCC require a previous python version than the 3.8 version one that I am using? If so, when I am trying to reinstall a previous python version in my environment this produces an error since this PyChrono version requires at least 3.8 Python version.

Any additional help will be appreciated. Thanks in advance,

 

Regards,

Luis


image.png



--
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/4d4f192b-0e64-4135-b1c7-50235fd3926bo%40googlegroups.com.

SIMONE BENATTI

unread,
Feb 26, 2021, 2:35:58 AM2/26/21
to ProjectChrono
Hi Luis,
glad to help! :-)

The channel I mentioned only supports Python 3.6 and 3.7 There are 2 solution:
  1. Use the conda-forge package (I never tried it, but it would be the fastest solution if it worked). Type:

    conda install -c conda-forge pythonocc-core

  2. Create a new Conda environment specifying Python 3.7 verison (see conda documentation), install Pychrono Develop and Python OCC:

    conda install -c dlr-sc pythonocc-core
I suggested a different conda channel before but this is the same we use when building the cascade module so they are guaranteed to work. 
Please report back even if it works fine, feedbacks are always welcome. Also, is mkl working fine?
Thanks,
Simone



luis medina

unread,
Feb 26, 2021, 9:01:45 AM2/26/21
to SIMONE BENATTI, ProjectChrono

Simone,

Wow, you ‘ve made my day!

I just tried the first solution you suggested, and it’s working. So far, demo_CAS_cascade, demo_FEA_beams and demo_FEA_beamsIGA are now running, meaning that the pychrono.pardisomkl issue has been solved too.

Thanks for your help; have a great weekend.

Regards,

Luis


--
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.

Andrew Albright

unread,
Jul 1, 2021, 12:28:41 PM7/1/21
to ProjectChrono
Hi all,

I am running into this same error when running the demo_FEA_beams.py file. I have taken several approaches based on this feed and others. Most recently I created a new Anaconda environment and installed the following:

conda install -c projectchrono/label/develop pychrono
conda install -c dlr-sc pythonocc-core

I am still getting a DLL error however. See traceback below:

Traceback (most recent call last):
  File "c:/Users/andre/anaconda3/envs/PyChrono_Test/Lib/site-packages/pychrono/demos/fea/demo_FEA_beams.py", line 14, in <module>
    import pychrono.pardisomkl as mkl
  File "C:\Users\andre\anaconda3\envs\PyChrono_Test2\lib\site-packages\pychrono\pardisomkl.py", line 13, in <module>
    from . import _pardisomkl
ImportError: DLL load failed: The specified module could not be found.

Any help would be greatly appreciated!

-AA
Reply all
Reply to author
Forward
0 new messages