Problem running GAE SDK with web2py 2.14.5

134 views
Skip to first unread message

David Manns

unread,
Apr 15, 2016, 10:20:41 AM4/15/16
to web2py-users
This is probably a stupid question. I'm running on Windows 10 with latest version of Python 2.7.11 and the latest source code version of web2py. Actually, I downloaded the source code version 2.14.3 and updated via the admin console to 2.14.4 and then to 2.14.5.

My application runs fine in the web2py development environment. When I try to run using the GAE SDK launcher, I get the failure as logged below. Its my understanding that the source distribution of web2py includes pyDAL and this is presumably being used when running in the web2py test environment. I also tried installing pyDAL using pip install pydal, this appeared to work but made no difference.

What am I missing?

2016-04-15 09:56:21 Running command: "['C:\\Python27\\python.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=24080', '--admin_port=8016', 'C:\\Users\\David\\Google Drive\\My Documents\\Ocsnedb52']"
INFO     2016-04-15 09:56:24,586 devappserver2.py:769] Skipping SDK update check.
INFO     2016-04-15 09:56:24,773 api_server.py:205] Starting API server at: http://localhost:55164
INFO     2016-04-15 09:56:24,779 dispatcher.py:197] Starting module "default" running at: http://localhost:24080
INFO     2016-04-15 09:56:24,780 admin_server.py:116] Starting admin server at: http://localhost:8016
ERROR    2016-04-15 13:56:43,612 wsgi.py:263]

Traceback (most recent call last):

  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 240, in Handle

    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())

  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 299, in _LoadHandler

    handler, path, err = LoadObject(self._handler)

  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 85, in LoadObject

    obj = __import__(path[0])

  File "C:\Users\David\Google Drive\My Documents\Ocsnedb52\gaehandler.py", line 47, in <module>

    from gluon.settings import global_settings

  File "C:\Users\David\Google Drive\My Documents\Ocsnedb52\gluon\__init__.py", line 29, in <module>

    "You can also download a complete copy from http://www.web2py.com."

RuntimeError: web2py depends on pydal, which apparently you have not installed.

Probably you cloned the repository using git without '--recursive'

To fix this, please run (from inside your web2py folder):



     git submodule update --init --recursive



You can also download a complete copy from http://www.web2py.com.

INFO     2016-04-15 09:56:43,621 module.py:787] default: "GET / HTTP/1.1" 500 -

Leonel Câmara

unread,
Apr 15, 2016, 10:28:51 AM4/15/16
to web2py-users
Hey,

The error is pretty explicit. If you get web2py from github you need to make sure the git clone is recursive so you also get pyDAL The error also says how to fix it "git submodule update --init --recursive"

David Manns

unread,
Apr 16, 2016, 12:25:38 PM4/16/16
to web2py-users
Yes, I saw that, but I don't have git installed, have never used it. I download web2py in source form from web2py.com. As far as I know, this includes pyDAL, indeed I assume it must do otherwise I wouldn't be able to run my database app in web2py test environment. Isn't this what the error means when it says "or you can download a complete copy from web2py.com"?

Leonel Câmara

unread,
Apr 16, 2016, 3:55:15 PM4/16/16
to web2py-users
Yes it is. Downloading from web2py.com should indeed be fine and includes pyDAL. I don't use GAE so can't really test to find out what's wrong.

Tommi Lahtonen

unread,
Apr 18, 2016, 7:09:27 AM4/18/16
to web2py-users
I already asked about this in this thread:
https://groups.google.com/forum/#!topic/web2py/RVhRsRdXrYI

I have reported the defect to google but so far no help from them:
https://code.google.com/p/googleappengine/issues/detail?id=12852&can=4&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log

It looks like developing GAE-applications with web2py and Google App Engine Launcher is impossible right now.

Jacinto Parga

unread,
May 10, 2016, 1:35:56 PM5/10/16
to web2py-users
Deploying GAE-applications with web2py 2.14.5 linux, GAE SDK 1.9.37 seems ok

Tommi Lahtonen

unread,
May 18, 2016, 6:05:52 AM5/18/16
to web2py-users
On Monday, April 18, 2016 at 2:09:27 PM UTC+3, Tommi Lahtonen wrote:

There is now a workaround available. You can add appengine_config.py file with the following content:

import sys
sys.platform = 'linux3'

For more detailed info check the appengine issue page.
 

Tommi Lahtonen

unread,
May 18, 2016, 6:14:20 AM5/18/16
to web2py-users


On Tuesday, May 10, 2016 at 8:35:56 PM UTC+3, Jacinto Parga wrote:
Deploying GAE-applications with web2py 2.14.5 linux, GAE SDK 1.9.37 seems ok


I just tried web2py 2.14.6 on windows with appengine launcher 1.9.37 and it does not work without adding the appengine_config.py

Tommi Lahtonen

unread,
May 18, 2016, 6:14:38 AM5/18/16
to web2py-users


On Tuesday, May 10, 2016 at 8:35:56 PM UTC+3, Jacinto Parga wrote:
Deploying GAE-applications with web2py 2.14.5 linux, GAE SDK 1.9.37 seems ok

dlypka

unread,
Jul 17, 2016, 7:40:45 AM7/17/16
to web2py-users
I found the fix here:
The key step is:
You can add a appengine_config.py python file to the root directory of your application with the following contents:

    import sys
    sys.platform = 'linux3'
Reply all
Reply to author
Forward
0 new messages