Error on fresh installation: UnknownTimeZoneError


#1

Hello,

I’ve do a fresh installation:

git clone https://git.sickrage.ca/SiCKRAGE/sickrage /opt/sickrage
pip install -r /opt/sickrage/requirements.txt
but on run python2 /opt/sickrage/SiCKRAGE.py

i’ve this error:

Traceback (most recent call last):
  File "/opt/sickrage/sickrage/__init__.py", line 318, in main
    app.start()
  File "/opt/sickrage/sickrage/core/__init__.py", line 175, in start
    self.scheduler = TornadoScheduler()
  File "/usr/local/lib/python2.7/dist-packages/apscheduler/schedulers/base.py", line 83, in __init__
    self.configure(gconfig, **options)
  File "/usr/local/lib/python2.7/dist-packages/apscheduler/schedulers/base.py", line 122, in configure
    self._configure(config)
  File "/usr/local/lib/python2.7/dist-packages/apscheduler/schedulers/tornado.py", line 43, in _configure
    super(TornadoScheduler, self)._configure(config)
  File "/usr/local/lib/python2.7/dist-packages/apscheduler/schedulers/base.py", line 694, in _configure
    self.timezone = astimezone(config.pop('timezone', None)) or get_localzone()
  File "/usr/local/lib/python2.7/dist-packages/tzlocal/unix.py", line 152, in get_localzone
    _cache_tz = _get_localzone()
  File "/usr/local/lib/python2.7/dist-packages/tzlocal/unix.py", line 76, in _get_localzone
    return pytz.timezone(etctz.replace(' ', '_'))
  File "/usr/local/lib/python2.7/dist-packages/pytz/__init__.py", 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.


#2

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


#3

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