AttributeError: 'module' object has no attribute 'running_on_devserver'

463 views
Skip to first unread message

gso...@gmail.com

unread,
Nov 21, 2016, 2:08:48 AM11/21/16
to Google Cloud Endpoints
Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler handler, path, err = LoadObject(self._handler) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 85, in LoadObject obj = __import__(path[0]) File "/base/data/home/apps/b~podscript-150206/20161121t160311.397207122231607259/main.py", line 92, in <module> api = endpoints.api_server([EchoApi]) File "/base/data/home/apps/b~podscript-150206/20161121t160311.397207122231607259/lib/endpoints/apiserving.py", line 495, in api_server if control_wsgi.running_on_devserver(): AttributeError: 'module' object has no attribute 'running_on_devserver'

I'm following quick start tutorial at https://cloud.google.com/endpoints/docs/frameworks/python/quickstart-frameworks-python and get above error message in Logs Viewer.
I'm using standard app engine environment with python. What do I have to check for this error?

Shay Erlichmen

unread,
Nov 23, 2016, 5:33:47 AM11/23/16
to gso...@gmail.com, Google Cloud Endpoints
bumping this as I get the same error also after following the tutorial.

--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/4f318bd7-25c9-4aa3-835a-3b7a340fa7b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shay Erlichmen

unread,
Nov 23, 2016, 5:53:18 AM11/23/16
to gso...@gmail.com, Google Cloud Endpoints
in the mean time chnage the following lines in 

from:
  if control_wsgi.running_on_devserver():

to:
  server_software = os.environ.get('SERVER_SOFTWARE', '')

  running_on_devserver = server_software.startswith('Development')

  if running_on_devserver:

On Wed, Nov 23, 2016 at 12:33 PM, Shay Erlichmen <erli...@gmail.com> wrote:
bumping this as I get the same error also after following the tutorial.
On Mon, Nov 21, 2016 at 9:08 AM, <gso...@gmail.com> wrote:
Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler handler, path, err = LoadObject(self._handler) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 85, in LoadObject obj = __import__(path[0]) File "/base/data/home/apps/b~podscript-150206/20161121t160311.397207122231607259/main.py", line 92, in <module> api = endpoints.api_server([EchoApi]) File "/base/data/home/apps/b~podscript-150206/20161121t160311.397207122231607259/lib/endpoints/apiserving.py", line 495, in api_server if control_wsgi.running_on_devserver(): AttributeError: 'module' object has no attribute 'running_on_devserver'

I'm following quick start tutorial at https://cloud.google.com/endpoints/docs/frameworks/python/quickstart-frameworks-python and get above error message in Logs Viewer.
I'm using standard app engine environment with python. What do I have to check for this error?

--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsubscri...@googlegroups.com.

Ki Sung Bae

unread,
Nov 23, 2016, 6:16:42 AM11/23/16
to Shay Erlichmen, Google Cloud Endpoints

Got it, thanks!


2016년 11월 23일 (수) 오후 7:53, Shay Erlichmen <erli...@gmail.com>님이 작성:
in the mean time chnage the following lines in 

from:
  if control_wsgi.running_on_devserver():

to:
  server_software = os.environ.get('SERVER_SOFTWARE', '')

  running_on_devserver = server_software.startswith('Development')

  if running_on_devserver:
On Wed, Nov 23, 2016 at 12:33 PM, Shay Erlichmen <erli...@gmail.com> wrote:
bumping this as I get the same error also after following the tutorial.
On Mon, Nov 21, 2016 at 9:08 AM, <gso...@gmail.com> wrote:
Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler handler, path, err = LoadObject(self._handler) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 85, in LoadObject obj = __import__(path[0]) File "/base/data/home/apps/b~podscript-150206/20161121t160311.397207122231607259/main.py", line 92, in <module> api = endpoints.api_server([EchoApi]) File "/base/data/home/apps/b~podscript-150206/20161121t160311.397207122231607259/lib/endpoints/apiserving.py", line 495, in api_server if control_wsgi.running_on_devserver(): AttributeError: 'module' object has no attribute 'running_on_devserver'

I'm following quick start tutorial at https://cloud.google.com/endpoints/docs/frameworks/python/quickstart-frameworks-python and get above error message in Logs Viewer.
I'm using standard app engine environment with python. What do I have to check for this error?

--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.


--
Kind regards,
Ki-Sung Bae

Brad Friedman

unread,
Nov 23, 2016, 4:37:01 PM11/23/16
to Google Cloud Endpoints, erli...@gmail.com, gso...@gmail.com
Hey all, if you upgrade your Endpoints packages using pip, the issue should be resolved. Thanks for pointing this out!


On Wednesday, November 23, 2016 at 6:16:42 AM UTC-5, Ki Sung Bae wrote:

Got it, thanks!


2016년 11월 23일 (수) 오후 7:53, Shay Erlichmen <erli...@gmail.com>님이 작성:
in the mean time chnage the following lines in 

from:
  if control_wsgi.running_on_devserver():

to:
  server_software = os.environ.get('SERVER_SOFTWARE', '')

  running_on_devserver = server_software.startswith('Development')

  if running_on_devserver:
On Wed, Nov 23, 2016 at 12:33 PM, Shay Erlichmen <erli...@gmail.com> wrote:
bumping this as I get the same error also after following the tutorial.
On Mon, Nov 21, 2016 at 9:08 AM, <gso...@gmail.com> wrote:
Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler handler, path, err = LoadObject(self._handler) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 85, in LoadObject obj = __import__(path[0]) File "/base/data/home/apps/b~podscript-150206/20161121t160311.397207122231607259/main.py", line 92, in <module> api = endpoints.api_server([EchoApi]) File "/base/data/home/apps/b~podscript-150206/20161121t160311.397207122231607259/lib/endpoints/apiserving.py", line 495, in api_server if control_wsgi.running_on_devserver(): AttributeError: 'module' object has no attribute 'running_on_devserver'

I'm following quick start tutorial at https://cloud.google.com/endpoints/docs/frameworks/python/quickstart-frameworks-python and get above error message in Logs Viewer.
I'm using standard app engine environment with python. What do I have to check for this error?

--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsub...@googlegroups.com.

Shay Erlichmen

unread,
Nov 24, 2016, 6:13:48 AM11/24/16
to Brad Friedman, Google Cloud Endpoints, Ki Sung Bae
While were at it, is see this in the logs under the _/ah/start handler:

File referenced by handler not found: $PYTHON_LIB/default_start_handler.py

It doesn't looks harmful but it is logged under WARNING severity 

On Wed, Nov 23, 2016 at 11:37 PM, Brad Friedman <frie...@google.com> wrote:
Hey all, if you upgrade your Endpoints packages using pip, the issue should be resolved. Thanks for pointing this out!

On Wednesday, November 23, 2016 at 6:16:42 AM UTC-5, Ki Sung Bae wrote:

Got it, thanks!


2016년 11월 23일 (수) 오후 7:53, Shay Erlichmen <erli...@gmail.com>님이 작성:
in the mean time chnage the following lines in 

from:
  if control_wsgi.running_on_devserver():

to:
  server_software = os.environ.get('SERVER_SOFTWARE', '')

  running_on_devserver = server_software.startswith('Development')

  if running_on_devserver:
On Wed, Nov 23, 2016 at 12:33 PM, Shay Erlichmen <erli...@gmail.com> wrote:
bumping this as I get the same error also after following the tutorial.
On Mon, Nov 21, 2016 at 9:08 AM, <gso...@gmail.com> wrote:
Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler handler, path, err = LoadObject(self._handler) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 85, in LoadObject obj = __import__(path[0]) File "/base/data/home/apps/b~podscript-150206/20161121t160311.397207122231607259/main.py", line 92, in <module> api = endpoints.api_server([EchoApi]) File "/base/data/home/apps/b~podscript-150206/20161121t160311.397207122231607259/lib/endpoints/apiserving.py", line 495, in api_server if control_wsgi.running_on_devserver(): AttributeError: 'module' object has no attribute 'running_on_devserver'

I'm following quick start tutorial at https://cloud.google.com/endpoints/docs/frameworks/python/quickstart-frameworks-python and get above error message in Logs Viewer.
I'm using standard app engine environment with python. What do I have to check for this error?

--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsubscri...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages