Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Timezone offset does not match system offset #493

Closed
xuan25 opened this issue Aug 7, 2020 · 1 comment
Closed

ValueError: Timezone offset does not match system offset #493

xuan25 opened this issue Aug 7, 2020 · 1 comment

Comments

@xuan25
Copy link
Contributor

xuan25 commented Aug 7, 2020

在虚拟机上运行报错

虚拟机:CentOS 6.5
虚拟化引擎:VMware Workstation (Auto)
物理机:Windows 7 SP1

在初次爬取代理结束时抛出异常:

Traceback (most recent call last):
  File "proxyPool.py", line 45, in <module>
    cli()
  File "/home/admin/.local/lib/python3.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/admin/.local/lib/python3.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/admin/.local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/admin/.local/lib/python3.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/admin/.local/lib/python3.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "proxyPool.py", line 34, in schedule
    runScheduler()
  File "/usr/local/proxy_pool/helper/scheduler.py", line 50, in runScheduler
    scheduler = BlockingScheduler(logger=scheduler_log, timezone=timezone)
  File "/usr/local/python3/lib/python3.7/site-packages/apscheduler/schedulers/base.py", line 79, in __init__
    self.configure(gconfig, **options)
  File "/usr/local/python3/lib/python3.7/site-packages/apscheduler/schedulers/base.py", line 118, in configure
    self._configure(config)
  File "/usr/local/python3/lib/python3.7/site-packages/apscheduler/schedulers/base.py", line 686, in _configure
    self.timezone = astimezone(config.pop('timezone', None)) or get_localzone()
  File "/usr/local/python3/lib/python3.7/site-packages/tzlocal/unix.py", line 165, in get_localzone
    _cache_tz = _get_localzone()
  File "/usr/local/python3/lib/python3.7/site-packages/tzlocal/unix.py", line 128, in _get_localzone
    utils.assert_tz_offset(tz)
  File "/usr/local/python3/lib/python3.7/site-packages/tzlocal/utils.py", line 46, in assert_tz_offset
    raise ValueError(msg)
ValueError: Timezone offset does not match system offset: -25200 != 28800. Please, check your config files.
@jhao104
Copy link
Owner

jhao104 commented Aug 12, 2020

#494

@jhao104 jhao104 closed this as completed Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants