A3M4 / YouTube-Report

:bar_chart: Generate a personal YouTube report from your Google Takeout data
MIT License
636 stars 64 forks source link

UnknownTimeZoneError: 'IST' #37

Open sipah00 opened 4 years ago

sipah00 commented 4 years ago

while running python report.py I got this error

(free) ➜  YouTube-Report git:(master) python report.py
Generating Heat Map.....
Traceback (most recent call last):
  File "report.py", line 533, in <module>
    visual.heat_map()
  File "report.py", line 46, in heat_map
    Mon = html.dataframe_heatmap(0)
  File "/home/sipah00/YouTube-Report/parse.py", line 145, in dataframe_heatmap
    times = self.find_times()
  File "/home/sipah00/YouTube-Report/parse.py", line 82, in find_times
    times+=self.raw_find_times(*translation)
  File "/home/sipah00/YouTube-Report/parse.py", line 90, in raw_find_times
    times.append(pytz.timezone(time[-1]).localize(datetime.datetime.strptime(timegex%(time[:-1]),timegex2)))
  File "/home/sipah00/.local/lib/python3.6/site-packages/pytz/__init__.py", line 181, in timezone
    raise UnknownTimeZoneError(zone)
pytz.exceptions.UnknownTimeZoneError: 'IST'
SuperSandro2000 commented 4 years ago

Try upgrading tzdata and reinstalling pytz.