Skip to content
This repository was archived by the owner on Aug 23, 2020. It is now read-only.
This repository was archived by the owner on Aug 23, 2020. It is now read-only.

Linux 环境报错 #322

Description

@sulf1ron
Ubuntu 16.04.4 LTS + py2/3
root@web:~# qqbot
Traceback (most recent call last):
  File "/usr/local/bin/qqbot", line 7, in <module>
    from qqbot import RunBot
  File "/usr/local/lib/python2.7/dist-packages/qqbot/__init__.py", line 3, in <module>
    from .qqbotcls import QQBot, QQBotSlot, QQBotSched, RunBot, _bot
  File "/usr/local/lib/python2.7/dist-packages/qqbot/qqbotcls.py", line 331, in <module>
    _bot = QQBot()
  File "/usr/local/lib/python2.7/dist-packages/qqbot/qqbotcls.py", line 217, in __init__
    self.scheduler = BackgroundScheduler(daemon=True)
  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/background.py", line 29, in _configure
    super(BackgroundScheduler, self)._configure(config)
  File "/usr/local/lib/python2.7/dist-packages/apscheduler/schedulers/base.py", line 691, in _configure
    self.timezone = astimezone(config.pop('timezone', None)) or get_localzone()
  File "/usr/local/lib/python2.7/dist-packages/tzlocal/unix.py", line 131, in get_localzone
    _cache_tz = _get_localzone()
  File "/usr/local/lib/python2.7/dist-packages/tzlocal/unix.py", line 70, in _get_localzone
    return pytz.timezone(etctz.replace(' ', '_'))
  File "/usr/local/lib/python2.7/dist-packages/pytz/__init__.py", line 177, in timezone
    raise UnknownTimeZoneError(zone)
pytz.exceptions.UnknownTimeZoneError: ''

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions