Problem when running code with modin 1° time

Hi,

It´s my fist time using modin.

When I import it and try to run my code é keep gatting the following error:

E1206 16:45:16.613245 5333 raylet_client.cc:113] Retrying to connect to socket for pathname /tmp/ray/session_2019-12-06_16-45-14_011415_5333/sockets/raylet (num_attempts = 4, num_retries = 5)
F1206 16:45:17.113449 5333 raylet_client.cc:122] Could not connect to socket /tmp/ray/session_2019-12-06_16-45-14_011415_5333/sockets/raylet
*** Check failure stack trace: ***
Fatal Python error: Aborted

All I did was to try to impor modin and ray. All installed as the git page instructed.

I´m running my code on a Ubuntu WSL environment

Hi @Marcos_Heidemann,

Are you able to run the following?

import ray
ray.init()

You may need to update your WSL with sudo apt update and sudo apt upgrade.

I regularly use WSL for development and testing, so it should work.

Hi

Running in to the same problem as Marcos when running in WSL1(with conda env py 3.7.5)
@Marcos: Did you get it to work?

Ran: apt get update and apt get upgrade (as per your suggestion)
Ran: pip install modin[ray]
Ran: pip install psutil setproctitle (as per suggestion from https://github.com/ray-project/ray/issues/5018)

“Same” error output when running modin as when trying to just run ray.init()

WARNING: Logging before InitGoogleLogging() is written to STDERR
E0120 11:13:29.329463 17858 io.cc:168] Connection to IPC socket failed for pathname /tmp/ray/session_2020-01-20_11-13-28_567230_17858/sockets/plasma_store, retrying 300 more times
WARNING: Logging before InitGoogleLogging() is written to STDERR
E0120 11:13:30.237457 17858 raylet_client.cc:113] Retrying to connect to socket for pathname /tmp/ray/session_2020-01-20_11-13-28_567230_17858/sockets/raylet (num_attempts = 1, num_retries = 5)
E0120 11:13:30.740017 17858 raylet_client.cc:113] Retrying to connect to socket for pathname /tmp/ray/session_2020-01-20_11-13-28_567230_17858/sockets/raylet (num_attempts = 2, num_retries = 5)
E0120 11:13:31.243703 17858 raylet_client.cc:113] Retrying to connect to socket for pathname /tmp/ray/session_2020-01-20_11-13-28_567230_17858/sockets/raylet (num_attempts = 3, num_retries = 5)
E0120 11:13:31.750152 17858 raylet_client.cc:113] Retrying to connect to socket for pathname /tmp/ray/session_2020-01-20_11-13-28_567230_17858/sockets/raylet (num_attempts = 4, num_retries = 5)
F0120 11:13:32.255365 17858 raylet_client.cc:122] Could not connect to socket /tmp/ray/session_2020-01-20_11-13-28_567230_17858/sockets/raylet
*** Check failure stack trace: ***
Fatal Python error: Aborted

Stack (most recent call first):
File “/root/miniconda3/envs/py37/lib/python3.7/site-packages/ray/worker.py”, line 1952 in connect
File “/root/miniconda3/envs/py37/lib/python3.7/site-packages/ray/worker.py”, line 1485 in init

Any suggestions?

/Kristofer

I have been updating some of the internal functionality and we’ve updated to the latest version of Ray, which should be more stable.

If you must run Ray, you can install from the GitHub master with:

pip install git+https://github.com/modin-project/modin
pip install ray==0.8

I will be releasing within the next day or so after some additional testing/documentation.

If you want to run natively on Windows, we have spent a lot of time this last couple of months putting some more complete functionality with dask, that can be used from master as well. I usually recommend this because there are significant overheads to using WSL in general, and Ray sometimes throws extra errors/warnings on the system because of the added latencies. Of course if you’re already running Ray applications in WSL it makes more sense to stick with that.

It´s been a while since i tried again, but I hadn’t been able to get it to work on WSL no matter what.
Gonna give a new try with this new version o Ray.

I can´t run with this version of ray, it gives me a error “Please `pip install modin[ray] to install compatible Ray version.”

It will only work on the master branch at the moment because of API changes in Ray. Try this:

pip install -U git+https://github.com/modin-project/modin
pip install ray==0.8

@Devin: I tried but was unfortunately still unable to get it to work. I understand that the problem is not modin but apparently rather Ray, or maybe even running and accessing Redis.

In [1]: import ray

In [2]: ray.init()
2020-01-23 14:09:01,315 INFO resource_spec.py:216 – Starting Ray with 30.32 GiB memory available for workers and up to 15.16 GiB for objects. You can adjust these settings with ray.init(memory=, object_store_memory=).
F0123 14:09:07.020850 1052 redis_context.cc:215] Could not establish connection to redis 10.46.89.57:57714 (context.err = 1)
*** Check failure stack trace: ***
@ 0x7f9b27d3f98d (unknown)
@ 0x7f9b27d40dfc (unknown)

I´m stuck on the same issue right now.

In this case, we should raise an issue on the ray repo: https://github.com/ray-project/ray

In the meantime, does the Dask engine work natively on Windows for you two? I spent quite a bit of time working on it this last release and it’s getting more mature.

I created the issue here: https://github.com/ray-project/ray/issues/6900

Feel free to add comments there.