On version webapp2-2.2 running python 2.6.1 OSX. I kept getting this error
when running a simple app.
handlers.CGIHandler().run(app)
NameError: global name 'app' is not defined
So I modified webapp2.py from
1580 else: # pragma: no cover
1581 handlers.CGIHandler().run(app)
to
1580 else: # pragma: no cover
1581 handlers.CGIHandler().run(self)
and it worked. Looking at previous versions, run is passed with 'self' instead
of 'app'.
Original issue reported on code.google.com by a...@wongz.org on 31 Jul 2011 at 7:55
Original issue reported on code.google.com by
a...@wongz.org
on 31 Jul 2011 at 7:55