471,342 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Python integration problem

2
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) http://switch.dl.sourceforge.net/sou...amp5_1.7.3.exe
Python 2.5.1 http://www.python.org/ftp/python/2.5.1/python-2.5.1.msi
mod_python 3.3.1 http://apache.rediris.es/httpd/modpy...-Apache2.2.exe

I started putting this line into http.conf:

Expand|Select|Wrap|Line Numbers
  1. LoadModule mod_python modules/mod_python.so
but, there was an error startin up the https server:
"httpd.exe: Syntax error on line 118 of C:/wamp/Apache2/conf/httpd.conf: Cannot load C:/wamp/Apache2/modules/mod_python.so into server: Could not find specified module."

I solved this adding this before LoadModule into http.conf:
Expand|Select|Wrap|Line Numbers
  1. LoadFile "c:/wamp/python25/python25.dll"
  2. LoadModule mod_python modules/mod_python.so
but then the error was:
"httpd.exe: Syntax error on line 118 of C:/wamp/Apache2/conf/httpd.conf: Can't locate API module structure `mod_python' in file c:/wamp/Apache2/modules/mod_python.so: No error"

so, what is the problem? the error puts "No error", cant figure out what this means.

so, if someone can help me i will be greatfull!! =)

thanx in advance

PS:sorry my english.... =P
Nov 13 '07 #1
3 3063
bartonc
6,596 Expert 4TB
I'm not sure we have any WAMP experts around here.
The best I can do is point you to this google search.
Sorry to be of so little help.
Nov 14 '07 #2
oler1s
671 Expert 512MB
Did you mean mod_python.dll and not mod_python.so?

.so files are only on *NIX machines.
Nov 15 '07 #3
rmompo
2
Did you mean mod_python.dll and not mod_python.so?

.so files are only on *NIX machines.
python25.dll comes with Python 2.5.1installation package
mod_python.so comes with mod_python 3.3.1installation package

it looks like mod_python needs to know where is python25.dll -i think this is the interpreter for python-, it appears to be that it cant run without it, i can cut the LoadFile line, but in that case i must put python25.dll somewhere in the PATH environment variable so mod_python can get it

what do you mean with *NIX? .. Linux / Unix?
i have a another clean WAMP installation and it has mod_php5.so and it's working fine, there is a mod_pythond installation package per SO, you can chek it out at http://httpd.apache.org/modules/python-download.cgi under "Apache Mod_python 3.3.1 is now available" section
Nov 16 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Jakub Fast | last post: by
3 posts views Thread by gohaku | last post: by
36 posts views Thread by Andrea Griffini | last post: by
reply views Thread by Wolfgang Keller | last post: by
9 posts views Thread by Dieter Vanderelst | last post: by
19 posts views Thread by Nicolas Pernetty | last post: by
40 posts views Thread by =?iso-8859-1?B?QW5kcuk=?= | last post: by
5 posts views Thread by Hussein B | last post: by

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.