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
google-api-core distribution not found #476
Comments
Can you give us the contents of your requirements.txt? Can you give more details on how you deploy to the production environment? This sort of issue can happen when |
Hi Jon So I am using "Serverless" (AWS Lamba) - although for the CI infrastructure/tool I am using "Seed". Below is my requirements.txt
|
Can you share anything about how your application is packaged up for deployment? |
Getting the same error. I'm bootstrapping my dependencies into a specific dir so lets replicate that $ pip install --prefix ./tmp google-api-core This will now throw an exception: import site
import pkg_resources
site.addsitedir('./tmp/lib/python3.6/site-packages')
pkg_resources.get_distribution('google-api-core') This however works: import site
site.addsitedir('./tmp/lib/python3.6/site-packages')
import pkg_resources
pkg_resources.get_distribution('google-api-core') Seems like the import order of Any suggestions? Edit:
I don't think this is particularly nice but it gets the job done for now... |
I was having the same issue. After upgrading pip via |
In looking into this it seems older versions of serverless had issues that have been resolved in newer versions. If you update the Relevant issue: serverless/serverless#5026 |
I'm going to close this issue as @crwilcox seems to have identified the problem and provided a workaround. If this is in error, please let me know, and let me know what more is required. Thanks! |
I am with the same problem, I am with serverless in the last version and using the range of versions. |
Sourced form serverless #6875 Description
I run
my requirements.txt
Should call a Lambda function on AWS.
No errors. Similar or dependent issues: |
@tomonodes I think the responder on the original issue recommend you file the issue in https://github.com/serverless/serverless-google-cloudfunctions.
When you file issues on this repo in the future, please open a new issue rather than posting on a closed issue. Maintainers are more likely to miss posts to closed issues. Thanks! |
Hi,
I have installed the library using
Into my virtual env. Everything is working just fine. Although when I push to production and have my build server install packages from the requirements.txt file, I get the error.
Although, I can see that the package has been installed (or so the build logs say).
Production Env: Using Seed + Serverless
Any help would be great!
The text was updated successfully, but these errors were encountered: