Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_cds error #159

Closed
phenaff opened this issue Aug 25, 2016 · 2 comments
Closed

test_cds error #159

phenaff opened this issue Aug 25, 2016 · 2 comments

Comments

@phenaff
Copy link
Contributor

phenaff commented Aug 25, 2016

This may be stale code... module enum no longer exists.
Python 2.7.3 / QuanLib 1.8 / Cython 0.24.1

ERROR: quantlib.test.test_cds (unittest.loader.ModuleImportFailure)

ImportError: Failed to import test module: quantlib.test.test_cds
Traceback (most recent call last):
File "/usr/lib/python2.7/unittest/loader.py", line 252, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
import(name)
File "/home/phn/dev/pyql/quantlib/test/test_cds.py", line 8, in
from quantlib.termstructures.credit.api import (
File "/home/phn/dev/pyql/quantlib/termstructures/credit/api.py", line 2, in
from .piecewise_default_curve import PiecewiseDefaultCurve, ProbabilityTrait, Interpolator
File "quantlib/termstructures/credit/piecewise_default_curve.pyx", line 21, in init quantlib.termstructures.credit.piecewise_default_curve (quantlib/termstructures/credit/piecewise_default_curve.cpp:6351)
from enum import IntEnum
ImportError: No module named enum

@thrasibule
Copy link
Collaborator

Do you have enum34 installed? It should work fine with it. I have added it to requirements.txt as well, so pip should pull it as a dependency.

@phenaff
Copy link
Contributor Author

phenaff commented Aug 28, 2016

My bad, thanks for the info, all is well (QuantLib 1.8 / Cython 0.24.1)

@phenaff phenaff closed this as completed Aug 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants