# No weather because of an error in the timezone module (I think)

**URL:** https://community.openconversational.ai/t/no-weather-because-of-an-error-in-the-timezone-module-i-think/12526
**Category:** This category is being retired - Support
**Created:** [September 29, 2022, 8:45am UTC](https://community.openconversational.ai/t/no-weather-because-of-an-error-in-the-timezone-module-i-think/12526 "2022-09-29T08:45:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Taxicletter](https://community.openconversational.ai/user_avatar/community.openconversational.ai/taxicletter/32/3400_2.png) [@Taxicletter](https://community.openconversational.ai/u/Taxicletter)
#### Post date: [September 29, 2022, 8:45am UTC](https://community.openconversational.ai/t/no-weather-because-of-an-error-in-the-timezone-module-i-think/12526/1 "2022-09-29T08:45:32Z")

</div>

Picroft, RPI4, Google Voice HAT.

If I ask the weather, I get the message MyCroft can’t currently reach the weather report.

In the terminal (with SSH) I can see:

```auto
~~~~ ERROR | 737 | mycroft.skills.event_scheduler:on_error:331 | An error occured executing the scheduled event AttributeError("module 'pytz' has no attribute 'all_timezones'")
Traceback (most recent call last):
  File "/home/pi/mycroft-core/mycroft/skills/mycroft_skill/event_container.py", line 109, in wrapper
    handler(message)
  File "/opt/mycroft/skills/mycroft-date-time.mycroftai/ __init__.py", line 349, in update_display
    self.gui['time_string'] = self.get_display_current_time()
  File "/opt/mycroft/skills/mycroft-date-time.mycroftai/ __init__.py", line 243, in get_display_current_time
    dt = self.get_local_datetime(location, dtUTC)
  File "/opt/mycroft/skills/mycroft-date-time.mycroftai/ __init__.py", line 223, in get_local_datetime
    tz = self.get_timezone(self.location_timezone)
  File "/opt/mycroft/skills/mycroft-date-time.mycroftai/ __init__.py", line 209, in get_timezone
    timezone = self._get_timezone_from_fuzzymatch(locale)
  File "/opt/mycroft/skills/mycroft-date-time.mycroftai/ __init__.py", line 166, in _get_timezone_from_fuzzymatch
    for name in pytz.all_timezones:
AttributeError: module 'pytz' has no attribute 'all_timezones'

```

Which is repeated several times. When I ask the location, MyCroft correctly tells me Brussels, Belgium.

How can I fix this?

---

<div class="post-metadata">

### Author: ![SGee](https://community.openconversational.ai/user_avatar/community.openconversational.ai/sgee/32/3411_2.png) [@SGee](https://community.openconversational.ai/u/SGee)
#### Post date: [September 29, 2022, 11:36am UTC](https://community.openconversational.ai/t/no-weather-because-of-an-error-in-the-timezone-module-i-think/12526/2 "2022-09-29T11:36:43Z")

</div>

This is not the weather skill. This should be skill-date-time responding to something like “give me the time”.

The attribute all\_timezones is ancient, so… i wonder what the version is like `pip freeze | grep pytz`. But if the picroft image isn’t an archeological discovery, …
