NameError: global name 'Response' is not defined

Ben Kaplan bskaplan14 at
Thu Apr 24 21:24:43 CEST 2008

Are you importing pylons? How are you doing it? If you are doing "from pylons import Response" or "from pylons import *", then you have another problem. If you are just doing "import pylons", then you need to do "return pylons.Response(...)"

----- Original Message ----
From: Lalit <lalitkrishna at>
To: python-list at
Sent: Thursday, April 24, 2008 10:27:36 AM
Subject: NameError: global name 'Response' is not defined


I am very new to web development.  I started with Pylons. I am using as reference to
create a sample web page using pylons.

I got stuck up at step 4.3 i.e when modifying controller to "return
Response('<p>firstapp default</p>')"

I am getting error of <type 'exceptions.NameError'>: global name
'Response' is not defined

It seems I am missing some package. I am not really sure. I installed
python 2.5 and through easy_install imported pakages (pylons).

Any clues would be appreciated


Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list