I have been using Anaconda Spyder to run Openturns with Pymc and Aesara. However, I cannot use Anaconda any longer. As an alternative, I have installed Miniforge and I have installed in an environment Spyder and a few packages using,
However, I get the following message when I try to import Openturns,
import openturns as ot
Traceback (most recent call last):
Cell In[1], line 1
import openturns as ot
File ~\AppData\Local\miniforge3\envs\ot-pymc-env\lib\site-packages\openturns\__init__.py:49
from .common import
File ~\AppData\Local\miniforge3\envs\ot-pymc-env\lib\site-packages\openturns\common.py:12
from . import _common
ImportError: DLL load failed while importing _common:
The specified procedure could not be found.
This error does not happen when I install Openturns without Pymc and Aesara. It did not happen either when I was using Anaconda. I have read somewhere that there was some sort of incompatibility in the past between Openturns and Theano (former Aesara).
Thanks for using OpenTURNS! I am not familiar with the packages pymc and aesara or their respective requirements. Have you simply tried installing the packages in your new environment one by one instead of all at once? This might simplify the requirements optimization done by conda and possibly solve some conflicts.
Thank you for your prompt response. I have tried several ways to install it. To prevent conflicts, I have installed Spyder and all the packages at once making sure that everything came from the same channel.
Thanks for the report @Toni. As a workaround, maybe you could install OpenTURNS in your conda environment using pip? That worked for the user at the origin of my bug report in the OpenTURNS bug tracker.
Depending on your usage, another temporary workaround could be to work on a Google Colab notebook (https://colab.research.google.com/). You can easily install your packages by using the following command in a cell:
Hi!
Thank you so much for posting this message! I have this issue since OT1.20 and I was not able to solve it. I though it was related to Spyder, but it isn’t.
I do not know if you have seen the message of @jschuller on 2360. According to him, "this is due to a conflict with numpy (and scipy) mingw runtime". This is not related to Spyder. A workaround is:
$ pip install numpy --force-reinstall --no-deps
I checked it just now: it works fine!
Regards,
Michaël
PS
Actually, I used: