QuantLib Python installation on windows machine

classic Classic list List threaded Threaded
1 message Options
vj
Reply | Threaded
Open this post in threaded view
|

QuantLib Python installation on windows machine

vj

I am trying to install QuantLib Python in my windows machine using the instructions given in
http://quantlib.org/install/windows-python.shtml.
I did the following:

I downloaded QuantLib-1.10, SWIG and installed boost.

I built the QuantLib-1.10 in my windows 8 machine using Visual Studio 2017 comunity edition. Succefully produced QuantLib-vc141-x64-mt.lib.

Then I did the following in the command window.

cd C:\local\QuantLib-SWIG-1.9\Python
  set QL_DIR=C:\local\QuantLib-1.10
  set INCLUDE=C:\local\boost_1_64_0

and then
python setup.py build

It failed because it was looking for QuantLib-vc140-x64-mt.lib. I changed the name  QuantLib-vc141-x64-mt.lib to QuantLib-vc140-x64-mt.lib. It accepted it and built it.

Then I tried python setup.py test.

It failed giving error messages given below.

What am I doing wrong?
Can someone help me.
Thanks
Vijay

File "build\lib.win-amd64-3.6\QuantLib\QuantLib.py", line 18, in swig_import_h
elper
    return importlib.import_module(mname)
  File "C:\Users\vjkumar\Anaconda3\lib\importlib\__init__.py", line 126, in impo
rt_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 978, in _gcd_import
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load
  File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 648, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 560, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 922, in create_module
  File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 252, in <module>
    'build_ext': my_build_ext
  File "C:\Users\vjkumar\Anaconda3\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Users\vjkumar\Anaconda3\lib\distutils\dist.py", line 955, in run_comm
ands
    self.run_command(cmd)
  File "C:\Users\vjkumar\Anaconda3\lib\distutils\dist.py", line 974, in run_comm
and
    cmd_obj.run()
  File "setup.py", line 58, in run
    module = __import__('QuantLibTestSuite', globals(), locals(), [''])
  File "test\QuantLibTestSuite.py", line 22, in <module>
    from date import DateTest
  File "test\date.py", line 18, in <module>
    import QuantLib
  File "build\lib.win-amd64-3.6\QuantLib\__init__.py", line 21, in <module>
    from .QuantLib import *
  File "build\lib.win-amd64-3.6\QuantLib\QuantLib.py", line 21, in <module>
    _QuantLib = swig_import_helper()
  File "build\lib.win-amd64-3.6\QuantLib\QuantLib.py", line 20, in swig_import_h
elper
    return importlib.import_module('_QuantLib')
  File "C:\Users\vjkumar\Anaconda3\lib\importlib\__init__.py", line 126, in impo
rt_module
    return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_QuantLib'


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users