Skip to main content

All Questions

0 votes
1 answer
63 views

how to conver new key into old in python3 ndb

Here my code new_key= ndb.Key(urlsafe = request.user_key) this is written in python3 ndb this will return us key and we change in urlsafe key = new_key.urlsafe() key.decode(encoding="utf-8&...
Jaskaran Singh's user avatar
3 votes
1 answer
183 views

Unable to connect to cloud datastore from local legacy project based on python2.7 and django 1.4

I have a django==1.4 project (python==2.7) that I wanted to run and make some changes. I am unable to connect to cloud datastore from my local codebase. Right now, when I run the project using ...
Akif Hussain's user avatar
0 votes
0 answers
150 views

Google Cloud Platform App Engine - installing a custom runtime

I'm using google app-engine (standard environment) in GCP with python2.7 interpreter. I want to use a different python compiler. Specifically, I want to use cython [https://github.com/cython/cython][1]...
Prakash Premkumar's user avatar
0 votes
0 answers
460 views

Why does Python 3.11 is slower than Python 2.7 in Google's App Engine Standard Environment?

We had an App Engine's standard environment application running in 2.7, and we upgraded it to 3.11. Services/frameworks used by old app: Shared Memcache Task Queue Google's Discovery library (for Big ...
Rafael's user avatar
  • 1
0 votes
1 answer
303 views

Start datastore emulator and loading the older locally created datastore.db file

In the process of moving from python 2.7 to python 3 on GAE, we want to start moving the code with minimal risk. One approach that sounds good to us is to migrate our app pages and features in ...
Khaled's user avatar
  • 927
0 votes
1 answer
106 views

Get all entities for namespace -- KindError while trying to fetch all entities of a namespace from datastore appengine python 2.7

I try to get all entities from a namespace in order to delete them in a later step. Im using appengine together with datastore and ndb lib using python2.7 I have a simple query to get all entities: ...
Potis23's user avatar
  • 498
0 votes
1 answer
550 views

How to migrate Google App Engine from Python2.7 and DataStore to Python3

My website was built using Google AppEngine, DataStore and Python2.7. It’s no longer working This site can’t be reached. I need to migrate to Python3 but I cannot identify which migration guide is ...
Mesye Konpe's user avatar
0 votes
1 answer
97 views

How do I sum a list of attributes from a Google Datastore query result?

Looking for an efficient way to sum a list of attributes using ndb queries. Currently I just fetch the results and run a for loop over them. class Player(ndb.Model): score = ndb.IntegerProperty() ...
user1961's user avatar
  • 1,430
0 votes
1 answer
80 views

Query on children table and order result of a query by parent's fields at NDB

At my model, I have two tables like the ones below that are related: from google.appengine.ext import ndb class Parent(ndb.Model): name = ndb.StringProperty() class Child(ndb.Model): parent =...
Erfan's user avatar
  • 535
1 vote
1 answer
382 views

How can I fix Google App Engine dev_appserver.py: watcher_ignore_re flag "is not JSON serializable" error? [duplicate]

I wanna first point out that I tried every answers mentioned in this thread. None of these seem to fix the issue and the question already dates a while back. Issue I want to run the dev_appserver.py ...
Sebastien De Varennes's user avatar
9 votes
3 answers
2k views

App Engine Python 2.7 - ImportError: cannot import name apiproxy

With the upgrade to Google Cloud SDK 360.0.0-0 i started seeing the following error when running the dev_appserver.py command for my Python 2.7 App Engine project. File "/home/.....................
danielx's user avatar
  • 1,793
1 vote
0 answers
189 views

Migrating from protoRPC (Python 2.7 to Python 3) Google App engine

We have an Google app Engine py2.7 standard. We use cloud endpoint framework to make web apis. We also use protorpc to make serialization and deserialize data. For example @cloud_endpointapi.api_class(...
Jack tileman's user avatar
9 votes
2 answers
15k views

Cannot install google-api-core package in our python app (Google Cloud Platform) due to conflicting dependencies (Python 3)

When I tried to install the Google Core API package, it always gets errors for every different version of this package. The app is run in Python 3, and I got the following logs: The user requested ...
Jingbin Cao's user avatar
0 votes
1 answer
90 views

Google AppEngine dev_appserver raises ImportError despite package being installed in virtualenv and available in Google Cloud SDK

I'm working on a Google AppEngine project that uses the legacy Python 2.7 runtime - my team is migrating away from this, however we're still using it for the time being. Local development has worked ...
dkhaupt's user avatar
  • 2,308

15 30 50 per page
1
2 3 4 5
109