google-app-engine

Can not make tesseract work in google app engine with python3

社会主义新天地 提交于 2020-01-05 03:51:26
问题 I am trying to deploy an app on the Google App Engine that also has OCR function. I downloaded the tesseract using homebrew und using pytesseract to wrap in Python. The OCR function works on my local system, but it does not when I upload the app to the Google App Engine. I copied tesseract folder from usr/local/cellar/tesseract and pasted into the working directory of my app. I uploaded the tesseract files and also pytesseract files to appengine. I have specified the path for tesseract with

Redirect from http to https in google cloud

安稳与你 提交于 2020-01-05 03:48:10
问题 I have deployed a site on google cloud on Nodejs environment. I want to redirect the user from http to https as i want to make https as default. I have already attached SSL certificate with my custom domain in App engine and it is working fine. I also tried to redirect to https from node but none is working on google cloud. I am having less knowledge of cloud if things did not work then i have to migrate to Heroku. 回答1: You have to setup it in your app.yaml handlers: - url: /.* script:

AttributeError: 'Article' object has no attribute 'learning_goals' — attribute not being recognized for a specific model

*爱你&永不变心* 提交于 2020-01-05 03:38:28
问题 I am using the python standard framework for google app engine and I am running into issues with getting attributes from a model. Here is my model class for the 'Article' model I am using: class Article(ndb.Model): # Entry metadata timestamp = ndb.KeyProperty(kind='Timestamp', repeated=True) # Article metadata authors = ndb.KeyProperty(kind='Author', repeated=True) title = ndb.StringProperty(indexed=False) journal = ndb.StringProperty(indexed=False) volume = ndb.StringProperty(indexed=False)

Reading contents of excel file in python webapp2

冷暖自知 提交于 2020-01-05 03:01:06
问题 I have two files namely sample.csv and sample.xlsx, all those files are stored in blobstore.I am able to read the records of csv file(which is in the blobstore) using the following code blobReader = blobstore.BlobReader(blob_key) inputFile = BlobIterator(blobReader) if inputFile is None: values = None else: try: stringReader = csv.reader(inputFile) data = [] columnHeaders = [] for rowIndex, row in enumerate(stringReader): if(rowIndex == 0): columnHeaders = row else: data.append(row) values =

cloudBackend.setCredential not setting createdBy/updatedBy/owner properties of CloudEntity

北战南征 提交于 2020-01-05 02:32:09
问题 I am using mobile backend starter and I am trying to update an entity when using the secured by id setting. I keep getting the error com.google.api.client.googleapis.json.GoogleJsonResponseException: 401 Unauthorized { "code": 401, "errors": [ { "domain": "global", "location": "Authorization", "locationType": "header", "message": "Insuffient permission for updating a CloudEntity: CE:123456 by: USER:123456", "reason": "required" } ], "message": "Insuffient permission for updating a CloudEntity

Registration with Endpoints Server FAILED (App Engine connected Android Project)

江枫思渺然 提交于 2020-01-04 23:02:18
问题 I am new to Android programming and Google App Engine. I followed the below documentation to run a sample app which registers my device: https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae When I run the app(on a device), I see the following: 1)Registration with Google Cloud Messaging...SUCCEEDED! 2)Registration with Endpoints Server...FAILED! Unable to register your device with your cloud endpoints server. Either your cloud endpoints server is not deployed to app engine

Registration with Endpoints Server FAILED (App Engine connected Android Project)

吃可爱长大的小学妹 提交于 2020-01-04 23:01:06
问题 I am new to Android programming and Google App Engine. I followed the below documentation to run a sample app which registers my device: https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae When I run the app(on a device), I see the following: 1)Registration with Google Cloud Messaging...SUCCEEDED! 2)Registration with Endpoints Server...FAILED! Unable to register your device with your cloud endpoints server. Either your cloud endpoints server is not deployed to app engine

Cannot deploy App Engine Python 3 after cleanup Cloud Storage containers/images

百般思念 提交于 2020-01-04 15:15:26
问题 I was able to deploy app engine (python 3 standard environment) before with gcloud command. But a few days ago I accidentally removed all images under Cloud Storage ( gs://us.artifacts.[My-App-ID].appspot.com/containers/images ) and I can no longer deploy new apps to this app-id. Is there any way I can get back all the files under containers/images? Thanks! Here is the log obtained from Cloud Build details: starting build "a71fe78e-463c-43a5-a463-b7c30ce2331f" FETCHSOURCE BUILD Starting Step

Google App Engine (datastore) - will a deleted key regenerate?

老子叫甜甜 提交于 2020-01-04 14:15:24
问题 I've got a simple question about datastore keys . If I delete an entity, is there any possibility that the key will be created again? or each key is unique and can be generated only one-time? Thanks. 回答1: It is definitely possible to re-use keys. Easy to test, for example using the datastore admin page: create an entity for one of your entity models using a custom/specified key name and some property values delete the entity create another one using the same key name and different property

Eclipse doesn't generate google cloud endpoint client library

寵の児 提交于 2020-01-04 12:48:10
问题 I'm trying to create my first GAE Endpoint app, and instead of generating an endpoint from a class, I'd like to create my own personalised Endpoint... is this possible? I've written this class: @Api(name="my_endpoint", path="my_endpoint") public class MyFirstEndpoint { @ApiMethod (name="my_method", path="my_method", httpMehod=HttpMethod.GET) public Response myMethod(@Named("param1") String param1) { ... } } But when I try to generate the Endpoint Client Library in Eclipse, it says that there