-
Notifications
You must be signed in to change notification settings - Fork 2
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
Extend support to Python 3.11 #258
Conversation
Thanks to new Numba release https://github.com/numba/numba/releases/tag/0.57.0
c309a03 is failing on py3.8 and py3.10, but not on py3.9... There is some non-deterministic bug coming with some of the upgraded deps... |
There seems to be two different type of errors around:
this might be related to #241
@alecandido this looks like numpy has changed something |
On top there is a new numba issue inside OME appearing (sounds like something is not an array, but it should be ...) |
Maybe it's because A is defined only inside |
I believe you're correct - the solution has been 49f2078 PS: I guess another hint we should move away from numba ... |
The other problem is that some of the updated deps is now causing issues with typing in py3.8... Since it is limited to "new dep + py3.8", I'd be really tempted to say: well, let's drop py3.8. However, that is definitely not an option, it is still incredibly popular (see "Python Minor" download plots for NumPy and all packages on PyPI). EDIT: in particular, the offending dependency is NumPy, not Numba, so this is a separate problem that has to be solved anyhow |
Okay, problem 1 is solved: this was due to float numerics, i.e. |
Just for curiosity where did you see it? https://numpy.org/doc/stable/reference/generated/numpy.log.html |
I deduced from here https://github.com/NNPDF/eko/actions/runs/4936234492/jobs/8823523488#step:11:124 (where a |
I see then the definition in the documentation is not fully accurate 😬 |
I believe the definition to be accurate enough, simply is defined something different of what you think: they are defining the However, the |
The remaining issue arises from
However, since However, the weird behavior is first an issue in py3.8, for which I do not understand why |
My change is minimal (just sorting differently some conditions that were already present), and seems like it is doing its job. Even @felixhekhorn changes are minimal, and perfectly reasonable (I would approve them with the tick, but I'm the author of the PR). Let's wait for the CI, and if @giacomomagni approves them as well I would merge immediately. Btw, I just stepped into py3.11 on my system and I'd like to be able to run EKO :P |
Thanks @giacomomagni I'm just waiting a little more to give @felixhekhorn the chance to have a final look. I will merge today in any case. |
Thanks to new Numba release https://github.com/numba/numba/releases/tag/0.57.0