Ray.init() error

Hello,
When traying to launch a ray cluster using ray.init(), I got the following error.

from ray.new_dashboard.tests.conftest import * # noqa
File “/data/appli_PITSI/users/amrani/soft/python3/install/Python-3.7.7/lib/python3.7/site-packages/ray/new_dashboard/tests/conftest.py”, line 3, in
from ray.tests.conftest import * # noqa
ModuleNotFoundError: No module named 'ray.tests

Any idea? I am using Ray 2.0.0.dev0.

Thanks

I think there is a mistake when importing conftest. I fixed it by replacing

from ray.tests.conftest import *
by
from ray.new_dashboard.tests.conftest import * # noqa

This is weird since I never saw this error before. Could you print this ray.__commit__ on the broken one, to get which commit is this using? We might have already fixed this.

1 Like

Hi @yic ,

Of course, I got this:

bc42e6950320f8eca676afae497558ea03ee17be

:wink:

How did you download ray?

Test packages are not supposed to be included in our wheels (so it is a little surprising you have errors with ray.tests)