-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
grpcio pin inside the recipe #109
Comments
@mattip is this something you could look into? |
@richardliaw Thank you so much! This is very important to us, and it would be great if we can solve this ASAP |
See #98 (specifically this comment) which led to issue |
So if I understand it correctly, the conda version of grpcio>1.50.0 is somehow different from what's being offered by pypi causing conda version of ray to fail? This issue is known, but not a clear path forward has been decided yet. |
Yes, I think that is a fair assessment of the situation. It is not clear where to expand effort: moving ray to use a newer grpcio internally, or debugging why on all of conda-forge only the ray feedstock seems to need this |
@mattip Thanks for the explanation. |
By the way, in 2.7 ray is not going to need grpc by default; believe
@zhe-thoughts will have more details
…On Wed, Aug 23, 2023 at 4:05 PM Weisu Yin ***@***.***> wrote:
@mattip <https://github.com/mattip> Thanks for the explanation.
@richardliaw <https://github.com/richardliaw> Does ray team have any plan
regarding this? It's definitely not a long term solution to keep an
obsolete pin. I believe there are security vulnerabilities presented in
older versions of grpcio too. This could be a big obstacle to many service
teams that want to integrate ray
—
Reply to this email directly, view it on GitHub
<#109 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABCRZZNO4Y7OCLA2GTEA6FLXW2ED7ANCNFSM6AAAAAA337NIEE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The proper solution would be #90, i.e. do not vendor protobuf & grpc (or at least provide an opt-out in the ray build that we could use). Unfortunately, it's just so absurdly complicated to actually point to existing artefacts with bazel that I have not mustered the energy to jump down this rabbit hole. Regarding failures in grpc, as soon as someone reproduces this, we'll try to get it fixed. I tried to switch on the C++ testing for grpc recently, but it doesn't even compile (filed an upstream bug; will take a while to get this going I think). |
Here is what I had in PR #98 as a minimal reproducer:
Or maybe you were referring to something else? |
@richardliaw Thanks for the info. Any timeline on when 2.7 will be out? |
Sorry, I misspoke (it was late...) - I meant a root cause rather than a reproducer. If we can point to a concrete problem in grpc, abseil, protobuf or whatever, we can try to get this fixed in the packaging or with the respective upstream maintainers. |
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/conda/envs/throw-away1/lib/python3.9/site-packages/ray/__init__.py", line 109, in <module>
import ray._raylet # noqa: E402
File "python/ray/_raylet.pyx", line 119, in init ray._raylet
File "/opt/conda/envs/throw-away1/lib/python3.9/site-packages/ray/exceptions.py", line 17, in <module>
from ray.util.annotations import DeveloperAPI, PublicAPI
File "/opt/conda/envs/throw-away1/lib/python3.9/site-packages/ray/util/__init__.py", line 5, in <module>
from ray._private.services import get_node_ip_address
File "/opt/conda/envs/throw-away1/lib/python3.9/site-packages/ray/_private/services.py", line 26, in <module>
from ray._private.gcs_utils import GcsClient
File "/opt/conda/envs/throw-away1/lib/python3.9/site-packages/ray/_private/gcs_utils.py", line 11, in <module>
import grpc
File "/opt/conda/envs/throw-away1/lib/python3.9/site-packages/grpc/__init__.py", line 22, in <module>
from grpc import _compression
File "/opt/conda/envs/throw-away1/lib/python3.9/site-packages/grpc/_compression.py", line 20, in <module>
from grpc._cython import cygrpc
ImportError: libabsl_status.so.2301.0.0: cannot open shared object file: No such file or directory @h-vetinari Thanks. I would like to help if we can get this unblocked. Is this stack trace enough for you to take a look on what's the problem behind? |
That's enough for a start. Getting abseil libraries to be present isn't a big issue (if that is all there is to it). I rebased #87 and I also opened conda-forge/grpc-cpp-feedstock#312 (plus did some more work on conda-forge/grpc-cpp-feedstock#311). |
So the abseil error is not present in conda-forge/grpc-cpp-feedstock#312 nor in #87. In the latter, we're again stuck with
This is something that was raised with ray already a while ago. I don't know what's going on there. |
@mattip I saw you created this issue referred by @h-vetinari. Any updates on it? |
No updates. I do not know how to debug what seems to be failures to pass grpcio messages. |
I think we can close this. Ray now pins to a higher version of grcpio ray-packages-feedstock/recipe/meta.yaml Line 172 in 818fe78
|
Solution to issue cannot be found in the documentation.
Issue
I found there's a grpcio pin inside the recipe, which doesn't match what's being specified in ray's setup.py. This pin will stop conda user install latest version of ray alongside with latest version of tensorflow, as there's a version conflicts in grpcio. It would be great if we can align this grpcio pin to setup.py in ray
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: