Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > PROBLEM with MOD_PYTHON

Reply
Thread Tools

PROBLEM with MOD_PYTHON

 
 
dan84
Guest
Posts: n/a
 
      10-28-2006
I don't understand this error , in the (Apache) errorlog I read this
message :

[Sat Oct 28 14:04:03 2006] [error] make_obcallback: could not import
mod_python.apache.\n
[Sat Oct 28 14:04:03 2006] [error] make_obcallback: Python path being
used "['C:\\\\Python24\\\\python24.zip', '.\\\\DLLs', '.\\\\lib',
'.\\\\lib\\\\plat-win', '.\\\\lib\\\\lib-tk',
'C:\\\\Programmi\\\\Apache Group\\\\Apache2\\\\bin']".
[Sat Oct 28 14:04:03 2006] [error] python_handler: no interpreter
callback found.
[Sat Oct 28 14:04:03 2006] [error] [client 127.0.0.1] python_handler:
Can't get/create interpreter.

I have Apache/2.0.59 (Win32) mod_python/3.2.10 Python/2.4.3
I have read all the manuals, but I don't understand where I am wrong.

thanks so much
Marco.

 
Reply With Quote
 
 
 
 
Chetan
Guest
Posts: n/a
 
      10-28-2006
"dan84" <(E-Mail Removed)> writes:
> I don't understand this error , in the (Apache) errorlog I read this
> message :
>
> [Sat Oct 28 14:04:03 2006] [error] make_obcallback: could not import
> mod_python.apache.\n
> [Sat Oct 28 14:04:03 2006] [error] make_obcallback: Python path being
> used "['C:\\\\Python24\\\\python24.zip', '.\\\\DLLs', '.\\\\lib',
> '.\\\\lib\\\\plat-win', '.\\\\lib\\\\lib-tk',
> 'C:\\\\Programmi\\\\Apache Group\\\\Apache2\\\\bin']".
> [Sat Oct 28 14:04:03 2006] [error] python_handler: no interpreter
> callback found.
> [Sat Oct 28 14:04:03 2006] [error] [client 127.0.0.1] python_handler:
> Can't get/create interpreter.
>
> I have Apache/2.0.59 (Win32) mod_python/3.2.10 Python/2.4.3
> I have read all the manuals, but I don't understand where I am wrong.
>
> thanks so much
> Marco.

Even if there is nothing Apache specific, doesn't it look odd that the
path has 4 backslashes? Even accounting for half of those being added at the
time of printing, it would appear that Apache is trying to use the path that
contains two backslashes as path separator but there needs to be only one.

Chetan

 
Reply With Quote
 
 
 
 
J. Clifford Dyer
Guest
Posts: n/a
 
      10-28-2006
dan84 wrote:
> I don't understand this error , in the (Apache) errorlog I read this
> message :
>
> [Sat Oct 28 14:04:03 2006] [error] make_obcallback: could not import
> mod_python.apache.\n
> [Sat Oct 28 14:04:03 2006] [error] make_obcallback: Python path being
> used "['C:\\\\Python24\\\\python24.zip', '.\\\\DLLs', '.\\\\lib',
> '.\\\\lib\\\\plat-win', '.\\\\lib\\\\lib-tk',
> 'C:\\\\Programmi\\\\Apache Group\\\\Apache2\\\\bin']".


The four backslashes look okay to me, since there are "s outside the
list, viz:

>>> mylist = [ r'C:\Python24' ]
>>> mylist

['C:\\Python24']
>>> repr(mylist)

"['C:\\\\Python24']"


Back to your question: Where is mod_python located? Is it anywhere in
this path? Go to each directory/zip file, and see if you find
mod_python. If so, is your base directory where you think it is? (use
os.getcwd() to find out). If mod_python is still not in there, where is
it? Now add THAT directory to your Python path.

Cheers,
Cliff
 
Reply With Quote
 
skip@pobox.com
Guest
Posts: n/a
 
      10-28-2006

dan> I don't understand this error , in the (Apache) errorlog I read
dan> this message :

dan> [Sat Oct 28 14:04:03 2006] [error] make_obcallback: could not import
dan> mod_python.apache.\n
dan> [Sat Oct 28 14:04:03 2006] [error] make_obcallback: Python path being
dan> used "['C:\\\\Python24\\\\python24.zip', '.\\\\DLLs', '.\\\\lib',
dan> '.\\\\lib\\\\plat-win', '.\\\\lib\\\\lib-tk',
dan> 'C:\\\\Programmi\\\\Apache Group\\\\Apache2\\\\bin']".
dan> [Sat Oct 28 14:04:03 2006] [error] python_handler: no interpreter
dan> callback found.
dan> [Sat Oct 28 14:04:03 2006] [error] [client 127.0.0.1] python_handler:
dan> Can't get/create interpreter.

Just a wild ass guess, but maybe Apache can't find the necessary python dll
to load?

Skip

 
Reply With Quote
 
grahamd@dscpl.com.au
Guest
Posts: n/a
 
      10-28-2006
dan84 wrote:
> I don't understand this error , in the (Apache) errorlog I read this
> message :
>
> [Sat Oct 28 14:04:03 2006] [error] make_obcallback: could not import
> mod_python.apache.\n
> [Sat Oct 28 14:04:03 2006] [error] make_obcallback: Python path being
> used "['C:\\\\Python24\\\\python24.zip', '.\\\\DLLs', '.\\\\lib',
> '.\\\\lib\\\\plat-win', '.\\\\lib\\\\lib-tk',
> 'C:\\\\Programmi\\\\Apache Group\\\\Apache2\\\\bin']".
> [Sat Oct 28 14:04:03 2006] [error] python_handler: no interpreter
> callback found.
> [Sat Oct 28 14:04:03 2006] [error] [client 127.0.0.1] python_handler:
> Can't get/create interpreter.
>
> I have Apache/2.0.59 (Win32) mod_python/3.2.10 Python/2.4.3
> I have read all the manuals, but I don't understand where I am wrong.
>
> thanks so much
> Marco.


Read:


http://www.modpython.org/pipermail/m...er/022362.html

You may have to fiddle your Windows registry to add site-packages
directory.

BTW, there is a mailing list specifically for mod_python. You might be
better off asking questions directly there, as we have seen most
problems. You can also search the mailing list archives from the
mod_python site.

BTW, the quadruple backslashes is indeed because of the use of repr()
when doing the error dump.

Graham

 
Reply With Quote
 
Steve Holden
Guest
Posts: n/a
 
      10-29-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
[...]
> BTW, there is a mailing list specifically for mod_python. You might be
> better off asking questions directly there, as we have seen most
> problems. You can also search the mailing list archives from the
> mod_python site.
>
> BTW, the quadruple backslashes is indeed because of the use of repr()
> when doing the error dump.


For gmane users the list is also available as newsgroup

gmane.comp.python.mod_python

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_python.so is garbled mod_python.so is garbled blbmdsmith Python 1 12-14-2006 12:15 AM
MySQLdb problem with mod_python, please help ws Wang Python 2 11-30-2004 08:40 PM
mod_python problem Gandalf Python 3 05-07-2004 11:38 AM
Problem with mod_python and 4Suite Doug Farrell Python 2 08-12-2003 12:21 PM
Mod_python xml parsing problem Mike Medland Python 0 07-01-2003 08:08 AM



Advertisments