[mod_python] error on make install

Lewis Bergman lbergman at abi.tconline.net
Fri Jan 11 09:05:17 EST 2002


I have searched the recent archives and I haven't seen anyone else with this 
problem. I therefore assume I have done something stupid. This is my first 
attempt at mod_python and I am new to python as well.

Background:
Python 2.2 , configured --with-threads=no
mod_python 2.7.6
Apache 1.3.22-2 , (rpm)
Apache-devel 1.3.22-2 , (rpm) for apxs

My configure line looks like this:
./configure --with-apxs=/usr/sbin/apxs --with-python=/root/tar/Python-2.2
no errors here.
I do a make and get no errors.

On make install I get this:
python /usr/local/lib/python2.2/compileall.py 
/usr/local/lib/python2.2/site-packages/mod_python
Traceback (innermost last):
  File "/usr/local/lib/python2.2/compileall.py", line 147, in ?
    exit_status = not main()
  File "/usr/local/lib/python2.2/compileall.py", line 104, in main
    import getopt
  File "/usr/local/lib/python2.2/getopt.py", line 101
    possibilities = [o for o in longopts if o.startswith(opt)]
                                   ^
SyntaxError: invalid syntax
make[2]: *** [install_py_lib] Error 1
make[2]: Leaving directory `/root/tar/mod_python-2.7.6'
make[1]: *** [install_dso] Error 2
make[1]: Leaving directory `/root/tar/mod_python-2.7.6'
make: *** [install] Error 2

Does anyone have a clue as to what I have (or have not) done?
It says syntax error but no-one else seems to be having difficulty. Any help 
is greatly appreciated.
-- 
Lewis Bergman
Texas Communications
4309 Maple St.
Abilene, TX 79602-8044
915-695-6962 ext 115



More information about the Mod_python mailing list