LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

Rep: Reputation: 45
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

http://www.modpython.org/live/curren...t-testing.html

and continue to get the following error:

<pre>
Mod_python error: "PythonHandler mptest"

Traceback (most recent call last):

File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 287, in HandlerDispatch
log=debug)

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

ImportError: No module named mptest
</pre>

Any suggestions?
 
Old 05-21-2005, 07:27 PM   #2
pyhenry
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 (mptest.py) 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
 
  


Reply


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 02:00 AM.

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