-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zappa package with slim_handler=true doesn't include Werkzeug package (introduced v0.46.0) #1547
Comments
Same here! I just downgraded to |
Same here, downgrading to 0.45.1 solves the problem. |
Had the same issue and can confirm that downgrading to 0.45.1 solves it. |
@sheats @giovannicimolin @5bodnar can any of you try with the current zappa master branch? |
@jneves I've been out of town all week but finally got a chance to try it. I hit the following issue though... have any recommendations to avoid this? Seems like the zappa code is treating the .egg-link file as a directory. These are the changes I made to use the zappa master branch.
|
@jneves thanks, that helped. Your fix appears to fix the |
Cool!On 8 Jul 2018 16:42, Peter Sheats <[email protected]> wrote:@jneves thanks, that helped. Your fix appears to fix the No module named 'werkzeug' error in my repo.
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
|
…han the link itself. addresses Miserlou#1547 and Miserlou#1549
Context
I thought I was running into issue #64 but turns out I found a regression introduced in v0.46 related to how the handler_venv is packaged and uploaded when using slim_handler.
I created a small repo to show the problem: https://github.com/sheats/zappa_issue
If you keep
zappa==0.46.0
(or 0.46.1) inrequirements.txt
and deploy the function the only thing that prints in the logs is:If you change requirements.txt to
zappa==0.45.1
and update the function the problem goes away.When I unzipped the handler venv zip after running
zappa package
I only see the following:Expected Behavior
I expect the logs to show other errors or normal successful logs.
Actual Behavior
handler.py tries to import werkzeug on line 17 but fails because Werkzeug wasn't included in the handler_venv zipped package.
Possible Fix
Don't know the code well enough to come up with a fix strategy yet.
Steps to Reproduce
Your Environment
Everything is in the repo I referenced.
The text was updated successfully, but these errors were encountered: