Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-12-2005, 06:03 AM   #1
Senior Member
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
mod_python config error

I am running Debian Sarge, Apache 2.0.53 and mod_python 3.1.3. I followed the directions from the mod_python documentation

and continue to get the following error:

Mod_python error: "PythonHandler mptest"

Traceback (most recent call last):

File "/usr/lib/python2.3/site-packages/mod_python/", line 287, in HandlerDispatch

File "/usr/lib/python2.3/site-packages/mod_python/", line 454, in import_module
f, p, d = imp.find_module(parts[i], path)

ImportError: No module named mptest

Any suggestions?
Old 05-21-2005, 07:27 PM   #2
LQ Newbie
Registered: May 2005
Posts: 1

Rep: Reputation: 0
I know this is an old thread, but I found it through google and would have appreciated some answer when I first found it

I had the same problem and realized that the name of the file ( and the name of the handler (PythonHandler mptest) have to match.

I am certain this is not the only way because if it were you would need a line for every .py file you created. I will continue to learn and post a more detailed explanation if I can.

Henry Baxter


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with mod_python tiang_ono Linux - Newbie 2 06-20-2005 09:12 PM
mod_python gaddargarson Programming 1 03-29-2005 09:45 AM
mod_python apache configuration gaddargarson Programming 2 03-09-2005 06:14 AM
installing mod_python dominant Linux - Software 0 11-26-2004 07:19 AM
Apache with mod_python mbayeb Linux - Software 2 12-24-2002 06:24 AM

All times are GMT -5. The time now is 07:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration