In Ray 1.1.0 (and according to some other sources other versions as well), PYTHON_MODE is in the variable all defined in init.py but PYTHON_MODE is not defined anywhere else in Ray. Therefore, if you say “from ray import *” from some other Python file (which uses all to get the list of names to import) then you get an AttributeError.
Thanks, do you mind filling an issue about this on github? this sounds like an oversight since we typically don’t use that pattern for importing ray.
Made it easy on you and just made a PR.
2 Likes