Unable to deploy scrapy to scrapy cloud(caused by setup.py?)

Viewed 19

I want to deploy source code developed in a local environment to scrapycloud for periodic execution, but the following error occurs and the command cannot be executed.

(env) morni@Kyohei buyma_researchtool % shub deploy
Packing version 1.0
Error: Error while calling subcommand: Command '['/Users/morni/BUYMA/env/bin/python3', 'setup.py', 'clean', '-a', 'bdist_egg', '-d', '/var/folders/nj/n1d_w7ts2c1_lnfxsmtkzlv80000gp/T/shub-deploy-33c6ylq0']' returned non-zero exit status 2.

COMMAND OUTPUT
--------------


STDERR
------
/Users/morni/BUYMA/env/bin/python3: can't open file '/Users/morni/BUYMA/buyma_researchtool/setup.py': [Errno 2] No such file or directory
(env) morni@Kyohei buyma_researchtool % 

I've been there.

  1. Write source code in the local environment
  2. Execute "pip install shub"
  3. Execute "shub login"
  4. Enter API key and deployment number
  5. Execute "shub deploy"

That's all.

I searched for the returned error code, but could not find the cause very well.

I understand that there may be a problem with setup.py. The following is the contents of setup.py.

from setuptools import setup, find_packages

setup(
    name         = 'project',
    version      = '1.0',
    packages     = find_packages(),
    entry_points = {'scrapy': ['settings = buyma_researchtool.settings']},
)

Thank you in advance for your response.

0 Answers
Related