This repository was archived by the owner on Oct 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 295
Compressing libraries with zip: true not working for me, is it for anyone else? #839
Unanswered
bjornhansen
asked this question in
Q&A
-
Under the "Dealing with Lambda's size limitations" section of the readme, it suggests compressing libraries to save space. But when I try to use it as it is in the docs, I get import errors.
I'm using
custom:
pythonRequirements:
zip: true
in serverless.yml and
try:
import unzip_requirements
except ImportError:
pass
in my handler module at the very top.
Any ideas why this isn't working? Has anyone else got it working? I'm using FastAPI with mangum ASGI adapter, would this throw off the import paths?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
mm try to add too, in my case works fine, try to reinstall sls or node
zipImport: true
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment