Deploying of a web2py based webapp on GAE fails with 'No module named 'google'
60 views
Skip to first unread message
Sreedevi
unread,
Feb 22, 2020, 6:49:43 PM2/22/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py-users
My aim is to create a python 3 based webapp using web2py 2.18.5 + google cloud sdk 281.0.0 + python 3.7.6. I am using the web2py's inbuilt welcome app.
The app.yaml and requirements.txt file that I am using are attached
I can run this web2py app on my local machine and view the welcome app.
But when I try to deploy the same app onto the cloud, I get 502 Bad Gateway, nginx error. The logs corresponding to this error are as follows Traceback (most recent call last): File "/env/lib/python3.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker worker.init_process() File "/env/lib/python3.7/site-packages/gunicorn/workers/gthread.py", line 92, in init_process super().init_process() File "/env/lib/python3.7/site-packages/gunicorn/workers/base.py", line 119, in init_process self.load_wsgi() File "/env/lib/python3.7/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi self.wsgi = self.app.wsgi() File "/env/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/env/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load return self.load_wsgiapp() File "/env/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp return util.import_app(self.app_uri) File "/env/lib/python3.7/site-packages/gunicorn/util.py", line 358, in import_app mod = importlib.import_module(module) File "/opt/python3.7/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "/srv/main.py", line 1, in import gaehandler File "/srv/gaehandler.py", line 48, in from google.appengine.ext import webapp ModuleNotFoundError: No module named 'google'