the command will show up only after I install pyspider of python2, can't work in python3
$ python3 /usr/local/bin/pyspider
[I 150114 16:17:57 result_worker:44] result_worker starting...
Exception in thread Thread-1:
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 2195, in _find_and_load_unlocked
AttributeError: '_MovedItems' object has no attribute '__path__'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/pyspider/scheduler/scheduler.py", line 418, in xmlrpc_run
from six.moves.xmlrpc_server import SimpleXMLRPCServer
ImportError: No module named 'six.moves.xmlrpc_server'; 'six.moves' is not a package
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
self.run()
File "/usr/lib/python3.4/threading.py", line 868, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.4/dist-packages/pyspider/scheduler/scheduler.py", line 420, in xmlrpc_run
from SimpleXMLRPCServer import SimpleXMLRPCServer
ImportError: No module named 'SimpleXMLRPCServer'
[I 150114 16:17:57 scheduler:388] loading projects
[I 150114 16:17:57 processor:157] processor starting...
[I 150114 16:17:57 tornado_fetcher:387] fetcher starting...
Traceback (most recent call last):
File "/usr/local/bin/pyspider", line 9, in <module>
load_entry_point('pyspider==0.3.0', 'console_scripts', 'pyspider')()
File "/usr/local/lib/python3.4/dist-packages/pyspider/run.py", line 532, in main
cli()
File "/usr/local/lib/python3.4/dist-packages/click/core.py", line 610, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/click/core.py", line 590, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.4/dist-packages/click/core.py", line 916, in invoke
return Command.invoke(self, ctx)
File "/usr/local/lib/python3.4/dist-packages/click/core.py", line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.4/dist-packages/click/core.py", line 416, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/pyspider/run.py", line 144, in cli
ctx.invoke(all)
File "/usr/local/lib/python3.4/dist-packages/click/core.py", line 416, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/pyspider/run.py", line 409, in all
ctx.invoke(webui, **webui_config)
File "/usr/local/lib/python3.4/dist-packages/click/core.py", line 416, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/pyspider/run.py", line 277, in webui
app = load_cls(None, None, webui_instance)
File "/usr/local/lib/python3.4/dist-packages/pyspider/run.py", line 47, in load_cls
return utils.load_object(value)
File "/usr/local/lib/python3.4/dist-packages/pyspider/libs/utils.py", line 348, in load_object
module = __import__(module_name, globals(), locals(), [object_name])
File "/usr/local/lib/python3.4/dist-packages/pyspider/webui/__init__.py", line 8, in <module>
from . import app, index, debug, task, result, login
File "/usr/local/lib/python3.4/dist-packages/pyspider/webui/app.py", line 79, in <module>
template_folder=os.path.join(os.path.dirname(__file__), 'templates'))
File "/usr/local/lib/python3.4/dist-packages/flask/app.py", line 319, in __init__
template_folder=template_folder)
File "/usr/local/lib/python3.4/dist-packages/flask/helpers.py", line 741, in __init__
self.root_path = get_root_path(self.import_name)
File "/usr/local/lib/python3.4/dist-packages/flask/helpers.py", line 631, in get_root_path
loader = pkgutil.get_loader(import_name)
File "/usr/lib/python3.4/pkgutil.py", line 467, in get_loader
return find_loader(fullname)
File "/usr/lib/python3.4/pkgutil.py", line 488, in find_loader
return spec.loader
AttributeError: 'NoneType' object has no attribute 'loader'