Start a new topic
Answered

Unable to deploy code onto shub. Error in requirements.

 

Error: Deploy failed: b'{"status": "error", "message": "Requirements error"}'
 ---> [Warning] Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
 ---> Running in 717947e4c407
Removing intermediate container 717947e4c407
 ---> ccf8c614a1fa
Step 12/12 : ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
 ---> [Warning] Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
 ---> Running in 694c5ac04051
Removing intermediate container 694c5ac04051
 ---> 913843930dda
Successfully built 913843930dda
Successfully tagged i.scrapinghub.com/kumo_project/66592:10
Step 1/3 : FROM alpine:3.5
 ---> f80194ae2e0c
Step 2/3 : ADD kumo-entrypoint /kumo-entrypoint
 ---> Using cache
 ---> fbd31fea70b1
Step 3/3 : RUN chmod +x /kumo-entrypoint
 ---> Using cache
 ---> 3565017f646e
Successfully built 3565017f646e
Successfully tagged kumo-entrypoint:latest
Entrypoint container is created successfully
>>> Checking python dependencies
Collecting pip<20.0,>=9.0.3
WARNING: There're some errors when doing pip-check:
  Could not find a version that satisfies the requirement pip<20.0,>=9.0.3 (from versions: )
No matching distribution found for pip<20.0,>=9.0.3
{"message": "Dependencies check exit code: 1", "details": "Pip checks failed, please fix the conflicts", "error": "requirements_error"}
{"status": "error", "message": "Requirements error"}

 I am facing an error in my requirements especially this 


">>> Checking python dependencies

Collecting pip<20.0,>=9.0.3"


What is the issue here?


Best Answer

Hi,


Your project is running on a very old stack "hworker:20160708", you need to deploy your project with an updated stack.

Follow the instructions here: https://support.zyte.com/support/solutions/articles/22000200402-changing-the-deploy-environment-with-scrapy-cloud-stacks

You'll need to modify your scrapinghub.yml file to be something like this:

project: xxxxxx

stack: scrapy:x.x


Available stacks can be found here: https://github.com/scrapinghub/scrapinghub-stack-scrapy/tags

1 Comment

Answer

Hi,


Your project is running on a very old stack "hworker:20160708", you need to deploy your project with an updated stack.

Follow the instructions here: https://support.zyte.com/support/solutions/articles/22000200402-changing-the-deploy-environment-with-scrapy-cloud-stacks

You'll need to modify your scrapinghub.yml file to be something like this:

project: xxxxxx

stack: scrapy:x.x


Available stacks can be found here: https://github.com/scrapinghub/scrapinghub-stack-scrapy/tags

Login to post a comment