I complied QuantLib in Visual Studio 2017 and built the library under Release x64. Then I installed QuantLib Swig according to the instruction here: https://www.quantlib.org/install/windows-python.shtml
The directories in VS are set as in the screenshot:
Then I tested a plain vanilla European option using QuantLib which ran without error:
option = EuropeanOption(PlainVanillaPayoff(Option.Call,100),EuropeanExercise(Date(11,5,2021)))
However I cannot check the variable option
in the IDE (I use Spyder) and saw error:
Spyder was unable to retrieve the value of this variable from the console.
The error message was:
cannot pickle 'SwigPyObject' object
I see the value of this variable is EuropeanOption object of QuantLib.QuantLib module
.
Version:
Python: 3.8
Quantlib: 1.19
QuantLib-SWIG: 1.19
boost: 1_74_0
Spyder: 4.1.4
Would very much appreciate any help.