Need to use the "Google-cloud-ndb" library in Python 2.7 version

122 Views Asked by At

We are currently using the Python 2.7 and Google App Engine NDB client. Planning to migration from Google App Engine to Google Cloud NDB

As per docs, "google-cloud-ndb" library officially supports for Python 2.7 and Python 3.x as well. So, we are trying to access the datastore through google-cloud-ndb.

We are facing the below trace which is related to DisturbutionNotFound Error

raise DistributionNotFound(req, requirers) DistributionNotFound: The 'google-cloud-ndb' distribution was not found and is required by the application

1

There are 1 best solutions below

4
NoCommandLine On

In Google App Engine, Python 2.7 doesn't support the use of requirements.txt file. This means you have to install all the modules/libraries you need for your App and deploy it together with your App to production. In your specific case, it means you have to install google-cloud-ndblibrary.

Follow the instructions here to install the libraries you need to run your App