Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

UnknownTimeZoneError: 'IST' #37

Open
sipah00 opened this issue May 13, 2020 · 1 comment
Open

UnknownTimeZoneError: 'IST' #37

sipah00 opened this issue May 13, 2020 · 1 comment

Comments

@sipah00
Copy link

sipah00 commented May 13, 2020

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
Copy link
Contributor

Try upgrading tzdata and reinstalling pytz.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants