From da9dbaa5d60e45736bc41ff6655eff30e9dc0fe2 Mon Sep 17 00:00:00 2001 From: Jack Kuan Date: Tue, 30 Jun 2015 10:56:31 -0400 Subject: [PATCH] Workaround http://bugs.python.org/issue9405 on OS X. See https://groups.google.com/forum/#!topic/web2py/WSjhhDet1UM for context. --- gluon/widget.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gluon/widget.py b/gluon/widget.py index e9902899..64720bba 100644 --- a/gluon/widget.py +++ b/gluon/widget.py @@ -1058,6 +1058,11 @@ def start_schedulers(options): print 'starting single-scheduler for "%s"...' % app_ run(app_, True, True, None, False, code) return + + # Work around OS X problem: http://bugs.python.org/issue9405 + import urllib + urllib.getproxies() + for app in apps: app_, code = get_code_for_scheduler(app, options) if not app_: