语法错误
Luigid Syntax Error
我正在尝试在中央调度程序模式下使用 luigi。每当我尝试使用命令
运行 中央调度程序时
$ luigid
returns语法错误
Traceback (most recent call last):
File "/usr/local/bin/luigid", line 9, in <module>
load_entry_point('luigi==2.1.1', 'console_scripts', 'luigid')()
File "/usr/local/lib/python2.7/dist-packages/luigi-2.1.1-py2.7.egg/luigi/cmdline.py", line 15, in luigid
import luigi.server
File "/usr/local/lib/python2.7/dist-packages/luigi-2.1.1-py2.7.egg/luigi/server.py", line 51, in <module>
import tornado.httpserver
File "/usr/local/lib/python2.7/dist-packages/tornado/httpserver.py", line 34, in <module>
from tornado.http1connection import HTTP1ServerConnection, HTTP1ConnectionParameters
File "/usr/local/lib/python2.7/dist-packages/tornado/http1connection.py", line 28, in <module>
from tornado import gen
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1236, in <module>
import tornado.platform.asyncio
File "/usr/local/lib/python2.7/dist-packages/tornado/platform/asyncio.py", line 33, in <module>
import asyncio
File "/usr/local/lib/python2.7/dist-packages/asyncio/__init__.py", line 9, in <module>
from . import selectors
File "/usr/local/lib/python2.7/dist-packages/asyncio/selectors.py", line 39
"{!r}".format(fileobj)) from None
^
SyntaxError: invalid syntax
不知道为什么,但降级 tornado 就可以了。
$ sudo pip install tornado==4.1
$ luigid
Defaulting to basic logging; consider specifying logging_conf_file in luigi.cfg.
2016-06-20 14:52:02,038 luigi.scheduler[5400] INFO: No prior state file exists at /var/lib/lui
......
我正在尝试在中央调度程序模式下使用 luigi。每当我尝试使用命令
运行 中央调度程序时$ luigid
returns语法错误
Traceback (most recent call last):
File "/usr/local/bin/luigid", line 9, in <module>
load_entry_point('luigi==2.1.1', 'console_scripts', 'luigid')()
File "/usr/local/lib/python2.7/dist-packages/luigi-2.1.1-py2.7.egg/luigi/cmdline.py", line 15, in luigid
import luigi.server
File "/usr/local/lib/python2.7/dist-packages/luigi-2.1.1-py2.7.egg/luigi/server.py", line 51, in <module>
import tornado.httpserver
File "/usr/local/lib/python2.7/dist-packages/tornado/httpserver.py", line 34, in <module>
from tornado.http1connection import HTTP1ServerConnection, HTTP1ConnectionParameters
File "/usr/local/lib/python2.7/dist-packages/tornado/http1connection.py", line 28, in <module>
from tornado import gen
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1236, in <module>
import tornado.platform.asyncio
File "/usr/local/lib/python2.7/dist-packages/tornado/platform/asyncio.py", line 33, in <module>
import asyncio
File "/usr/local/lib/python2.7/dist-packages/asyncio/__init__.py", line 9, in <module>
from . import selectors
File "/usr/local/lib/python2.7/dist-packages/asyncio/selectors.py", line 39
"{!r}".format(fileobj)) from None
^
SyntaxError: invalid syntax
不知道为什么,但降级 tornado 就可以了。
$ sudo pip install tornado==4.1
$ luigid
Defaulting to basic logging; consider specifying logging_conf_file in luigi.cfg.
2016-06-20 14:52:02,038 luigi.scheduler[5400] INFO: No prior state file exists at /var/lib/lui
......