serverless-package-python-functions icon indicating copy to clipboard operation
serverless-package-python-functions copied to clipboard

Unable to use it with circleci

Open tgensol opened this issue 7 years ago • 1 comments

Hi,

I was trying to use your plugin, and I cannot manage to use it with circleci.

Locally, it is working very well (Thanks for making it !), but when running on circleci I am getting this:

Serverless: [serverless-package-python-functions] Packaging using Docker container... Serverless: [serverless-package-python-functions] Using Docker Server Version 17.09.0-ce & Client Version 17.05.0-ce

Serverless: [serverless-package-python-functions] Creating Docker container "serverless-package-python-functions-latest"... Serverless: [serverless-package-python-functions] Container created Serverless: [serverless-package-python-functions] Docker setup completed Serverless: [serverless-package-python-functions] Packaging serverless-image-processing-python-prod-thumbnail... [serverless-package-python-functions] Could not open requirements file: [Errno 2] No such file or directory: '/var/task/_build/serverless-image-processing-python-prod-thumbnail/requirements.txt'

If I try to not use Docker, I am getting this error :

[serverless-package-python-functions] Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored You are using pip version 9.0.1, however version 10.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.

Could it be a docker in docker issue for the first one ? For the second, even if with pip install --upgrade pip, it is not working If anyone knows a workaround, thanks !

tgensol avatar May 01 '18 13:05 tgensol

Hey @tgensol Can you please share your serverless.yml config with me? (Minus any sensitive information in it)

I'm unfamiliar with the first error but the second one looks similar to a pip error I came across recently on my own personal machine but haven't found a resolution for yet.

Does running the command pip install -t . requests return an error similar to the 2nd error? Thanks for the info

ubaniabalogun avatar May 12 '18 02:05 ubaniabalogun