By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,091 Members | 1,546 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,091 IT Pros & Developers. It's quick & easy.

Python integration problem

P: 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
Share this Question
Share on Google+
3 Replies


bartonc
Expert 5K+
P: 6,596
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

Expert 100+
P: 671
Did you mean mod_python.dll and not mod_python.so?

.so files are only on *NIX machines.
Nov 15 '07 #3

P: 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.