Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Error: Unable to import module 'handler': No module named builtins #1222
Deploying a new Flask Python 2.7 app (we have another one working well) and getting this error.
The error should not be thrown
referenced this issue
Nov 27, 2017
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.
added a commit
Feb 10, 2018
@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...
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