Showing posts from June, 2012

Broken pipe error in Flask server

I am using Flask for some of my internal services. If you haven't used Flask, I would absolutely recommend that you check it out.

Recently I got the following error while I was attempting to serve a page from template. In an attempt to troubleshoot the error, I wasted almost half an hour. - - [19/Jun/2012 17:48:37] "POST /" 500 - ---------------------------------------- Exception happened during processing of request from ('', 55176) Traceback (most recent call last): File "/usr/lib/python2.7/", line 284, in _handle_request_noblock self.process_request(request, client_address) File "/usr/lib/python2.7/", line 310, in process_request self.finish_request(request, client_address) File "/usr/lib/python2.7/", line 323, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python2.7/", line 641, in…

Installing Emacs 24.1

I was excited to see the announcement that Emacs 24.1 has been released.  I wanted to install and try. There were a few glitches that I faced during the installation. I thought it might be useful for someone who might be hitting the same blocks.

Once I downloaded the source code and verified the signature, I unzipped the Emacs 24.1 source code. The first "configure" run gave the following error:
configure: error: You seem to be running X, but no X development libraries were found. You should install the relevant development files for X and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make sure you have development files for image handling, i.e. tiff, gif, jpeg, png and xpm. If you are sure you want Emacs compiled without X window support, pass --without-x to configure. To address this error I had to do the following: sudo apt-get install libgtk2.0-dev libtiff4-dev libgif-dev libjpeg62-dev libpng12-dev libxpm-dev Then when I attempted to run conf…