Questions tagged [gae-python27]

Google App Engine Python Runtime Environment.

App Engine executes Python application code using a pre-loaded Python interpreter in a safe "sandboxed" environment. The python app receives web requests, performs work, and sends responses by interacting with this environment.

A Python web app interacts with the App Engine web server using the WSGI protocol, so apps can use any WSGI-compatible web application framework. App Engine includes a simple web application framework, called webapp2, to make it easy to get started. For larger applications, mature third-party frameworks, such as Django, work well with App Engine.

33 questions
1
vote
3 answers

Python doesn't do proper concatenation of string while using with open

I have a simple .txt file with bunch of lines for instance motorola phone happy cows teaching school work far far north teaching hello now all I want to do is read all these strings and print out. So if the line contains teaching I want to print…
Shadid
  • 4,133
  • 9
  • 30
  • 53
1
vote
0 answers

GAE NDB with Endpoints Proto Datastore:How do i access and modify the response data in google endpoint api for query with ndb model with python

I want to manipulate the query response of google endpoint model in python. I tried this but only fetches query response in json @Gadget.query_method(collection_fields=('locationPostCode',),path='gadgets', name='gadget.list',…
1
vote
1 answer

Could not read search indexes

Hello I have this issue when running google app engine with python (working on Udacity courses) C:\Program Files (x86)\Google\google_appengine>dev_appserver.py D:\gcloud\hw_templates INFO 2016-09-09 17:26:44,811 sdk_update_checker.py:229]…
dcas
  • 111
  • 1
  • 10
1
vote
1 answer

Cloud Datastore: ways to avoid race conditions

I have lots of views manipulating entities of same kind: def view1(request, key): user = ndb.Key(urlsafe=key).get() user.x = 1 user.put() ... def view2(request, key): user = ndb.Key(urlsafe=key).get() user.y = 2 …
glmvrml
  • 1,612
  • 2
  • 14
  • 31
1
vote
0 answers

How can I fix Google App Engine log format for Python (PyDev and Eclipse)

How can I fix default log formatting from Google App Engine? Every my line is added not need new line - it makes log double less readable - since I see half of lines. It occur when I am using standard logging module without any…
Chameleon
  • 9,722
  • 16
  • 65
  • 127
0
votes
0 answers

npm install windows-build-tools through Npm or yarn package manager does not working

No matter which package manager you are going to use, non of which doesn't work, and get stuck in the middle of the installation progress without any error! (picture below) I tried many ways to solve this, but unfortunately, doesn't work, also this…
0
votes
1 answer

Not able to taking multiple inputs in Webapp2 in python 2.7?

I am using this code to add two numbers import webapp2 class HomeHandler(webapp2.RequestHandler): def get(self): self.response.write('This is the HomeHandler.') class AddHandler(webapp2.RequestHandler): def get(self, num1,…
Aman Prakash
  • 340
  • 4
  • 15
0
votes
1 answer

Nested Dictionary formatted output issues

I've the following nested dictionary: [[u'bob', u'fred'], [u'sanders', u'harris'], [u'bob@xyz.com', u'fredharris@abc.com'], ['user1 password', 'user2 password']] Printing Key/Value I get: 1: bob 1: fred 2: sanders 2: harris 3: bob@xyz.com 3:…
0
votes
1 answer

Output python query output into string

Trying to use this syntax: import MySQLdb as mdb con = mdb.connect(host = 'host', user = 'user', passwd = 'pwd', db = 'db'); cur = con.cursor() cur.execute('select distinct name from names'); rows = cur.fetchall() print(rows) (('1',), ('2',),…
user3299633
  • 2,971
  • 3
  • 24
  • 38
0
votes
2 answers

moving individual 230 pdf files to already created folders

@nmnhI'm trying to move over 200 pdf files, each to separate folders that are already created and named 2018. The destination path for each is like- GFG-0777>>2018. Each pdf has an unique GFG-0### name that matches the folders I already created…
SJCC
  • 1
  • 1
0
votes
2 answers

python docx installed but cannot be imported

Hi I'm using windows and installing python-docx using pip. I went into C:\Python27\Scripts and ran pip install python-docx . I thought it should have been installed. But when i run a simple import from docx import Documents it ran into an…
Pang Ren Tan
  • 3
  • 1
  • 5
0
votes
1 answer

How to install request library for python27

I'm currently creating a project I'm python and I need to post to a http server.I tried using pip install requests but pip doesn't work on my computer. Pls how do I get the request library because it is not present in my python default libraries.…
Armadillo
  • 1
  • 2
0
votes
2 answers

GAE python27 return nested json

This seems such a simple task, yet it eludes me... class ViewAllDogs(webapp2.RequestHandler): """ Returns an array of json objects representing all dogs. """ def get(self): query = Dog.query() results = query.fetch(limit =…
RigidBody
  • 656
  • 3
  • 11
  • 26
0
votes
1 answer

GAE NeedIndexError:

Error returned is 500 Internal server error when the running app processes a get request for ViewDogs. At GAE Stack Driver console I get: NeedIndexError: no matching index found - recommended index is: - kind:Dog ancestor: yes properties: - …
RigidBody
  • 656
  • 3
  • 11
  • 26
0
votes
0 answers

angular 2 app engine - front end post request to back end

Hi I have an angular 2 application which i would like to deploy to gae. So back end I am using app engine python. I am trying to do a simple post request from angular front end to app engine python. So following is my app.yaml runtime:…
rahul
  • 403
  • 3
  • 6
  • 15