2017-05-21 26 views
0

3日前に完全に実行されたshub deployを使用してプロジェクトをデプロイしました。私はちょうど今日、再び同じコードを展開しようと、それはこのような要件のエラーを示しています。shubデプロイを使用してscrapyクラウドにデプロイする際の要件エラー

Packing version c1f72fb-master 
Deploying to Scrapy Cloud project "187201" 
Deploy log last 30 lines: 
---> 72b41733c189 
Step 9 : RUN mkdir /app/python && chown nobody:nogroup /app/python 
---> Using cache 
---> dda1555878eb 
Step 10 : RUN sudo -u nobody -E PYTHONUSERBASE=$PYTHONUSERBASE pip install 
--user --no-cache-dir -r /app/requirements.txt 
---> Using cache 
---> cccdde466280 
Step 11 : COPY *.egg /app/ 
---> afc6b3540c92 
Removing intermediate container bd3bedcee848 
Step 12 : RUN if [ -d "/app/addons_eggs" ]; then rm -f /app/*.dash- 
addon.egg; fi 
---> Running in 80461e4402dc 
---> 830db9615167 
Removing intermediate container 80461e4402dc 
Step 13 : ENV PATH 
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 
---> Running in 9af6ab0fdc02 
---> 0f33ba992cc7 
Removing intermediate container 9af6ab0fdc02 
Successfully built 0f33ba992cc7 
>>> Checking python dependencies 
WARNING: There're some errors when doing pip-check: 
Traceback (most recent call last): 
File "/usr/local/bin/pip", line 4, in <module> 
import re 
File "/usr/local/lib/python3.6/re.py", line 142, in <module> 
class RegexFlag(enum.IntFlag): 
AttributeError: module 'enum' has no attribute 'IntFlag' 
{"message": "Dependencies check exit code: 1", "details": "Pip checks 
failed, please fix the conflicts", "error": "requirements_error"} 

{"status": "error", "message": "Requirements error"} 
    Deploy log location: 
    c:\users\sim04\appdata\local\temp\shub_deploy__oqwt2.log 
Error: Deploy failed: {"status": "error", "message": "Requirements error"} 
+1

あなたはどなたですか? 'shub deploy'を正しく行った後、これらのログはすべて表示されますか? – eLRuLL

+0

私は窓を使用しています – scroobius

答えて

0

はあなたが正しくあなたの必要なモジュールを指定するには、次の手順に従ってください。

scrapinghub.ymlという名前のファイルをプロジェクトのメインフォルダに次の内容で作成します。

projects: 
    default: 111149 
requirements: 
    file: requirements.txt 

ここで、111149は、スクラップハブの私のproejct IDです。

requirements.txtという別のファイルを同じディレクトリに作成します。

、あなたはそうのような、そのファイルで使用しているバージョン番号と一緒に必要なモジュールを入れて、

MySQL-python==1.2.5 

PS:私はそれを置くように、私はMySQLdbはモジュールを使用していた

関連する問題