binary package for quantlib-swig appears to be out-of-sync with libquantlib in "14.04.3 LTS"(amd64, i386)
Rebuild from source fixes it.
novitk@novitk:~$ python
Python 2.7.6 (default, Jun 22 2015, 18:00:18)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import QuantLib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/QuantLib/__init__.py", line 19, in <module>
from QuantLib import *
File "/usr/lib/python2.7/dist-packages/QuantLib/QuantLib.py", line 26, in <module>
_QuantLib = swig_import_helper()
File "/usr/lib/python2.7/dist-packages/QuantLib/QuantLib.py", line 22, in swig_import_helper
_mod = imp.load_module('_QuantLib', fp, pathname, description)
ImportError: /usr/lib/python2.7/dist-packages/QuantLib/_QuantLib.so: undefined symbol: _ZThn56_N8QuantLib19CappedFlooredCoupon6updateEv
binary package for quantlib-swig appears to be out-of-sync with libquantlib in "14.04.3 LTS"(amd64, i386)
Rebuild from source fixes it.
novitk@novitk:~$ python python2. 7/dist- packages/ QuantLib/ __init_ _.py", line 19, in <module> python2. 7/dist- packages/ QuantLib/ QuantLib. py", line 26, in <module> helper( ) python2. 7/dist- packages/ QuantLib/ QuantLib. py", line 22, in swig_import_helper module( '_QuantLib' , fp, pathname, description) python2. 7/dist- packages/ QuantLib/ _QuantLib. so: undefined symbol: _ZThn56_ N8QuantLib19Cap pedFlooredCoupo n6updateEv
Python 2.7.6 (default, Jun 22 2015, 18:00:18)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import QuantLib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
from QuantLib import *
File "/usr/lib/
_QuantLib = swig_import_
File "/usr/lib/
_mod = imp.load_
ImportError: /usr/lib/
ProblemType: Bug ature: Ubuntu 3.19.0- 26.28~14. 04.1-generic 3.19.8-ckt4
DistroRelease: Ubuntu 14.04
Package: quantlib-python 1.3-2
ProcVersionSign
Uname: Linux 3.19.0-26-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.12
Architecture: amd64
CurrentDesktop: LXDE
Date: Fri Sep 11 18:48:57 2015
InstallationDate: Installed on 2015-09-05 (6 days ago)
InstallationMedia: Lubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
SourcePackage: quantlib-swig
UpgradeStatus: No upgrade log present (probably fresh install)