Skip to content

When sls pips requirements.txt, lambda embeds "back-slash" into the filename instead of using as folder delimiterΒ #263

Open
@mannharleen

Description

@mannharleen

Setup

Environment:

OS: Windows 8
sls version: 1.30.1
python: 3.6
VirtualBox: 5.2.8

snippets from serverless.yml

pythonRequirements:
dockerizePip: non-linux
plugins:

  • serverless-python-requirements

requirements.txt

jsonschema==2.6.0

sls deploy output

Produces the zip for the lambda as desired. The zip file looks like this:

image

All looks good here, until -->

I get the error "module not found" and look at AWS console to find the lambda as:
image

Problem!

You saw it there.. the file names contain the backslashes!


Updates:

1:

Issue doesn't exist if I manually zip the files (src and jsonschema folders) and upload into lambda

2:

Issues stays even if I use " dockerizePip: false "

. i.e. Not using the docker container and having sls run the pip command in windows environment.
Looks like: Problem in the way zip file is being produced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Windowswaiting-on-responseIf an issue goes without response for a while, close it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions