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
Error: Unable to import module 'handler': No module named builtins #1222
Comments
If I change |
Recreated the virtual env with the name |
FWIW - reverting |
I've encountered this error (Unable to import module 'handler': No module named builtins) recently and managed to fix it by moving all of the modules in env/lib/dist-packages to env/lib/site-packages. I haven't done any additional testing to figure out why this is a problem for the latest version of zappa but not earlier ones. |
I've been running into this issue zappa==0.45.1 as well. My workaround is to install zappa into the virtualenv along with any other dependencies. |
Guys, why this is still happening?? Degrading it doesn't fix the issue at all |
Also getting this error in zappa==0.45.1 |
@bogdanalov I had to do |
@Shaun1 Thanks. I found another issue on Amazon Linux. When installing packages in the virtualenv it is installing them in the dist-packages folder instead of the site-packages one. Move all packages to the site-packages folder and empty the dist-packages one. The thing is you should make this steps everytime when adding new package... |
Turning slim_handler to true and uninstalling zappa from the virtualenv somehow works for me.. I have deployed some Lambda functions like this and it is working. |
I'm currently having this same issue on python3.6/Ubuntu Xenial, and none of the fixes are working. The commands I'm running are as follows, where
|
I used pip instead of pip3 and upgraded the zappa module, it worked |
Context
Deploying a new Flask Python 2.7 app (we have another one working well) and getting this error.
Expected Behavior
The error should not be thrown
Actual Behavior
Your Environment
2.7.14
pip freeze
:zappa_settings.py
:The text was updated successfully, but these errors were encountered: