I get an error in my python app on GAE (in my localhost) saying:
variable xyz in line 23 expects string.... bool given — SUPPOSE
Now, to fix that error i remove the entire line 23 and, thus, there is no variable called xyz in my script anymore. (I used ctrl+F to find xyz and i ensured there is no xyz in my script).
Then i hit refresh on the browser and even then i get the exactly same error again.
variable xyz in line 23 expects string.... bool given — meaning the code changes from my editor have not taken any effect in the GAE runtime, i suppose.
I refreshed the page several times… I gave the chrome browser some time… I refreshed the page again… no luck. Then I noticed that the code changes took effect ONLY WHEN I stopped and re-ran the python app from the GAE launcher.
Now, having to do this every time i updated the code is a pain. How do i fix this literal chaos? GAE just got updated on my Mac OS X 10.7.5 a few days ago.
If you’re seeing this with 1.7.3 and not with 1.7.2, you’re likely running into http://code.google.com/p/googleappengine/issues/detail?id=8383
The proposed solution (although not a fix, i guess) as given in the link above is to edit the file at
$(GAE_SDK_ROOT)/google/appengine/tools/dev_appserver.py. Open the file and find the procedure definition ofdef AreModuleFilesModified(self). Then inside that procedure definition, place this lineself._dirty = Trueas the FIRST line after the docstring and BEFORE the for-loop begins.Note that there are 2
dev_appserver.pyfiles in GAEWe want to edit the file no. 2 and not the file no. 1