serverless-python-individually icon indicating copy to clipboard operation
serverless-python-individually copied to clipboard

Virtualenv 20.x is not supported

Open jesse-peters opened this issue 4 years ago • 1 comments

I had to downgrade to virtualenv 16.7.10 to get this to work, otherwise I get the following error when I attempt a sls package:

Serverless: [pyIndividually] Installing packagings: python testproject/lib/_requirements.py testproject/requirements.txt testproject/lib
Serverless: [pyIndividually] Traceback (most recent call last):
  File "testproject/lib/_requirements.py", line 57, in <module>
    virtualenv.main()

serverless.yml

service: testproject
frameworkVersion: "2.11.1"

package:
    individually: True
    exclude:
        - "**/*"
plugins:
    - serverless-python-individually

provider:
    name: aws
    runtime: python3.6
    region: us-west-2

functions:
    testproject:
        handler: testproject/wrap.handler
        package:
            include:
                - testproject/**
custom:
    pyIndividually:
        wrap:testproject: testproject/runner.handle_message

jesse-peters avatar Nov 19 '20 20:11 jesse-peters

I made a PR to fix this error : #22

paulchaum avatar Jun 14 '21 12:06 paulchaum