473,396 Members | 2,018 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,396 software developers and data experts.

mod_python fails to load under wamp

Hi,

Am using WAMP5 and python 2.4.3. I tried to install mod_python 3.2.5
for python2.4. When i tried starting wamp, Firstly there was no error
message in the apache error log. I saw error message in windows event
viewer :

"The Apache service named Apache.exe reported the following error:
>>Syntax error on line 194 of c:/wamp/apache/conf/httpd.conf: <<<
before the error.log file could be opened.

"The Apache service named Apache.exe reported the following error:
>>Cannot load c:/wamp/apache/modules/mod_python.so into server: (126) The specified module could not be found: <<<
before the error.log file could be opened."

I tried searching the net and found this
http://www.modpython.org/FAQ/faqw.py?req=all#2.10 but i don't have
depends.exe. if somebody has faced this problem before, can you please
assist in fixing this bug..

thanks and regards,
Gaurav Agarwal

Jul 10 '06 #1
4 4647
Ant
"The Apache service named Apache.exe reported the following error:
>Cannot load c:/wamp/apache/modules/mod_python.so into server: (126) The specified module could not be found: <<<
before the error.log file could be opened."
I have just had a similar problem (same error message), not with
mod_python, but with another apache module. It turned out that the
latest version of XAMPP (the lamp-type stack distribution I'm using)
bundled Apache 2.2, where the module was only compatible with Apache
2.0 or earlier. I guess they must have changed the module interface in
2.2. Anyway, I solved the problem by downgrading to Apache 2.0.

Sounds like a similar problem here - I'll bet WAMP bundles Apache 2.2.

Jul 10 '06 #2
Gaurav Agarwal wrote:
Hi,

Am using WAMP5 and python 2.4.3. I tried to install mod_python 3.2.5
for python2.4. When i tried starting wamp, Firstly there was no error
message in the apache error log. I saw error message in windows event
viewer :

"The Apache service named Apache.exe reported the following error:
>Syntax error on line 194 of c:/wamp/apache/conf/httpd.conf: <<<
before the error.log file could be opened.

"The Apache service named Apache.exe reported the following error:
>Cannot load c:/wamp/apache/modules/mod_python.so into server: (126) The specified module could not be found: <<<
before the error.log file could be opened."

I tried searching the net and found this
http://www.modpython.org/FAQ/faqw.py?req=all#2.10 but i don't have
depends.exe. if somebody has faced this problem before, can you please
assist in fixing this bug..
I'm not an expert in the subject, but I have experienced many troubles
in the past while installing and configuring apache and mod_python...
It is important to know that each version of apache may match or not a
given version of mod_python, so make sure to install the correct
versions of each component.
Right now, I'm running on windows the following versions:

Apache/2.0.55 (Win32)
mod_python/3.2.8
Python/2.4.2

I installed "xampp" which is a single application that installs all at
once (Apache, php, mysql, etc...) except mod_python, which should be
installed separately.

I suggest you search the download files on Xampp's sourceforge site and
look for an older version with Apache 2.0.55 . I'm not sure, but I
think xampp version 1.5.1 will be ok
(http://sourceforge.net/project/showf...group_id=61776)

Then, get the mod_python installer (version 3.2.8)
http://www.apache.org/dist/httpd/modpython/win/3.2.8/

After that, all you have to do is a few modifications in Apache
httpd.config file.
Uncomment (or add) the following line:

LoadModule python_module modules/mod_python.so

And finally, if you want, you can set the configurations of the
handler's you want to use with mod_python (they can be publisher, psp,
or any other custom one).
These configurations can be set on this file, or separately on each web
folder as .htaccess files.

Hope it helps...
Luis

Jul 11 '06 #3
Ant
I suggest you search the download files on Xampp's sourceforge site and
look for an older version with Apache 2.0.55 . I'm not sure, but I
think xampp version 1.5.1 will be ok
I did this just a few days ago, you could be right, but version 1.5.1
had no release notes, and a dodgy release number (151), so I thought it
safer to go for 1.5.0 which definitely has Apache 2.0.55 (1.5.2 has
version 2.2.something), and people were concentrating harder when it
was released ;-).

Jul 11 '06 #4
Ant
Uh... this may sound silly, but aren't .so files UNIX/Linux/Solaris
"shared object" files...
Yes, but apache uses them (or at least the same file extension) for
modules on Windows and Linux, so mod_python.so is correct.

Jul 11 '06 #5

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

Similar topics

1
by: ted | last post by:
Hi, I'm having a problem trying to get mod_python running on Win2000. I'm getting the following error when I start Apache: C:\Program Files\Apache Group\Apache2\bin>Apache.exe Syntax error...
1
by: wolf | last post by:
i would like to briefly share my experiences with installing mod_python on a w2000 box. i must say that i believe the installation process to be unnecessarily complicated by the simple fact that...
5
by: Kylotan | last post by:
I thought mod_python would be the answer to my CGI performance issue, but I can't seem to make much sense out of it. All the examples are too trivial to be of much use. Given that I have an...
2
by: Jeffrey Froman | last post by:
I am having difficulty getting mod_python and xml.sax to play nicely with each other. I am using: Python 2.4 Mod_python 2.7.10 Apache 1.3.33 Using the mod_python.publisher handler to invoke...
6
by: Little | last post by:
I can't figure out how to build this type of program using the publisher handler. I have the following connected to the program SetHandler python-program PythonHandler mod_python.publisher...
1
by: treelife | last post by:
I'm getting and internal server error when | run the following mod_python script. I am actually trying to run Django. Script: from mod_python import apache def handler(req):...
0
by: bill.simoni | last post by:
I'm unable to get mod_python to work properly on my Windows XP box. Any help would be appreciated. Here is what is installed: Apache 2.2.4 Python 2.5.1 mod_python 3.3.1 for python 2.5 and...
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.
2
by: Aaron Scott | last post by:
I've installed mod_python, and everything seems to be working, but it fails when I try to import another file into the file that's actually producing the output. I have these lines at the top of...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.