scrapy 打包项目的时候报错
D:\ZHITU_PROJECT\440000_GD\FckySpider>scrapyd-deploy --build-egg 0927td.egg
Traceback (most recent call last):
File "C:\Python\Scripts\scrapyd-deploy-script.py", line 11, in <module>
load_entry_point('scrapyd-client==1.2.0a1', 'console_scripts', 'scrapyd-deploy')()
File "C:\Python\lib\site-packages\scrapyd_client-1.2.0a1-py3.7.egg\scrapyd_client\deploy.py", line 90, in main
egg, tmpdir = _build_egg()
File "C:\Python\lib\site-packages\scrapyd_client-1.2.0a1-py3.7.egg\scrapyd_client\deploy.py", line 277, in _build_egg
stdout=o, stderr=e)
File "C:\Python\lib\site-packages\scrapy\utils\python.py", line 353, in retry_on_eintr
return function(*args, **kw)
File "C:\Python\lib\subprocess.py", line 328, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Python\\python.exe', 'setup.py', 'clean', '-a', 'bdist_egg', '-d', 'C:\\Users\\admin\\AppData\\Local\\Temp\\scrapydeploy-9zkee1ud']' returned non-zero exit status 1.
完全无从下手。
尝试打包其它项目可以成功,单单这个项目报错。
在无意中,想 把这个项目压缩.rar 到其它 电脑看看情况
压缩rar的时候报错,报错路径指向某一个py文件,打开该py文件,很久才打开,且代码都没了,空白的。找到之前备份好的这个py代码,覆盖掉。再执行打包命令,成功
D:\ZHITU_PROJECT\440000_GD\FckySpider>scrapyd-deploy --build-egg 0927td.egg
Writing egg to 0927td.egg