ray-project / pygloo

Pygloo provides Python bindings for Gloo.
Apache License 2.0
16 stars 9 forks source link

AttributeError: module 'pygloo.transport.tcp' has no attribute 'attr' #18

Closed fminiati closed 3 months ago

fminiati commented 1 year ago

Hi

I am running Big Sur on an iMac mid 2015 (Quad-Code intel i5). I have installed pygloo using Bazel as per instructions and python3.8.

I am running your "test_allreduce" test from the shelf and get the error below: any clue?

Many thanks!

2022-11-24 19:13:11,478 INFO services.py:1263 -- View the Ray dashboard at http://127.0.0.1:8265 Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/Users//Projects/Codes/ray/test.py", line 36, in ray.get([test_allreduce.remote(rank, world_size, fileStore_path) for rank in range(world_size)]) File "/Users//Projects/.venv/ox/lib/python3.8/site-packages/ray/_private/client_mode_hook.py", line 82, in wrapper return func(args, kwargs) File "/Users//Projects/.venv/ox/lib/python3.8/site-packages/ray/worker.py", line 1621, in get raise value.as_instanceof_cause() ray.exceptions.RayTaskError(AttributeError): ray::test_allreduce() (pid=61964, ip=10.179.16.163) File "/Users/***/Projects/Codes/ray/test.py", line 15, in test_allreduce attr = pygloo.transport.tcp.attr("localhost") AttributeError: module 'pygloo.transport.tcp' has no attribute 'attr'

jovany-wang commented 1 year ago

TCP transport only works on Linux, see: https://github.com/facebookincubator/gloo/blob/cf1e1abc95d0b961222ee82b6935f76250fbcf16/gloo/CMakeLists.txt#L76C21-L76C21

jovany-wang commented 1 year ago

Then you should use uv instead of tcp on MacOS.

jovany-wang commented 3 months ago

@fminiati Is this issue still there? or I'm going to close it in 24h.

fminiati commented 3 months ago

hi, please go ahead and close it. honestly i haven’t looked into this in a while. will reopen it if need be.

On Mon, May 20, 2024 at 17:55, Qing Wang @.***(mailto:On Mon, May 20, 2024 at 17:55, Qing Wang < wrote:

@.***(https://github.com/fminiati) Is this issue still there? or I'm going to close it in 24h.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>