beginners ask
current environment
pip 18.0 from / usr/local/lib/python3.7/site-packages/pip (python3.7)
spyider file is version 803 in github, and
pycurl with replaced keywords has also been reinstalled
online method and tried again and finally played the following error.
do you know how to solve this problem?
error message
$ pyspider all
phantomjs fetcher running on port 25555
Traceback (most recent call last):
File "/usr/local/bin/pyspider", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/pyspider/run.py", line 754, in main
cli()
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pyspider/run.py", line 497, in all
ctx.invoke(webui, **webui_config)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pyspider/run.py", line 333, in webui
app = load_cls(None, None, webui_instance)
File "/usr/local/lib/python3.7/site-packages/pyspider/run.py", line 48, in load_cls
return utils.load_object(value)
File "/usr/local/lib/python3.7/site-packages/pyspider/libs/utils.py", line 369, in load_object
module = __import__(module_name, globals(), locals(), [object_name])
File "/usr/local/lib/python3.7/site-packages/pyspider/webui/__init__.py", line 8, in <module>
from . import app, index, debug, task, result, login
File "/usr/local/lib/python3.7/site-packages/pyspider/webui/app.py", line 95
"fetch": lambda x: tornado_fetcher.Fetcher(None, None, async=False).fetch(x),
^
SyntaxError: invalid syntax