De : Julien Schueller | Phimeca
Envoyé : lundi 31 juillet 2017 16:44
À : Phil Fernandes
Objet : RE: OpenTurns inquiry & bug report
 

Hi Phil,


1. See Regis' answer

2. It seems the theano package from the defaults anaconda channel pull mingw dependencies which probably conflict with our own newer provided runtime ; a workaround is to install everything from conda-forge.

This should work: "conda install openturns theano pymc3 -c conda-forge" 


j


De : Phil Fernandes <[email protected]>
Envoyé : jeudi 20 juillet 2017 19:01:30
À : Julien Schueller | Phimeca
Objet : OpenTurns inquiry & bug report
 

Hello Julien,

 

I am an engineer with Enbridge Pipelines and we have recently begun using OpenTurns for reliability analysis of our infrastructure. So far I am finding it to be an excellent and very comprehensive software library – thank you for helping develop it.

 

Unfortunately I have run into a couple of issues when using OpenTurns, and haven’t been able to find solutions:

1.       Is there a way of mirroring skewed distributions, for example flipping a Weibull distribution so that instead of a lower limit it has an upper limit?

2.       There is a conflict between the Python library PyMC3 and OpenTurns. If PyMC3 is imported first, OpenTurns fails to import with the following error

Traceback (most recent call last):

 

  File "<ipython-input-3-704e69d30dff>", line 1, in <module>

    import openturns as ot

 

  File "C:\Anaconda3\lib\site-packages\openturns\__init__.py", line 61, in <module>

    from .common import *

 

  File "C:\Anaconda3\lib\site-packages\openturns\common.py", line 20, in <module>

    _common = swig_import_helper()

 

  File "C:\Anaconda3\lib\site-packages\openturns\common.py", line 19, in swig_import_helper

    return importlib.import_module('_common')

 

  File "C:\Anaconda3\lib\importlib\__init__.py", line 126, in import_module

    return _bootstrap._gcd_import(name[level:], package, level)

 

ModuleNotFoundError: No module named '_common'

 

If I reverse the import order (i.e., OpenTurns first, then PyMC3), then PymC3 fails to import with

                                Traceback (most recent call last):

 

  File "<ipython-input-2-e9f7838173a6>", line 5, in <module>

    import pymc3 as pm

 

  File "C:\Anaconda3\lib\site-packages\pymc3\__init__.py", line 5, in <module>

    from .distributions import *

 

  File "C:\Anaconda3\lib\site-packages\pymc3\distributions\__init__.py", line 1, in <module>

    from . import timeseries

 

  File "C:\Anaconda3\lib\site-packages\pymc3\distributions\timeseries.py", line 1, in <module>

    import theano.tensor as tt

 

  File "C:\Anaconda3\lib\site-packages\theano\__init__.py", line 80, in <module>

    from theano.scan_module import (scan, map, reduce, foldl, foldr, clone,

 

  File "C:\Anaconda3\lib\site-packages\theano\scan_module\__init__.py", line 41, in <module>

    from theano.scan_module import scan_opt

 

  File "C:\Anaconda3\lib\site-packages\theano\scan_module\scan_opt.py", line 60, in <module>

    from theano import tensor, scalar

 

  File "C:\Anaconda3\lib\site-packages\theano\tensor\__init__.py", line 9, in <module>

    from theano.tensor.subtensor import *

 

  File "C:\Anaconda3\lib\site-packages\theano\tensor\subtensor.py", line 26, in <module>

    import theano.gof.cutils  # needed to import cutils_ext

 

  File "C:\Anaconda3\lib\site-packages\theano\gof\cutils.py", line 320, in <module>

    compile_cutils()

 

  File "C:\Anaconda3\lib\site-packages\theano\gof\cutils.py", line 285, in compile_cutils

    preargs=args)

 

  File "C:\Anaconda3\lib\site-packages\theano\gof\cmodule.py", line 2325, in compile_str

    return dlimport(lib_filename)

 

  File "C:\Anaconda3\lib\site-packages\theano\gof\cmodule.py", line 302, in dlimport

    rval = __import__(module_name, {}, {}, [module_name])

 

ImportError: DLL load failed: The specified procedure could not be found.

 

Your help would be very much appreciated.

Thank you.

 

Regards,

 

Phil Fernandes   P.Eng, MASc
Engineer, Reliability Assessment


ENBRIDGE PIPELINES INC.
TEL: 780-420-8210  |  FAX: 780-420-5234   
7045 Enbridge Centre, 10175 101 Street NW, Edmonton, AB, T5J 0H3


www.enbridge.com
Integrity. Safety. Respect.

 

_______________________________________________
OpenTURNS users mailing list
[email protected]
http://openturns.org/mailman/listinfo/users

Reply via email to