# Not able to resume experiment

**URL:** <https://discuss.ray.io/t/not-able-to-resume-experiment/8587>\
**Category:** Ray Tune\
**Created:** [December 7, 2022, 8:05pm UTC](https://discuss.ray.io/t/not-able-to-resume-experiment/8587 "2022-12-07T20:05:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darrell\_Dai](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/darrell_dai/32/3524_2.png) [@Darrell\_Dai](https://discuss.ray.io/u/Darrell_Dai)\
**Post date:** [December 7, 2022, 8:05pm UTC](https://discuss.ray.io/t/not-able-to-resume-experiment/8587/1 "2022-12-07T20:05:44Z")

</div>

I tried to use `tune.Tuner.restore(path).fit()` to resume an experiment, but it doesn’t work.  
My code is

```auto
tuner = tune.Tuner.restore("./ray_results/PPO_2022-12-07_01-43-37")
tuner.fit()

```

The error is:

```auto
2022-12-07 15:04:15,887	INFO worker.py:1519 -- Started a local Ray instance. View the dashboard at http://127.0.0.1:8266 
2022-12-07 15:04:18,932	INFO experiment_analysis.py:795 -- No `self.trials`. Drawing logdirs from checkpoint file. This may result in some information that is out of sync, as checkpointing is periodic.
Traceback (most recent call last):
  File "/home/sd469/HideAndSeek/Code/venv/lib/python3.8/site-packages/ray/tune/tuner.py", line 243, in fit
    return self._local_tuner.fit()
  File "/home/sd469/HideAndSeek/Code/venv/lib/python3.8/site-packages/ray/tune/impl/tuner_internal.py", line 297, in fit
    analysis = self._fit_resume(trainable)
  File "/home/sd469/HideAndSeek/Code/venv/lib/python3.8/site-packages/ray/tune/impl/tuner_internal.py", line 431, in _fit_resume
    analysis = run(**args)
  File "/home/sd469/HideAndSeek/Code/venv/lib/python3.8/site-packages/ray/tune/tune.py", line 538, in run
    experiments[i] = Experiment(
  File "/home/sd469/HideAndSeek/Code/venv/lib/python3.8/site-packages/ray/tune/experiment/experiment.py", line 155, in __init__
    assert local_dir_path in experiment_checkpoint_dir_path.parents
AssertionError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/sd469/HideAndSeek/Code/venv/lib/python3.8/site-packages/ray/tune/tuner.py", line 245, in fit
    raise TuneError(
ray.tune.error.TuneError: The Ray Tune run failed. Please inspect the previous error messages for a cause. After fixing the issue, you can restart the run from scratch or continue this run. To continue this run, you can use `tuner = Tuner.restore("./ray_results/PPO_2022-12-07_01-43-37")`.
python-BaseException

```

---

<div class="post-metadata">

**Author:** ![Yard1](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/yard1/32/508_2.png) [@Yard1](https://discuss.ray.io/u/Yard1)\
**Post date:** [December 7, 2022, 10:14pm UTC](https://discuss.ray.io/t/not-able-to-resume-experiment/8587/2 "2022-12-07T22:14:12Z")

</div>

Hey @Darrell_Dai, this is an error in the latest Ray release that should be fixed in the upcoming 2.2 version (which should be out in days). You can also use the latest nightly version that has the fix already included - [Installing Ray — Ray 2.1.0](https://docs.ray.io/en/latest/ray-overview/installation.html#daily-releases-nightlies)

Let me know if that helps!

---

<div class="post-metadata">

**Author:** ![Darrell\_Dai](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/darrell_dai/32/3524_2.png) [@Darrell\_Dai](https://discuss.ray.io/u/Darrell_Dai)\
**Post date:** [December 11, 2022, 8:21pm UTC](https://discuss.ray.io/t/not-able-to-resume-experiment/8587/3 "2022-12-11T20:21:47Z")

</div>

@Yard1 Thanks for reply. I found the nightly version doesn’t include RLlib. Any way I can get around this?

---

<div class="post-metadata">

**Author:** ![Yard1](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/yard1/32/508_2.png) [@Yard1](https://discuss.ray.io/u/Yard1)\
**Post date:** [December 11, 2022, 8:32pm UTC](https://discuss.ray.io/t/not-able-to-resume-experiment/8587/4 "2022-12-11T20:32:53Z")

</div>

The nightly version definitely contains RLLib. Are you getting some sort of an error?

---

<div class="post-metadata">

**Author:** ![Darrell\_Dai](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/darrell_dai/32/3524_2.png) [@Darrell\_Dai](https://discuss.ray.io/u/Darrell_Dai)\
**Post date:** [December 11, 2022, 9:22pm UTC](https://discuss.ray.io/t/not-able-to-resume-experiment/8587/5 "2022-12-11T21:22:23Z")

</div>

I tried to import rllib from ray, but it shows no module called rllib

---

<div class="post-metadata">

**Author:** ![Yard1](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/yard1/32/508_2.png) [@Yard1](https://discuss.ray.io/u/Yard1)\
**Post date:** [December 12, 2022, 5:05pm UTC](https://discuss.ray.io/t/not-able-to-resume-experiment/8587/6 "2022-12-12T17:05:51Z")

</div>

I couldn’t reproduce this on colab - [Google Colab](https://colab.research.google.com/drive/1lVBVfeWgJVp1e3MJltC4a-e8Dxh3-Tkk?usp=sharing)
