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
Unclear error message with ConstantInferenceError #3717
Labels
Comments
stuartarchibald
added a commit
to stuartarchibald/numba
that referenced
this issue
Jan 29, 2019
As title. Also adds PEP8 compliance to numba/const.py. Fixes numba#3453 Closes numba#3717
Thanks for the report. I'm glad you've found Numba useful. The problem you have encountered is known #3453 and you re-reporting it prompted me to fix it in #3718. With this patch your code now does this:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have following code:
Now I know that there is problem with that exception. I can use only constants for Exception constructor. I had very long njit-ed method with multiple exceptions code paths and following error was not helping me to localize the source of problem:
Unfortunately there is no information about the line of source code which caused this error. Would it be possible to encapsulate also line content or just line number into exception raised? Could you navigate me into Numba's source code, maybe I can fix this and create pull request.
Expected output:
I'm novice, I was playing with Numba just last 2 days and I thank you a lot for this tool. I don't have to write parts of code in plain C. But this lack of helpful error message issue destroyed happy end of my last evening.
The text was updated successfully, but these errors were encountered: