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

Linux 环境报错 #322

Open
sulf1ron opened this issue May 5, 2018 · 1 comment
Open

Linux 环境报错 #322

sulf1ron opened this issue May 5, 2018 · 1 comment

Comments

@sulf1ron
Copy link

sulf1ron commented May 5, 2018

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

復議

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants