google-app-engine-python

Hosting a Telethon User BOT on google-app-engine

ε祈祈猫儿з 提交于 2021-02-11 14:48:10
问题 I am trying to deploy a simple user bot on Google App Engine Flexible Environment running python3.7, but I get the following error. Can anyone help me with suggestions of solving this? "File "/env/lib/python3.7/site-packages/telethon/client/auth.py", line 20, in phone: typing.Callable[[], str] = lambda: input('Please enter your phone (or bot token): '), EOFError: EOF when reading a line" Thank you for your time 回答1: Telethon (obviously) requires you to login and make a normal user session on

Static image folder with google app engine

喜欢而已 提交于 2021-01-29 03:17:32
问题 There are already a lot of post dealing with this issue but I wasn't able to find a solution to my problem. I am using the Google App Engine Launcher to create a small web application using python. I need to display a picture ( /images/chartname.png ) on my page. I am using the following line of html code <img width=150 src="/images/chartname.png"> but the picture does not show up. Additionally when I open http://localhost:8080/images I get an error 404. Here's the content of my .yaml file:

Problem with Python relative paths when deploying to Google App Engine Flexible

☆樱花仙子☆ 提交于 2021-01-28 12:49:01
问题 I have simple Python app I'm trying to deploy to App Engine. The app runs perfectly in my local environment. I've been struggling for hours with absolute and relative paths. I have the following simple filter in the /utils folder, filters.py file: from .. import app @app.template_filter() def nicedate(datestring): datestring=datestring[:10] return datestring When running my app, I get the following error: from .. import app ValueError: attempted relative import beyond top-level package That's

Google App Engine The requested URL / was not found on this server not always

不打扰是莪最后的温柔 提交于 2021-01-21 10:37:05
问题 I created an Google App Engine project using Webapp2 everything was working well three days ago but today (now) surprised that it is misbehaving it sometimes saying The requested URL / was not found on this server then if I reload the url in the browser a number of times like 10 times. I can see my website. It redirect the user to login in their Google Account then checks if the user is registered and give personalized content or an information. Trying reloading again in the browser it leads

How to ignore files when running `gcloud app deploy`?

 ̄綄美尐妖づ 提交于 2020-06-07 06:16:25
问题 When I run gcloud app deploy app.yaml which files actually get uploaded? The project folder contains folders and files such as .git , .git_ignore , Makefile or venv that are irrelevant for the deployed application. How does gcloud app deploy decide which files get uploaded? 回答1: tl;dr: you should use a .gcloudignore file, not skip_files in app.yaml . While the prior two answers make use of skip_files in the app.yaml file. There is now a .gcloudignore that is created when using gcloud deploy