-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
When installing OpenTURNS 1.24 against otmixmod using pip, the module does not load.
Consider the following setup.
$ mamba create --name testot124mixmod
$ mamba activate testot124mixmod
$ mamba install pip
$ pip3 install openturns==1.24 otmixmodThis prints:
(testot124mixmod) C:\Users\username>pip3 install openturns==1.24 otmixmod
Collecting openturns==1.24
Downloading openturns-1.24-cp39-abi3-win_amd64.whl.metadata (1.0 kB)
Collecting otmixmod
Using cached otmixmod-0.19-cp39-abi3-win_amd64.whl.metadata (649 bytes)
Collecting dill (from openturns==1.24)
Downloading dill-0.4.0-py3-none-any.whl.metadata (10 kB)
Requirement already satisfied: psutil in c:\users\username\appdata\local\miniforge3\envs\testot124mixmod\lib\site-packages (from openturns==1.24) (7.0.0)
Downloading openturns-1.24-cp39-abi3-win_amd64.whl (57.9 MB)
---------------------------------------- 57.9/57.9 MB 716.4 kB/s eta 0:00:00
Using cached otmixmod-0.19-cp39-abi3-win_amd64.whl (562 kB)
Downloading dill-0.4.0-py3-none-any.whl (119 kB)
Installing collected packages: dill, openturns, otmixmod
Successfully installed dill-0.4.0 openturns-1.24 otmixmod-0.19
Then execute the following Python script:
import openturns as ot
import otmixmodproduces:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[3], [line 29](vscode-notebook-cell:?execution_count=3&line=29)
27 # %%
28 import openturns as ot
---> [29](vscode-notebook-cell:?execution_count=3&line=29) import otmixmod
File c:\Users\username\AppData\Local\miniforge3\envs\testot124mixmod\Lib\site-packages\otmixmod\__init__.py:17
12 # flake8: noqa
13
14 # ensures swig type tables order & dll load
15 import openturns as _ot
---> [17](file:///C:/Users/username/AppData/Local/miniforge3/envs/testot124mixmod/Lib/site-packages/otmixmod/__init__.py:17) from .otmixmod import *
19 __version__ = '0.19'
File c:\Users\c61372\AppData\Local\miniforge3\envs\testot124mixmod\Lib\site-packages\otmixmod\otmixmod.py:12
10 # Import the low-level C/C++ module
11 if __package__ or "." in __name__:
---> [12](file:///C:/Users/username/AppData/Local/miniforge3/envs/testot124mixmod/Lib/site-packages/otmixmod/otmixmod.py:12) from . import _otmixmod
13 else:
14 import _otmixmod
ImportError: DLL load failed while importing _otmixmod: Le module spécifié est introuvableThis is a test on Windows.
Metadata
Metadata
Assignees
Labels
No labels