Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5994243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:47:26+00:00 2026-05-22T23:47:26+00:00

I recently began my work using web.py, but I’m stuck with a problem since

  • 0

I recently began my work using web.py, but I’m stuck with a problem since web.py needs to have flup installed.

I downloaded flup from http://www.saddi.com (download Link) and then extracted it to a folder on my desktop.

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

However, upon running the code below (taken from webpy.org):

#!/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()

I get this error:

AttributeError: 'module' object has no
attribute 'fromfd'

Following this site‘s advice, I intended to change the contents of a file called fcgi_base.py. However this file is included in the said egg file. What I want to know is how do I change this Python file?

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?

Thank you for reading. Also, if you’ve had experience making web.py work, your advice would be much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:47:27+00:00Added an answer on May 22, 2026 at 11:47 pm

    You need to specify the address and port that you’ve configured apache to forward to. For example, if you configured Apache’s FCGI to forward to 127.0.0.1:8080 you would do:

    web.wsgi.runwsgi = lambda func, addr=('127.0.0.1', 8080): web.wsgi.runfcgi(func, addr)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently began using BIRT and have developed a report to use with my
I've recently began using dTrace and have noticed just how awesome it is. Its
I recently began profiling an osgi java application that I am writing using VisualVM.
I've recently began using C++ with XCode and I'm starting to miss the integrated
Recently I've been doing lots of weekend coding, and have began to really need
I have recently written a dynamic querying tool using expression trees and as I
I have recently begun learning the Win32 API using this tutorial: http://www.winprog.org/tutorial/ (though I'm
I have just began recently to learn Haskell, more specifically on the topics of
I've recently begun doing ASP.NET MVC work with others using Visual Studio. While MonoDevelop
I've been using Allegro 5 for a while now, and recently began looking into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.