Ray.init() error

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.


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

from ray.tests.conftest import *
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:



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)