-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Python 3.9 wheel #11287
Comments
Thanks for the request. I think building python 3.9 wheels for future releases should be pretty uncontroversial. I'm not as sure about backporting the builds to older releases though. @barakmich @rkooo567 do you have any thoughts? |
Yeah I don't think we will push old wheels for python 3.9. (It is also probably not working because it might not be compatible to python 3.9. For example, we needed some work to push python 3.8 wheels). We can probably try build wheels for python 3.9 in the next release, but depending on how hard it is, it can take more time! |
I'm attempting to use the released pypi ray on travisci with 3.9 and travis says:
Am I doing it wrong? 3.9 was released October 5, that's nearly a month ago. I feel bad that I didn't try to mark my python packages as supporting 3.9 until now. Do I need to wait for some future release of ray that supports 3.9? |
Yeah we don't have an official wheel for 3.9 yet (in fact I haven't had the time to test Ray on 3.9 at all yet). Would you be interested in testing/contributing one? |
happy to test, with a clue I could probably build it. |
@wumpus I was just able to build Ray by adding (3, 9) to the supported version in I'm going to start running unit tests and posting results here. Let me know if you're able to help out still. I'll also post some additional results here in a bit. |
Sure, I'd love to help test. |
I made a PR to get started on this work. It's pretty naive as I just based it off the time we dropped Python 3.5 support, but have it in the CI should help make the debugging process open. Building works fine on my local machine. |
Thanks! Please let us know if you find the root cause of the segfaults! Also feel free to reach out if you have any questions. |
Is there a way for me to download and test your actual wheel? I tried testing by doing the install myself with Full output at |
Not sure. |
What version of numpy does it look like Ray is trying to install? I think Ray should only depend on |
The logfile I linked above says:
So it's installing |
Ok, it sounds like we'll have to add a new rule like For now, can you try to manually upgrade numpy yourself ( |
I'm using CI so I have to script the entire thing -- I can't figure out where in the ray repo where it is choosing numpy==1.16.0. |
Seems like more and more users are requesting this :) |
At this point we do have both linux and mac wheels building just fine, only waiting on windows support. |
Though to be clear, we haven't run unit tests against the wheels right? |
Doesn't the CI handle that? Or it runs the unit tests on the source and builds the wheels, but it doesn't run the unit tests after installing the built wheels from the CI runs? |
The CI only runs https://github.com/ray-project/ray/blob/b56db5a2/ci/travis/test-wheels.sh#L24 |
Ah so then how do we unit test the wheels before release then? Do you just download/install the wheels from the CI and run the unit tests on your local machine? If so do you want to give that a shot @wuisawesome ? |
Yeah, since we're going to need to call it experimental for now, I think it's sufficient to just manually test the wheels to have some degree of confidence that it is behaving the same on different python versions. |
@wuisawesome did you get a chance to test the wheels? |
I haven't had a chance to test your branch yet, though I just copied your PR into a ray-project/ray branch, so the CI will build some authentic wheels we can use. Edit: I haven't had a chance to play around with it yet, but here' the linux wheel: https://ray-wheels.s3-us-west-2.amazonaws.com/python3.9/a902f2e4ab0a9c27ece8562084aa3fc4be68eeb8/ray-1.2.0.dev0-cp39-cp39-manylinux2014_x86_64.whl |
Please forgive me if this is inappropriate to ask, as I am grateful for the effort folks have put into the Ray library, but is there a timeline for this? The lack of support by Ray for Python 3.9 is the only thing holding me back from upgrading to Python 3.9 at this point, and there is no good substitute for Ray as an improvement upon Python.Multiprocessing. |
Hi thanks a ton for all the efforts put in by the community for this awesome framework core and notably all the other components around it in the ecosystem. But by any chance do we know when would a compatible 3.9 wheel be built out. Eagerly awaited in our organization :) |
Yes, hopefully #15006 will let us turn on support for windows and linux first at least. |
Any update on this? |
Seconding this, having Python 3.9 wheel would be great. Major distributions are shipping Python 3.9 as their default Python version now (i.e. Ubuntu 21.04, Fedora 33/34). |
Yeah, I've been focusing most of my time on the 1.3 release, since that's been delayed. If someone can fix up #15006, that would be great, otherwise I'll try to work on it. |
@wuisawesome Understood. Getting Py3.9 wheels as part of the 1.3 release #15021 would be awesome. |
In case this is any help to others; We have just compiled ray from git master by merely adding 3,9 to SUPPORTED_PYTHONS in python/setup.py , we didn't include the CLI or dashboard. So far ray works for our (very simple) use cases - we only use ray.init() one one machine and @ray.remote Maybe it would be OK to add python 3.9 support to ray-master? Below is what we did to compile on Debian bullseye (but running kernel 4.19 rather than the default 5 series)
|
I can confirm we built our own Python 3.9 wheels using the following patch on top of the
Note this builds Python 3.9 wheels only. To kick off the build process, use
|
Any progress on this? I was hoping that with the release of Ray 1.4.0 (congrats 🎉 ) this would all be sorted out, but sadly that's not the case. |
Ray 1.4.1 is available now, which provides Python 3.9 wheels. |
Describe your feature request
Some CI systems have base images for testing. Using something like
python:latest
would grab Python 3.9. Since there are no Python 3.9 wheels for Ray, there will be many silent and hard to debug failures in CI systems (speaking from experience here). Also, 3.9 is also the new stable version of Python, and Ray should be supporting that as well.There may have to be a discussion amongst the Ray team how far many older versions they want to build wheels for. It would be nice if the Ray team could support 0.8.4, since that is what my team uses.
The text was updated successfully, but these errors were encountered: