473,746 Members | 2,731 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

turbogears app deployment

I am trying to host a TuboGears app using Apache and mod_python on a
machine running Windows XP SP2 Professional.

Version info: apache_2.2.3-win32-x86-no_ssl.msi, python-2.4.4.msi,
mod_python-3.2.10.win32-py2.4-apache2.2.exe, mpcp-1.5.tar.gz,

=============== =============== =============== ============
1. Installed Apache.

2. Installed python, turbogears, mod_python.
Added LoadModule python_module modules/mod_python.so
to conf\httpd.conf . The mod_python example is working.

3. In order to host a simple TG application, I am using the bookmarker
application which is in the TurboGears book (v1 from Chap 4).
That works when I run it locally on my machine (also a WinXP SP2 box).
Copied the application to "C:\Program Files\Apache Software
Foundation\Apac he2.2\htdocs"

4. Made the following changes to conf\httpd.conf
Changed AllowOverride for .htaccess to: AllowOverride All

5. Renamed start file to bookmarker_star t.py. Created a file called
..htaccess in bookmarker directory which has the following

SetHandler mod_python
PythonHandler mpcp
PythonDebug On
PythonOption cherrysetup bookmarker_star t::mp_setup

6. Copied mpcp.py to the bookmarker directory (tried with installing it
using easy_install -Z mpcp, didn't help).

7. Changed bookmarker_star t.py

#turbogears.sta rt_server(Root( )) <----------- commented this line and
added the lines below.

def mp_setup():

if __name__ == "__main__":
cherrypy.server .start()
=============== =============== =============== ============

I have restarted the Apache daemon multiple times. When I try to connect
to http://machine/bookmarker, I get:

Mod_python error: "PythonHand ler mpcp"

Traceback (most recent call last):

File "C:\Python24\Li b\site-packages\mod_py thon\apache.py" , line 299,
in HandlerDispatch
result = object(req)
File "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/bookmarker/mpcp.py", line 38, in handler
setup(req, options)
File "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/bookmarker/mpcp.py", line 22, in setup
cherrypy.server .start(init_onl y=True, server_class=No ne)
"c:\python24\li b\site-packages\Cherry Py-2.2.1-py2.4.egg\cherr ypy\_cpserver.p y",
line 72, in start
Engine.start(se lf)
"c:\python24\li b\site-packages\Cherry Py-2.2.1-py2.4.egg\cherr ypy\_cpengine.p y",
line 91, in start
autoreload.main (self._start, freq=freq)
"c:\python24\li b\site-packages\Cherry Py-2.2.1-py2.4.egg\cherr ypy\lib\autorel oad.py",
line 63, in main
sys.exit(restar t_with_reloader ())

SystemExit: 1

Any idea what the problem is? Thanks for your help.
Dec 24 '06 #1
0 1039

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Grig Gheorghiu | last post by:
"TurboGears: Python on Rails?" post: http://developers.slashdot.org/developers/05/10/10/0650207.shtml?tid=156
by: Andy Leszczynski | last post by:
watch this: http://www.turbogears.org.nyud.net:8090/docs/wiki20/20MinuteWiki.mov or read this: http://www.turbogears.org.nyud.net:8090/docs/wiki2 0/page4.html should not it be: 2 def save(self, pagename, data, submit, new): 3 hub.begin()
by: seberino | last post by:
I'm interested in knowing which Python web framework is most like Ruby on Rails. I've heard of Subway and Django. Are there other Rails clones in Python land I don't know about? Which one has largest community/buzz about it?
by: m.wanstall | last post by:
Hi all, Just wondering which technology would best suit the development of custom intranets in general, things that may be industry specific would need to be included (say for an industrial design company the addition of internal memos and even extrememly business specific apps such as simple inventory control reporting). The other big issue is ease of templating as the only Plone examples I've seen have seemed to basically use the...
by: kenneth.m.mcdonald | last post by:
First, I don't intend this to be a flame war, please. Python and Ruby are the only two languages I'd willingly work in (at least amongst common languages), and TurboGears and Rails seem roughly equivalent. I'm much more knowledgable about Python, but that's a minor issue--I've been intending to learn more Ruby anyway. Here are the pros and cons that I'm aware of and consider important:
by: Thomas | last post by:
Hi there! Installing TurboGears out-of-the-box (egg-based) on Windows doesn't work because I can't compile the extensions needed for the required pysqlite (also egg- based): Installed c:\programme\python24\lib\site-packages\turbogears-1.0.1- py2.4.egg Processing dependencies for TurboGears>=1.0
by: Sells, Fred | last post by:
please excuse slightly off-topic; cannot access turbogears mailing list at the moment. There was an excellent video by James Ward that showed using turbogears to return json data to adoble's flex UI. It simply used @expose("JSON") def xxxx(): ... return dict(x=1, ...) Is there any equivalent for xml, such as
by: Kirk Strauser | last post by:
We're looking to migrate a Zope site to Django, but before getting beyond the dreaming stage, I thought I'd see what others are doing these days. If you were going to start a fairly complex site today with lots of DB integration, would you begin with Django or TurboGears, or something else entirely? I'm more interested in social, rather than technical reasons (unless there's something you absolutely love or despise about one or the...
by: Aspersieman | last post by:
On Wed, 05 Nov 2008 08:35:23 +0200, 3000 billg <billg3000@hos.twgg.org> wrote: Hi Excellent choice :)
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.