Error on fresh installation: UnknownTimeZoneError


I’ve do a fresh installation:

git clone /opt/sickrage
pip install -r /opt/sickrage/requirements.txt
but on run python2 /opt/sickrage/

i’ve this error:

Traceback (most recent call last):
  File "/opt/sickrage/sickrage/", line 318, in main
  File "/opt/sickrage/sickrage/core/", line 175, in start
    self.scheduler = TornadoScheduler()
  File "/usr/local/lib/python2.7/dist-packages/apscheduler/schedulers/", line 83, in __init__
    self.configure(gconfig, **options)
  File "/usr/local/lib/python2.7/dist-packages/apscheduler/schedulers/", line 122, in configure
  File "/usr/local/lib/python2.7/dist-packages/apscheduler/schedulers/", line 43, in _configure
    super(TornadoScheduler, self)._configure(config)
  File "/usr/local/lib/python2.7/dist-packages/apscheduler/schedulers/", line 694, in _configure
    self.timezone = astimezone(config.pop('timezone', None)) or get_localzone()
  File "/usr/local/lib/python2.7/dist-packages/tzlocal/", line 152, in get_localzone
    _cache_tz = _get_localzone()
  File "/usr/local/lib/python2.7/dist-packages/tzlocal/", line 76, in _get_localzone
    return pytz.timezone(etctz.replace(' ', '_'))
  File "/usr/local/lib/python2.7/dist-packages/pytz/", line 178, in timezone
    raise UnknownTimeZoneError(zone)
UnknownTimeZoneError: 'Europe/Lisbon'

How resolve this?

i’ve python 2.7.13 on Debian GNU/Linux 9 (stretch)

Thank you.

You’re need to edit you’re /etc/timezone file to something valid for it to work.

My location is correct ‘Europe/Lisbon’, but i’ve change in UTC and this work.

1 Like