hi i have a working website in python web2py that run in Google App Engine Standard Environment i want to pass the site to Google App Engine VM

67 views
Skip to first unread message

yar michl

unread,
Mar 20, 2016, 12:17:32 PM3/20/16
to Google App Engine
hi i have a working website in python web2py that run in Google App Engine Standard Environment
i want to pass the site to Google App Engine VM so that i can use scipy package
can it been done,i did try  do it with the guide migrating-an-existing-app but was unsuccessful


Thank for the help

Jon Parrott

unread,
Mar 20, 2016, 3:20:36 PM3/20/16
to Google App Engine
Hi, can you give us more details? Are you getting any error messages? What step are you stuck on?

yar michl

unread,
Mar 21, 2016, 2:14:49 PM3/21/16
to Google App Engine
hi yes 
i did upload the website site after that i change the yaml file to
runtime: python27
vm: true 
the upload work fine and in the  end i get the message

Checking if updated app version is serving.
02:02 PM Enough VMs ready (2/2 ready).
02:02 PM Completed update of app: baraln-ee, version: 1

when i try to get to the website i got a empty page


the requirements file 
webapp2 == 2.5.2
earthengine-api == 1.7.1
numpy == 1.10.4
Jinja2 == 2.8


the full yaml file
application: baraln-ee
version: 1

runtime: python27
vm: true 

api_version: 1
threadsafe: true

handlers:
- url: /static/
  static_dir: static
  application_readable: true
  secure: never
- url: /.*
  script: server.app
  secure: never

skip_files:
- ^(.*/)?#.*#$
- ^(.*/)?.*~$
- ^(.*/)?.*\.py[co]$
- ^(.*/)?.*/RCS/.*$
- ^(.*/)?\..*$
- Crypto

the model that i  Importing  the python script

import os
import cgi
import config
import datetime
import time
import ee
import jinja2
import webapp2
import time
import sys
import json
from math import *
import numpy as np

yar michl

unread,
Mar 21, 2016, 2:17:40 PM3/21/16
to Google App Engine
also in whan iinspect the page i got 
Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Jon Parrott

unread,
Mar 21, 2016, 2:28:59 PM3/21/16
to Google App Engine
The compat runtime doesn't currently have the OS-level requirements for numpy. You'll need to add them yourself by creating a Dockerfile.





--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/RJd9DcABHn4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/4eaf4ef1-3476-41fe-9328-864c0e240238%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

yar michl

unread,
Mar 21, 2016, 2:32:31 PM3/21/16
to Google App Engine
thank for the help
i wil work with the guide you share
Reply all
Reply to author
Forward
0 new messages