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

Issue with numba=0.43.1 with scalar maximisation #495

Closed
mmcky opened this issue Jul 12, 2019 · 4 comments
Closed

Issue with numba=0.43.1 with scalar maximisation #495

mmcky opened this issue Jul 12, 2019 · 4 comments
Labels

Comments

@mmcky
Copy link
Contributor

mmcky commented Jul 12, 2019

It appears that scalar_maximisation.py fails in nopython mode for numba=0.43.1 which is the current version of numba in anaconda.

travis-ci installs via pip which is using 0.44 which doesn't seem to have this issue during the ci test.

Should we just wait for anaconda to update numba?

@mmcky
Copy link
Contributor Author

mmcky commented Jul 12, 2019

numba.errors.LoweringError: Failed in nopython mode pipeline (step: nopython mode backend)
'NoneType' object has no attribute 'groups'

File "../../../../../../../../anaconda3/lib/python3.7/site-packages/quantecon/optimize/scalar_maximization.py", line 50:
    ... def f(x):
        <source elided>
    if not np.isfinite(a):
        raise ValueError("a must be finite.")
        ^

[1] During: lowering "raise <class 'ValueError'>('a must be finite.')" at /home/qebuild/anaconda3/lib/python3.7/site-packages/quantecon/optimize/scalar_maximization.py (50)
[2] During: resolving callee type: type(CPUDispatcher(<function brent_max at 0x7ff85282ce18>))
[3] During: typing of call at <ipython-input-5-3f7c7f7b0dfc> (30)

@mmcky mmcky added the bug label Jul 12, 2019
@mmcky
Copy link
Contributor Author

mmcky commented Jul 12, 2019

This does also raise the question - perhaps we should swap travis over to using conda just so the two are aligned?

@mmcky
Copy link
Contributor Author

mmcky commented Nov 4, 2019

this is no longer an issue in anaconda as the latest release has 0.45.1.

@mmcky
Copy link
Contributor Author

mmcky commented Nov 4, 2019

closing this as travis is documented here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant