Hi, I’m having trouble setting up my dev environment for ray. That is, building ray for Python dev worked as described here: https://docs.ray.io/en/master/development.html#building-ray-python-only
But building the docs does not work and always fails with an import error when running make html
:
Warning, treated as error:
autodoc: failed to import function 'rllib.utils.annotations.PublicAPI' from module 'ray'; the following exception was raised:
No module named 'ray.rllib'
I have ray installed inside a virtualenv on WSL2 (Ubuntu 20, Python 3.8) and inside the Python shell from ray.rllib.utils.annotations import PublicAPI
works without problems.
Any idea what’s the issue here and how to resolve it? Just in case I make changes to the docs, I’d like to inspect them locally first.
My guess is that it’s some issue with the make
command not using my version ray
installed inside my virtualenv, even though, I’m executing make
after activating the virtualenv.