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
"DistributionNotFound" error after deployment #1601
Comments
Seems to be similar to #1555 - this error is caused when |
Some updates. This seems to be a environmental configuration issue, rather than simple Zappa issue. The deployment is succesfull if I run it locally from my dev machine, but currently fails on our CI -machines. I'll provide some extra info if someone else might suffer from the same issue. Also if someone here has experience configuring Circle2.0 with Zappa, some additional insight might be appreaciated :) |
@4lph4-Ph4un I pinpointed the issue (see #1602). It depends on the system you're using, and whether pip installs dist-info or egg-info directories. Zappa doesn't include egg-info directories in the deployment package, which causes the error. |
Ah, true and thank you for the description! :) I wonder if there is a way to make Zappa to include these even on docker machines that Circle uses? I unfortunately am not able to go and change code inside zappa core :/ |
The list of exclusions is hard-coded inside Zappa core.py, so I don't see a way to dynamically modify that :( Since I also encountered another bug in Zappa (#1598), I created a fork of this repo and applied two fixes (one simply removes the "egg-info" from the excluded list, and one prevents it from trying to tag the S3 bucket) - those may not be an ideal solution for those bugs, but they do what I need. I then use |
Alright! That seems like a fairly good workaround :) Let's hope the fix for this is up and coming! Thank you! |
remove egg-info from excludes (Fixes #1601)
Context
After deploying I get an error stating:
zappa tail
provides this info:Expected Behavior
Zappa deploys the packaged application while libraries are intact
Actual Behavior
Dependency is not found.
Your Environment
pip freeze
:zappa_settings.py
:The text was updated successfully, but these errors were encountered: