pandolia / qqbot

QQBot: A conversation robot base on Tencent's SmartQQ
Other
3.68k stars 877 forks source link

Linux 环境报错 #322

Open sulf1ron opened 6 years ago

sulf1ron commented 6 years ago
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: ''
hydroakri commented 5 years ago

復議