From bd56ef8a538a2818593ac92604df957087b543c6 Mon Sep 17 00:00:00 2001 From: kev Date: Wed, 21 Jul 2021 19:02:44 +0800 Subject: [PATCH] patch scrapyd-clent (FIX #72 #183) --- scrapyd/py3/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/scrapyd/py3/Dockerfile b/scrapyd/py3/Dockerfile index 2b446b9..1bca71b 100644 --- a/scrapyd/py3/Dockerfile +++ b/scrapyd/py3/Dockerfile @@ -45,6 +45,7 @@ RUN set -xe \ git+https://github.com/scrapinghub/scrapy-splash.git \ git+https://github.com/scrapinghub/scrapyrt.git@$SCRAPYRT_VERSION \ git+https://github.com/python-pillow/Pillow.git@$PILLOW_VERSION \ + && sed -i 's/^from scrapy.utils.http/from w3lib.http/' /usr/local/lib/python3.7/dist-packages/scrapyd_client/deploy.py \ && curl -sSL https://github.com/scrapy/scrapy/raw/master/extras/scrapy_bash_completion -o /etc/bash_completion.d/scrapy_bash_completion \ && echo 'source /etc/bash_completion.d/scrapy_bash_completion' >> /root/.bashrc \ && apt-get purge -y --auto-remove autoconf \