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 Failures on OS X El Capitan #111

Open
smallnamespace opened this issue Dec 13, 2015 · 6 comments
Open

Test Failures on OS X El Capitan #111

smallnamespace opened this issue Dec 13, 2015 · 6 comments

Comments

@smallnamespace
Copy link
Contributor

Here are the errors I'm seeing:

======================================================================
ERROR: test_option_quotes (quantlib.test.test_notebooks.NoteBooksTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jianliu/git_projects/lendingclub-explore/src/pyql/quantlib/test/test_notebooks.py", line 162, in test_option_quotes
    option_data_frame = pandas.core.common.load(
AttributeError: module 'pandas.core.common' has no attribute 'load'

======================================================================
ERROR: test_at (quantlib.test.test_schedule.ScheduleMethodTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jianliu/git_projects/lendingclub-explore/src/pyql/quantlib/test/test_schedule.py", line 49, in setUp
    self.convention, self.termination_convention, self.rule
  File "quantlib/time/schedule.pyx", line 49, in quantlib.time.schedule.Schedule.__init__ (quantlib/time/schedule.cpp:1742)
    self._thisptr = new _schedule.Schedule(
RuntimeError: undecidable comparison between 4W and 1M
======================================================================
ERROR: test_dates (quantlib.test.test_schedule.ScheduleMethodTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jianliu/git_projects/lendingclub-explore/src/pyql/quantlib/test/test_schedule.py", line 49, in setUp
    self.convention, self.termination_convention, self.rule
  File "quantlib/time/schedule.pyx", line 49, in quantlib.time.schedule.Schedule.__init__ (quantlib/time/schedule.cpp:1742)
    self._thisptr = new _schedule.Schedule(
RuntimeError: undecidable comparison between 4W and 1M

======================================================================
ERROR: test_iter_dates (quantlib.test.test_schedule.ScheduleMethodTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jianliu/git_projects/lendingclub-explore/src/pyql/quantlib/test/test_schedule.py", line 49, in setUp
    self.convention, self.termination_convention, self.rule
  File "quantlib/time/schedule.pyx", line 49, in quantlib.time.schedule.Schedule.__init__ (quantlib/time/schedule.cpp:1742)
    self._thisptr = new _schedule.Schedule(
RuntimeError: undecidable comparison between 4W and 1M

======================================================================
ERROR: test_previous_next_reference_date (quantlib.test.test_schedule.ScheduleMethodTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jianliu/git_projects/lendingclub-explore/src/pyql/quantlib/test/test_schedule.py", line 49, in setUp
    self.convention, self.termination_convention, self.rule
  File "quantlib/time/schedule.pyx", line 49, in quantlib.time.schedule.Schedule.__init__ (quantlib/time/schedule.cpp:1742)
    self._thisptr = new _schedule.Schedule(
RuntimeError: undecidable comparison between 4W and 1M

======================================================================
ERROR: test_size (quantlib.test.test_schedule.ScheduleMethodTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jianliu/git_projects/lendingclub-explore/src/pyql/quantlib/test/test_schedule.py", line 49, in setUp
    self.convention, self.termination_convention, self.rule
  File "quantlib/time/schedule.pyx", line 49, in quantlib.time.schedule.Schedule.__init__ (quantlib/time/schedule.cpp:1742)
    self._thisptr = new _schedule.Schedule(
RuntimeError: undecidable comparison between 4W and 1M

----------------------------------------------------------------------

The pandas issue seems to be because pandas.core.common.load was deprecated or removed by some point (I'm running pandas=0.17).

As for quantlib, I'm using a fresh build against quantlib HEAD as of today. Everything is compiled using clang against libstdc++ on El Capitan.

I built PyQL using the following:

  1. pip install -e git+https://github.com/enthought/pyql.git#egg=pyql
  2. Edit setup.py to point to right paths -- I'm building against Boost 1.59.0 source
  3. make clean && make build && make tests
@smallnamespace smallnamespace changed the title Test Failures on OS X Test Failures on OS X El Capitan Dec 13, 2015
@dpinte
Copy link
Member

dpinte commented Dec 13, 2015

What version of QL do you use? I suspect that is the issue with the RuntimeError.

@smallnamespace
Copy link
Contributor Author

As for quantlib, I'm using a fresh build against quantlib HEAD as of today

Is HEAD not supported?

@dpinte
Copy link
Member

dpinte commented Dec 14, 2015

@smallnamespace it seems it's not ;-) QL 1.4 without a doubt. I think that is what we use on Travis-CI. PR's are welcome to update to the latest releases. Looking at the errors, it should not be a big deal.

@smallnamespace
Copy link
Contributor Author

@dpinte OK, thanks for clarifying. I might look into fixing the tests at some point -- right now am just getting started with using PyQL.

By the way, it might be worthwhile to update the docs, as they currently clearly state that more recent versions are supported. Noting the last well-tested dependency versions might be helpful to future users.

@dpinte
Copy link
Member

dpinte commented Dec 14, 2015

@smallnamespace agreed. Will try to do it asap. There is a bit of cleanup that needs to be done on the doc, requirements, etc.

@smallnamespace
Copy link
Contributor Author

@dpinte
The errors in the schedule test seem genuine, filed with upstream at lballabio/QuantLib#28

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