|
From: Tian, P. <Pen...@ex...> - 2018-07-25 16:42:50
|
Hi, I build the release of QuantLib and QuantLib-Swig and install the later with Anaconda Prompt following the instructions in http://www.cs.utah.edu/~cxiong/Files/Misc/QuantLib_Python.html Then I clone the Anaconda and send to another clean PC to use. When I use it there, I got the following error. Any comments are welcomed! Thanks. Peng Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)] Type 'copyright', 'credits' or 'license' for more information IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: import QuantLib --------------------------------------------------------------------------- ImportError Traceback (most recent call last) ~\dev\release_20180723\release_20180720\pyxll-3.5.3-x64-py36\qm_conda\lib\site-packages\quantlib_python-1.13-py3.6-win-amd64.egg\QuantLib\QuantLib.py in swig_import_helper() 13 try: ---> 14 return importlib.import_module(mname) 15 except ImportError: ~\dev\release_20180723\release_20180720\pyxll-3.5.3-x64-py36\qm_conda\lib\importlib\__init__.py in import_module(name, package) 125 level += 1 --> 126 return _bootstrap._gcd_import(name[level:], package, level) 127 ~\dev\release_20180723\release_20180720\pyxll-3.5.3-x64-py36\qm_conda\lib\importlib\_bootstrap.py in _gcd_import(name, package, level) ~\dev\release_20180723\release_20180720\pyxll-3.5.3-x64-py36\qm_conda\lib\importlib\_bootstrap.py in _find_and_load(name, import_) ~\dev\release_20180723\release_20180720\pyxll-3.5.3-x64-py36\qm_conda\lib\importlib\_bootstrap.py in _find_and_load_unlocked(name, import_) ~\dev\release_20180723\release_20180720\pyxll-3.5.3-x64-py36\qm_conda\lib\importlib\_bootstrap.py in _load_unlocked(spec) ~\dev\release_20180723\release_20180720\pyxll-3.5.3-x64-py36\qm_conda\lib\importlib\_bootstrap.py in module_from_spec(spec) ~\dev\release_20180723\release_20180720\pyxll-3.5.3-x64-py36\qm_conda\lib\importlib\_bootstrap_external.py in create_module(self, spec) ~\dev\release_20180723\release_20180720\pyxll-3.5.3-x64-py36\qm_conda\lib\importlib\_bootstrap.py in _call_with_frames_removed(f, *args, **kwds) ImportError: DLL load failed: The specified module could not be found. During handling of the above exception, another exception occurred: ModuleNotFoundError Traceback (most recent call last) <ipython-input-1-54b4e8ad6d7f> in <module>() ----> 1 import QuantLib ~\dev\release_20180723\release_20180720\pyxll-3.5.3-x64-py36\qm_conda\lib\site-packages\quantlib_python-1.13-py3.6-win-amd64.egg\QuantLib\__init__.py in <module>() 19 import sys 20 if sys.version_info.major >= 3: ---> 21 from .QuantLib import * 22 from .QuantLib import _QuantLib 23 else: ~\dev\release_20180723\release_20180720\pyxll-3.5.3-x64-py36\qm_conda\lib\site-packages\quantlib_python-1.13-py3.6-win-amd64.egg\QuantLib\QuantLib.py in <module>() 15 except ImportError: 16 return importlib.import_module('_QuantLib') ---> 17 _QuantLib = swig_import_helper() 18 del swig_import_helper 19 elif _swig_python_version_info >= (2, 6, 0): ~\dev\release_20180723\release_20180720\pyxll-3.5.3-x64-py36\qm_conda\lib\site-packages\quantlib_python-1.13-py3.6-win-amd64.egg\QuantLib\QuantLib.py in swig_import_helper() 14 return importlib.import_module(mname) 15 except ImportError: ---> 16 return importlib.import_module('_QuantLib') 17 _QuantLib = swig_import_helper() 18 del swig_import_helper ~\dev\release_20180723\release_20180720\pyxll-3.5.3-x64-py36\qm_conda\lib\importlib\__init__.py in import_module(name, package) 124 break 125 level += 1 --> 126 return _bootstrap._gcd_import(name[level:], package, level) 127 128 ModuleNotFoundError: No module named '_QuantLib' The information contained in this message and its attachments is intended only for the private and confidential use of the intended recipient(s). If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly prohibited. By accepting and retaining this email, you agree not to disseminate it in any form to any person and not to alter it in any way. Thank you. |