-
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
DistributionNotFound Errors #320
Comments
Thanks for such a quick reply. I'll look into these and report back. |
I really don't know enough about how Python loads modules to be certain, but I think #319 may be the more likely culprit. The error seems to originate on line 19 of init.py in the gcloud module:
I tried replacing this line with |
How did you install gcloud? Through pip, or from source? |
From pip as a dependency of Pyrebase. I also tried |
You could try setting |
Thanks for that tip. It appears to have copied gcloud properly, but it doesn't copy the distribution folders that are in my |
Hm, that's a really interesting theory. I haven't used |
|
I'm not sure. Another import error occurs when I try to run locally from the Zappa archive:
The OSRNG module was copied to the archive. This may or may not be related to our current issue. Is there a way I can test |
Is pycrypto installed in your package? Actually, that actually might be because the crypto library has been replaced with the linux version during packaging (which it's supposed to). Here, I'm about to publish a new version of Zappa to fix an unrelated bug anyway, but I'll take out the dist-info skip, so maybe you can try upgrading Zappa version to 0.23.1 and then see if that works? |
I would happily try that out! |
Okay, I'll publish once the build passes. Should be about 5 minutes. |
Feel free to join the Slack as well, if you want to talk about this more directly: https://slack.zappa.io/ |
Published. |
That seems to have fixed the issue! Thanks so much for your time. |
Yesssssssssss 💃 Thanks for reporting and for using Zappa! |
First of all, great work on Zappa! This is a really interesting tool.
I deployed a small Flask app over the weekend that went very smoothly. Not I'm trying to deploy something a little more sophisticated that makes use of the gcloud lib (via Pyrebase). I'm getting the following trace, which indicates that the gcloud distribution isn't available:
All dependencies are installed in my virtualenv and listed in my requirements.txt. The app runs locally without any issues. Is anyone aware of a way to fix this or am I just trying to do something that Lambda and/or Zappa isn't quite ready for? Thanks for any insight you can provide.
The text was updated successfully, but these errors were encountered: