ray: [Bug] Ray Mac OSX security popups every time I run script locally

Search before asking

  • I searched the issues and found no similar issues.

Ray Component

Ray Core, Monitoring & Debugging, Others

What happened + What you expected to happen

I always see these popups.

Screen Shot 2021-09-17 at 3 23 13 PM

They are ridiculously annoying and often keep appearing even after script is done running.

It doesn’t give me confidence in Ray.

Reproduction script

Literally any ray example will work.

from ray import tune


def objective(step, alpha, beta):
    return (0.1 + alpha * step / 100)**(-1) + beta * 0.1


def training_function(config):
    # Hyperparameters
    alpha, beta = config["alpha"], config["beta"]
    for step in range(10):
        # Iterative training function - can be any arbitrary training procedure.
        intermediate_score = objective(step, alpha, beta)
        # Feed the score back back to Tune.
        tune.report(mean_loss=intermediate_score)


analysis = tune.run(
    training_function,
    config={
        "alpha": tune.grid_search([0.001, 0.01, 0.1]),
        "beta": tune.choice([1, 2, 3])
    })

print("Best config: ", analysis.get_best_config(
    metric="mean_loss", mode="min"))

# Get a dataframe for analyzing trial results.
df = analysis.results_df

should trigger this.

Anything else

Let’s figure out how to address and add to the docs.

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (16 by maintainers)

Most upvoted comments

@worldveil I don’t need the commit and I have a PR out for the fix. Will let you verify once it’s merged.

@jjyao I still see this on ray start --head

Screen Shot 2021-11-08 at 8 55 13 PM