hello; i've installed viewvc 1.0.4 on windows and it works fine with cvsnt and the standalone built-in http-server. when trying to integrate viewvc into apache i have a problem: using - apache_2.2.4-win32-x86-no_ssl.msi
- mod_python-3.3.1.win32-py2.5-Apache2.2.exe
when adding section
<Location /mpinfo> SetHandler mod_python PythonHandler mod_python.testhandler </Location>
to the httpd.conf
file everything works fine, request /mpinfo prints out
----------------------------------------------------------------------------------------------------------------------------------------------------------
Python sys.version2.5a2 (r25a2:45740, Apr 27 2006, 06:31:19) [MSC v.1310 32 bit (Intel)]
Python sys.pathC:\WINDOWS\system32\python25.zip D:\apps\Python25\Lib D:\apps\Python25\DLLs
D:\apps\Python25\Lib\lib-tk C:\Program Files\Apache Software Foundation\Apache2.2 C:\Program Files\Apache Software Foundation\Apache2.2\bin D:\apps\Python25 D:\apps\Python25\lib\site-packages D:\apps\Python25\lib\site-packages\win32
D:\apps\Python25\lib\site-packages\win32\lib D:\apps\Python25\lib\site-packages\Pythonwin ----------------------------------------------------------------------------------------------------------------------------------------------------------
But when i add this section to httpd.conf :
<location "/viewcvs"> SetHandler mod_python AllowOverride All AddHandler python-program .py PythonPath "[r'd:\\apps\\viewcvs\\lib']+sys.path"
PythonHandler apache PythonDebug On AddDefaultCharset UTF-8 </location>
the output of the request to '/viewcvs' is
----------------------------------------------------------------------------------------------------------------------------------------------------------
MOD_PYTHON ERROR
ProcessId: 4924 Interpreter: 'I63557.sbb.ch'
ServerName: 'I63557.sbb.ch' DocumentRoot: 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs'
URI: '/viewcvs' Location: '/viewcvs' Directory: None Filename: 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/viewcvs' PathInfo: ''
Phase: 'PythonHandler' Handler: 'apache'
Traceback (most recent call last):
File "D:\apps\Python25\lib\site-packages\mod_python\importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "D:\apps\Python25\lib\site-packages\mod_python\importer.py", line 1202, in _process_target module = import_module(module_name, path=path)
File "D:\apps\Python25\lib\site-packages\mod_python\importer.py", line 304, in import_module return __import__(module_name, {}, {}, ['*'])
ImportError: No module named apache
----------------------------------------------------------------------------------------------------------------------------------------------------------
Can you please help me?
Thanx for any ideas...
Ivo
|
|