I have the same issue. Have you find any solution.
El domingo, 23 de febrero de 2020, 0:49:43 (UTC+1), Sreedevi escribió:
>
> 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'
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/8d8f986c-3b3e-4df7-b3bb-0d228e50b118%40googlegroups.com.