Serverless-python-requirements - The "path" argument must be of type string

Hey @HugoPelletier I just ran into this issue as well. What fixed it for me was to do the following in my serverless.yml

package:
  individually: true

functions:
  httprequest:
    handler: handlers.test.httprequest
    package:
      exclude:
        - ./**
      include:
        - ./handlers/test.py

give that a try but depending on your directory structure you might need to adjust the package include section for the function. Also if you can include your project directory structure that would help as AWS Lambda functions don’t follow the same rules for python module paths.

1 Like