当前位置: 首页 > 工具软件 > py-deploy > 使用案例 >

scrapyd-deploy

杜轩昂
2023-12-01
Traceback (most recent call last):
	  File "/usr/local/lib64/python3.6/site-packages/twisted/web/http.py", line 2190, in allContentReceived
	    req.requestReceived(command, path, version)
	  File "/usr/local/lib64/python3.6/site-packages/twisted/web/http.py", line 917, in requestReceived
	    self.process()
	  File "/usr/local/lib64/python3.6/site-packages/twisted/web/server.py", line 198, in process
	    self.render(resrc)
	  File "/usr/local/lib64/python3.6/site-packages/twisted/web/server.py", line 258, in render
	    body = resrc.render(self)
	--- <exception caught here> ---
	  File "/usr/local/lib/python3.6/site-packages/scrapyd/webservice.py", line 21, in render
	    return JsonResource.render(self, txrequest).encode('utf-8')
	  File "/usr/local/lib/python3.6/site-packages/scrapyd/utils.py", line 20, in render
	    r = resource.Resource.render(self, txrequest)
	  File "/usr/local/lib64/python3.6/site-packages/twisted/web/resource.py", line 250, in render
	    return m(request)
	  File "/usr/local/lib/python3.6/site-packages/scrapyd/webservice.py", line 86, in render_POST
	    spiders = get_spider_list(project, version=version)
	  File "/usr/local/lib/python3.6/site-packages/scrapyd/utils.py", line 137, in get_spider_list
	    raise RuntimeError(msg.encode('unicode_escape') if six.PY2 else msg)
	builtins.RuntimeError: Traceback (most recent call last):
	  File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
	    "__main__", mod_spec)
	  File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
	    exec(code, run_globals)
	  File "/usr/local/lib/python3.6/site-packages/scrapyd/runner.py", line 40, in <module>
	    main()
	  File "/usr/local/lib/python3.6/site-packages/scrapyd/runner.py", line 37, in main
	    execute()
	  File "/usr/local/lib64/python3.6/site-packages/scrapy/cmdline.py", line 149, in execute
	    cmd.crawler_process = CrawlerProcess(settings)
	  File "/usr/local/lib64/python3.6/site-packages/scrapy/crawler.py", line 249, in __init__
	    super(CrawlerProcess, self).__init__(settings)
	  File "/usr/local/lib64/python3.6/site-packages/scrapy/crawler.py", line 137, in __init__
	    self.spider_loader = _get_spider_loader(settings)
	  File "/usr/local/lib64/python3.6/site-packages/scrapy/crawler.py", line 336, in _get_spider_loader
	    return loader_cls.from_settings(settings.frozencopy())
	  File "/usr/local/lib64/python3.6/site-packages/scrapy/spiderloader.py", line 61, in from_settings
	    return cls(settings)
	  File "/usr/local/lib64/python3.6/site-packages/scrapy/spiderloader.py", line 25, in __init__
	    self._load_all_spiders()
	  File "/usr/local/lib64/python3.6/site-packages/scrapy/spiderloader.py", line 47, in _load_all_spiders
	    for module in walk_modules(name):
	  File "/usr/local/lib64/python3.6/site-packages/scrapy/utils/misc.py", line 71, in walk_modules
	    submod = import_module(fullpath)
	  File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
	    return _bootstrap._gcd_import(name[level:], package, level)
	  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
	  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
	  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
	  File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
	  File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
	  File "/tmp/scrapy_splash_test-1543565032-kng4ox3j.egg/******", line 12, in <module>
	  File "/tmp/scrapy_splash_test-1543565032-kng4ox3j.egg/******.py", line 21, in ******
	  File "/usr/lib64/python3.6/pkgutil.py", line 634, in get_data
	    return loader.get_data(resource_name)
	OSError: [Errno 0] Error: '**********************'

 

 类似资料: