Ray initiation not working [RLlib 2.0.0]

When ray is being initialized through

if not ray.is_initialized():
        ray.init()

or

tuner.fit()

The following is printed and it does not complete the rest of the script,

INFO:ray.tune.tune:Initializing Ray automatically.For cluster usage or custom Ray initialization, call ray.init(...) before tune.run.
2023-01-19 07:04:42,868 INFO worker.py:1518 – Started a local Ray instance.