-
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
Error: Unable to import module 'handler': No module named builtins #1262
Comments
I had the same issue with the newest Zappa version. |
I am having the same issue with version 0.45.1 as well. I am deploying from an Amazon Linux Docker image. |
FWIW I reverted to zappa==0.32.1 (aka the wayback machine), fought my way through pip check dependency hell and seemed to have landed at a stable platform. requirements.txt attached in case it sheds any light on things. |
Same issue here with 0.45.1 |
Same here, also using 0.45.1 |
I tried 0.32.1 but that only works with python 2 it seemed. Using 0.43.1 seemed to move past this issue for me on python 3.6.3 |
I'm also getting this. I've tried deploying versions all the way back to 0.43.1 and not seeing any improvement. |
In relation to Miserlou/Zappa#1262
I recently set up a new Zappa project using zappa==0.45.1 and it worked fine. Comparing the setup of the broken project with the new, working one, I saw that my old, broken-under-zappa-0.45.1 one was running with the |
@iandees: is this fixed in 0.45.1, then? |
@scoates I managed to fix my issue with zappa 0.45.1.
The error reporting on Zappa especially on the command line is super misleading since it always says "Congratulations! Your App is Live!". I'm thinking there should be some sort of environment check when packaging up the application and sending it to AWS? |
Oh, I love the idea of a sanity check before deploying! Sucks to find out only by testing that the deployment didn't work. |
Yeah, you definitely can't There's some discussion on a post-deploy sanity check here: #1414 I think we can consider this issue closed. If not, please reopen. |
Y'all should seriously consider adding a check for the correct python version in the |
I have been struggling with this issue the past couple of days. Windows, Python 3.6. |
Context
I recently upgraded zappa to newest version (0.45.1). The module deploys well but request to gateway fail. Upon checking
Python 2.7lambda tail
I get following errorUnable to import module 'handler': No module named builtins
The zappa works fine if i downgrade to previous version but I want to upgrade to make use of async features(not implemented as yet. I have just upgraded the version of zappa).
I also cant afford to remove
slim_handler=true
as mentioned here: #1222It would be great if anyone can tell the cause of this error.
Your Environment
pip freeze
:argcomplete==1.9.2
backports.weakref==1.0.post1
base58==0.2.4
bleach==1.5.0
boto3==1.4.8
botocore==1.8.0
certifi==2017.11.5
cfn-flip==0.2.5
chardet==3.0.4
click==6.7
docutils==0.14
durationpy==0.5
Flask==0.12.2
funcsigs==1.0.2
future==0.16.0
futures==3.1.1
hjson==3.0.1
html5lib==0.9999999
idna==2.6
itsdangerous==0.24
Jinja2==2.10
jmespath==0.9.3
kappa==0.6.0
lambda-packages==0.19.0
Markdown==2.6.9
MarkupSafe==1.0
mock==2.0.0
numpy==1.13.3
pbr==3.1.1
placebo==0.8.1
protobuf==3.5.0
python-dateutil==2.6.1
python-slugify==1.2.4
PyYAML==3.12
requests==2.18.4
s3transfer==0.1.11
six==1.11.0
tensorflow==1.3.0
tensorflow-tensorboard==0.1.8
toml==0.9.3
tqdm==4.19.1
troposphere==2.1.0
Unidecode==0.4.21
urllib3==1.22
Werkzeug==0.12
wsgi-request-logger==0.4.6
zappa==0.45.1
zappa_settings.py
:The text was updated successfully, but these errors were encountered: