# AttributeError: module 'cdstoolbox.cube' has no attribute 'groupby\_reduce'

**URL:** <https://forum.ecmwf.int/t/attributeerror-module-cdstoolbox-cube-has-no-attribute-groupby-reduce/1776>\
**Category:** Other - Software and tools\
**Tags:** c3s, toolbox\
**Created:** [22 October 2019 09:12 UTC](https://forum.ecmwf.int/t/attributeerror-module-cdstoolbox-cube-has-no-attribute-groupby-reduce/1776 "2019-10-22T09:12:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rutger\_Dankers](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/r/ed8c4c/32.png) [@Rutger\_Dankers](https://forum.ecmwf.int/u/Rutger_Dankers)\
**Post date:** [22 October 2019 09:12 UTC](https://forum.ecmwf.int/t/attributeerror-module-cdstoolbox-cube-has-no-attribute-groupby-reduce/1776/1 "2019-10-22T09:12:54Z")

</div>

Hi, I'm getting this error:&nbsp;

```
AttributeError: module 'cdstoolbox.cube' has no attribute 'groupby_reduce'
```

Except that exactly the same script ran fine yesterday. So I am pretty sure there is (or used to be) a 'groupby\_reduce' option. Is this another case where I need to keep on trying until it succeeds, or has something changed in the Toolbox?

Thanks

Rutger

---

<div class="post-metadata">

**Author:** ![Vivien\_MAVEL](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/v/ecccb3/32.png) [@Vivien\_MAVEL](https://forum.ecmwf.int/u/Vivien_MAVEL)\
**Post date:** [22 October 2019 10:01 UTC](https://forum.ecmwf.int/t/attributeerror-module-cdstoolbox-cube-has-no-attribute-groupby-reduce/1776/2 "2019-10-22T10:01:51Z")

</div>

Hi Rutger,

Thanks for flagging this up. This is not normal and looks like there has been an issue the last CDS update (between yesterday and today).

It looks like the issue has been fixed now.

By the way if you have recurring issues such as the RunTime error I would recommend to contact the service desk&nbsp;[https://jira.ecmwf.int/servicedesk/customer/portals](https://jira.ecmwf.int/servicedesk/customer/portals)&nbsp;which will be able to analyse and escalate the issue in a proper way.

Regards.

Vivien

---

<div class="post-metadata">

**Author:** ![Rutger\_Dankers](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/r/ed8c4c/32.png) [@Rutger\_Dankers](https://forum.ecmwf.int/u/Rutger_Dankers)\
**Post date:** [22 October 2019 10:15 UTC](https://forum.ecmwf.int/t/attributeerror-module-cdstoolbox-cube-has-no-attribute-groupby-reduce/1776/3 "2019-10-22T10:15:18Z")

</div>

Hi Vivien

Thanks, and thank you also for the reminder of the service desk.

I'm still seeing the error, though, and another similar error (AttributeError: module 'cdstoolbox' has no attribute 'climatology'), so I'm not sure if it has been fixed. I'll give it a few moments first...&nbsp;

Cheers

Rutger

---

<div class="post-metadata">

**Author:** ![Vivien\_MAVEL](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/v/ecccb3/32.png) [@Vivien\_MAVEL](https://forum.ecmwf.int/u/Vivien_MAVEL)\
**Post date:** [22 October 2019 10:51 UTC](https://forum.ecmwf.int/t/attributeerror-module-cdstoolbox-cube-has-no-attribute-groupby-reduce/1776/4 "2019-10-22T10:51:16Z")

</div>

Hi Rutger,

That is odd. Have you tried refreshing your browser with Shift + F5 or Shift + Refresh?  
  
 I manage to call groupby\_reduce. If you have code you can share I can try to run it.

Cheers.

Vivien

---

<div class="post-metadata">

**Author:** ![Rutger\_Dankers](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/r/ed8c4c/32.png) [@Rutger\_Dankers](https://forum.ecmwf.int/u/Rutger_Dankers)\
**Post date:** [22 October 2019 13:14 UTC](https://forum.ecmwf.int/t/attributeerror-module-cdstoolbox-cube-has-no-attribute-groupby-reduce/1776/5 "2019-10-22T13:14:08Z")

</div>

Hi Vivien

I've finally got to the bottom of this (with kudos to Kevin Marsh). I had made a mistake in my function call to&nbsp;ct.climate.climatology\_mean() so in this case the error message was, in fact, correct.

I can confirm the script with groupby\_reduce is working again as well.&nbsp;

Thanks!

Rutger
