-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tune] AttributeError: 'NoneType' object has no attribute 'get_global_worker' #5042
Comments
Hm, somehow I'm unable to reproduce this (I'm using conda with python37 and the latest snapshot of Ray on AWS). Usually this exception is just thrown because of some race condition and is harmless. Are you seeing this affect correctness? |
That's weird. Are you using: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-0.8.0.dev1-cp37-cp37m-manylinux1_x86_64.whl ? I can also reproduce it in a Docker container that I'm using. I can trim it down and share it if that helps. It does not affect me (or at least I cannot tell), I was just concerned that there might be an issue. |
I have exactly the same issue. When the program exits, it pops with By the way, I am using https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-0.8.0.dev1-cp37-cp37m-manylinux1_x86_64.whl. |
@richardliaw
with import ray
from ray import tune
ray.init()
def train_func(config, reporter): # add a reporter arg
accuracy = config["momentum"] * 2 + 0.3
reporter(mean_accuracy=accuracy) # report metrics
all_trials = tune.run(
train_func,
name="quick-start",
stop={"mean_accuracy": 99},
config={"momentum": tune.grid_search([0.1, 0.2])}) Running Thanks |
Same issue as well, using ray-0.8.1-cp36-cp36m-manylinux1_x86_64.whl. But if I did not pip install
|
Hm, interesting. Anyways, we've removed Tensorboard (replaced with TensorboardX) from Tune, so this should go away now. |
Hm,I'm also removed tensorflow, so this issue go away now |
System information
Describe the problem
When I run the script above (based on the examples from here), I get the following error at the end of each run:
However, this is not happening for
0.7.0.dev2
, the process exists normally in that case.This might be related to #4467 .
The text was updated successfully, but these errors were encountered: