# EpisodeV2' object has no attribute 'last\_info\_for'

**URL:** <https://discuss.ray.io/t/episodev2-object-has-no-attribute-last-info-for/11356>\
**Category:** RLlib\
**Created:** [July 12, 2023, 3:43am UTC](https://discuss.ray.io/t/episodev2-object-has-no-attribute-last-info-for/11356 "2023-07-12T03:43:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vctrm](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/vctrm/32/4728_2.png) [@vctrm](https://discuss.ray.io/u/vctrm)\
**Post date:** [July 12, 2023, 3:43am UTC](https://discuss.ray.io/t/episodev2-object-has-no-attribute-last-info-for/11356/1 "2023-07-12T03:43:43Z")

</div>

It seems like before with the Episode class, we were able to [query the info dict](https://rllib/evaluation/episode.py) that is returned by an environment to the agent. EpisodeV2 has removed this function; I’m wondering how we can do the same?

---

<div class="post-metadata">

**Author:** ![vakker00](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@vakker00](https://discuss.ray.io/u/vakker00)\
**Post date:** [August 18, 2023, 12:50pm UTC](https://discuss.ray.io/t/episodev2-object-has-no-attribute-last-info-for/11356/2 "2023-08-18T12:50:56Z")

</div>

I’ve run into the same problem, but this seems to be a bug that has been fixed in the latest version. See [here](https://github.com/ray-project/ray/blob/master/rllib/evaluation/episode_v2.py#L373).

If you install one of the nightlies (see [here](https://docs.ray.io/en/latest/ray-overview/installation.html#daily-releases-nightlies)) then it should work as expected.
