晚会 2018-11-01 14:08 采纳率: 0%
浏览 816

把Python爬虫部署到scrapyinghub上遇到如下问题?

把Python爬虫部署到scrapyinghub上遇到:
Traceback (most recent call last):
File "e:\paython\python安装\lib\site-packages\shub\utils.py", line 219, in run_cmd
return _clean(subprocess.check_output(*args, **kwargs))
File "e:\paython\python安装\lib\subprocess.py", line 376, in check_output
**kwargs).stdout
File "e:\paython\python安装\lib\subprocess.py", line 468, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['e:\paython\python安装\python.exe', 'setup.py', 'clean', '-a', 'bdist_egg', '-d', 'C:\Users\Lenovo\AppData\Local\Temp\shub-deploy-81byvzun']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "e:\paython\python安装\lib\runpy.py", line 193, in run_module_as_main
"
_main__", mod_spec)
File "e:\paython\python安装\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "E:\paython\python安装\Scripts\shub.exe\
_main__.py", line 9, in
File "e:\paython\python安装\lib\site-packages\click\core.py", line 722, in call
return self.main(*args, **kwargs)
File "e:\paython\python安装\lib\site-packages\click\core.py", line 697, in main
rv = self.invoke(ctx)
File "e:\paython\python安装\lib\site-packages\click\core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "e:\paython\python安装\lib\site-packages\click\core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "e:\paython\python安装\lib\site-packages\click\core.py", line 535, in invoke
return callback(*args, **kwargs)
File "e:\paython\python安装\lib\site-packages\shub\deploy.py", line 82, in cli
conf=conf)
File "e:\paython\python安装\lib\site-packages\shub\deploy.py", line 110, in deploy_cmd
egg, tmpdir = _build_egg()
File "e:\paython\python安装\lib\site-packages\shub\deploy.py", line 195, in _build_egg
run_python(['setup.py', 'clean', '-a', 'bdist_egg', '-d', d])
File "e:\paython\python安装\lib\site-packages\shub\utils.py", line 305, in run_python
return run_cmd([sys.executable] + cmd, *args, **kwargs)
File "e:\paython\python安装\lib\site-packages\shub\utils.py", line 224, in run_cmd
e.stderr = _clean(tmpfile.read())
File "e:\paython\python安装\lib\site-packages\shub\utils.py", line 214, in _clean
return s.decode(STDOUT_ENCODING).replace(os.linesep, '\n').strip('\n')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 273: invalid start byte

谢谢!!

  • 写回答

1条回答 默认 最新

  • devmiao 2018-11-04 06:09
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 Stata 面板数据模型选择
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用