mod_python make install problem

Lewis Bergman lbergman at abi.tconline.net
Thu Jan 17 22:28:41 CET 2002


I have sent this to the mod_python list but haven't received any clues as yet.

Would anyone here maybe have seen this and know how to fix it?
------ original message ----------------


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 Python-list mailing list