473,326 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

PROBLEM with MOD_PYTHON

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.

Oct 28 '06 #1
5 4138
"dan84" <ma*****@hotmail.itwrites:
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

Oct 28 '06 #2
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
Oct 28 '06 #3

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

dan[Sat Oct 28 14:04:03 2006] [error] make_obcallback: could not import
danmod_python.apache.\n
dan[Sat Oct 28 14:04:03 2006] [error] make_obcallback: Python path being
danused "['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
dancallback found.
dan[Sat Oct 28 14:04:03 2006] [error] [client 127.0.0.1] python_handler:
danCan't get/create interpreter.

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

Skip

Oct 28 '06 #4
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

Oct 28 '06 #5
gr*****@dscpl.com.au 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

Oct 29 '06 #6

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

Similar topics

2
by: ws Wang | last post by:
MySQLdb is working fine at command line, however when I tried to use it with mod_python, it give me a "server not initialized" error. This is working fine: ----------------------- testmy.py...
1
by: py.adriano | last post by:
Hi folks... I'm getting a weird problem while loading psp module from mod_python. It only happen somethimes, and I just can't figure out why. I saw other threads in other lists over the net, but...
1
by: neha | last post by:
hi, i m trying to integrate python with apache on linux.For this i m using mod_python. I dont see any problem with the versions of python,apache and mod_python i m using. the versions i m using...
0
by: Manuzhai | last post by:
Hello there, I have this weird problem with a mod_python application. Recently I installed ElementTree and cElementTree through ez_setup.py, even though they were already installed normally...
1
by: boney | last post by:
hello All, I am totally unknown to python language.. i need to install mod_python to embed python interpreter with the Apache server, in order to use Trac with Apache Web Server i am using...
1
by: wadacom | last post by:
I'm sorry to take your time for newbie problems but I've been searching what to do about the problem with my apache server I have. I work with ubuntu dapperdrake I put the last apache server on it...
3
by: rmompo | last post by:
Hi, im new at Python and i'm having problems putting it online. this is the plataform: Windows XP Professional SP2 Apache/2.2.4 (Win32)...
3
by: Pradnyesh Sawant | last post by:
Hello, I have a small program which does 'import hashlib'. This program runs fine with python2.5. But when I try running the same program through mod_python, I get the error: 'ImportError: No...
1
by: NccWarp9 | last post by:
Hello, im using Apache HTTPD 2.2.8 with mod_python/3.3.1 Python/2.4.3 on Windows and having truble starting pythone, any help would be appreciated .. Im getting this error: ...
3
by: Lawrence D'Oliveiro | last post by:
In message <mailman.109.1216158151.922.python-list@python.org>, Cyril Bazin wrote: What's the error message? This should be in Apache's error_log file.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.