How to install Python's flup on Windows for Apache? (to make web.py work)
<p>I recently began my work using web.py, but I'm stuck with a problem since web.py needs to have flup installed. </p>

<p>I downloaded flup from <a href="http://www.saddi.com" rel="nofollow">http://www.saddi.com</a> (<a href="http://www.saddi.com/software/flup/dist/flup-1.0.2.tar.gz" rel="nofollow">download Link</a>) and then extracted it to a folder on my desktop. </p>

<p>I then navigate to the folder and run setup.py install. On success, I get an egg file in my <code>C:\Python27\Lib\site-packages</code>.</p>

<p>However, upon running the code below (taken from <a href="http://webpy.org/tutorial3" rel="nofollow">webpy.org</a>):</p>

<pre><code>#!/usr/bin/python

import web

urls = ("/.*", "hello")
app = web.application(urls, globals())

class hello: 
    def GET(self):
        return 'Hello, world!'

web.wsgi.runwsgi = lambda func, addr=None: web.wsgi.runfcgi(func, addr)
if __name__ == "__main__":
    app.run()
</code></pre>

<p>I get this error: </p>

<pre><code>AttributeError: 'module' object has no
attribute 'fromfd'
</code></pre>

<p>Following <a href="http://blog.charliezhu.com/2007/09/27/setup-webpy-and-flup-on-windows-apache-wamp/" rel="nofollow">this site</a>'s advice, I intended to change the contents of a file called <code>fcgi_base.py</code>. However this file is included in the said egg file. What I want to know is <strong>how do I change this Python file?</strong></p>

<p>I think I can open the egg file with winrar and then edit the said file, but should I change it back to an egg file again to actually make it work?</p>

<p>Thank you for reading. Also, if you've had experience making web.py work, your advice would be much appreciated.</p>
