[mod_python] [SPAM] Re: mod_python installation failure on apache

David Jackson davidj411 at gmail.com
Fri May 9 14:40:16 EDT 2008


more info, the apache module does not seem to exist in mod_python.
is that what this means?

import mod_python
>>> dir (mod_python)
['__all__', '__builtins__', '__doc__', '__file__', '__name__', '__path__',
'version']

>>> print mod_python.version
3.3.1

On Fri, May 9, 2008 at 2:27 PM, David Jackson <davidj411 at gmail.com> wrote:

> I followed the directions at
> http://www.modpython.org/live/current/doc-html/inst-testing.html
> and get contents of the script mptest.py , not the results as if it had
> run.
>
> if i run the mptest.py script from the command line, i get this import
> error.
>
> C:\apache\htdocs\py>mptest.py
> Traceback (most recent call last):
>   File "C:\apache\htdocs\py\mptest.py", line 1, in <module>
>     from mod_python import apache
>   File "C:\Python25\lib\site-packages\mod_python\apache.py", line 30, in
> <module>
>     import _apache
> ImportError: No module named _apache
>
> I have rebooted and restarted apache. It looks like the script
> apache.py mis-typed "apache" as "_apache" ?
> if i swap the contents of the mptest.py with something simple like
>
> print "hello"
>
> the entire line shows up in the browser as
>
> print "hello"
>
>
>   *system settings:*
> General information
> Apache version Apache/2.2.8 (Win32) mod_python/3.3.1 Python/2.5.2
> Apache threaded MPM Yes, maximum 64 threads / process
> Apache forked MPM No (single process MPM)
> Apache server root C:/apache
> Apache document root C:/apache/htdocs
> Apache error log C:/apache\logs/error.log (view last 100 lines)
> Python sys.version 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32
> bit (Intel)]
> Python sys.path C:\WINDOWS\system32\python25.zip
> C:\Python25\Lib
> C:\Python25\DLLs
> C:\Python25\Lib\lib-tk
> C:\apache
> C:\apache\bin
> C:\Python25
> C:\Python25\lib\site-packages
> C:\Python25\lib\site-packages\win32
> C:\Python25\lib\site-packages\win32\lib
> C:\Python25\lib\site-packages\Pythonwin
>  Python interpreter name dsg-vyvo2o2ijzo.domainname.usa
> mod_python.publisher available Yes
> mod_python.psp available Yes
>  Request input headers
> Key Value
> Accept image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/x-shockwave-flash, application/x-ms-application,
> application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml,
> application/x-silverlight, application/vnd.ms-excel,
> application/vnd.ms-powerpoint, application/msword, */*
> Accept-Language en-us
> UA-CPU x86
> Accept-Encoding gzip, deflate
> User-Agent Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
> 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
> Host localhost
> Connection Keep-Alive
>  Request environment
> Key Value
> GATEWAY_INTERFACE CGI/1.1
> SERVER_PROTOCOL HTTP/1.1
> REQUEST_METHOD GET
> QUERY_STRING
> REQUEST_URI /mpinfo
> SCRIPT_NAME /mpinfo
> HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/x-shockwave-flash, application/x-ms-application,
> application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml,
> application/x-silverlight, application/vnd.ms-excel,
> application/vnd.ms-powerpoint, application/msword, */*
> HTTP_ACCEPT_LANGUAGE en-us
> HTTP_UA_CPU x86
> HTTP_ACCEPT_ENCODING gzip, deflate
> HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
> 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
> HTTP_HOST localhost
> HTTP_CONNECTION Keep-Alive
> PATH
> C:\Path;C:\Temp\path\scripts;C:\Path\3rdparty\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Program
> Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Common
> Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio
> Shared\DLLShared\;C:\Program Files\Common Files\Roxio
> Shared\9.0\DLLShared\;C:\WINDOWS\system32\WindowsPowerShell\v1.0
> SystemRoot C:\WINDOWS
> COMSPEC C:\WINDOWS\system32\cmd.exe
> PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1
> WINDIR C:\WINDOWS
> SERVER_SIGNATURE
> SERVER_SOFTWARE Apache/2.2.8 (Win32) mod_python/3.3.1 Python/2.5.2
> SERVER_NAME localhost
> SERVER_ADDR 127.0.0.1
> SERVER_PORT 80
> REMOTE_ADDR 127.0.0.1
> DOCUMENT_ROOT C:/apache/htdocs
> SERVER_ADMIN djackson at dsolutionsgroup.com
> SCRIPT_FILENAME C:/apache/htdocs/mpinfo
> REMOTE_PORT 1354
>  Request configuration
> Key Value
>  Request options
> Key Value
>  Request notes
> Key Value
> python_init_ran 1
>  Server configuration
> Key Value
>  Server options
> Key Value
>  Server configuration tree
> Listen 80
> ServerAdmin djackson at dsolutionsgroup.com
> DocumentRoot "C:/apache/htdocs"
>     Options FollowSymLinks
>    AllowOverride None
>    Order deny,allow
>    Deny from all
>     AddHandler mod_python .py
>    PythonHandler mptest
>    PythonDebug On
>     SetHandler mod_python
>    PythonHandler mod_python.testhandler
>     Options Indexes FollowSymLinks
>    AllowOverride None
>    Order allow,deny
>    Allow from all
> DirectoryIndex index.html
>     Order allow,deny
>    Deny from all
>    Satisfy All
> ErrorLog "logs/error.log"
> LogLevel warn
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
> combined
> LogFormat "%h %l %u %t \"%r\" %>s %b" common
> CustomLog "logs/access.log" common
> ScriptAlias /cgi-bin/ "C:/apache/cgi-bin/"
>     AllowOverride None
>    Options None
>    Order allow,deny
>    Allow from all
> DefaultType text/plain
> TypesConfig conf/mime.types
> AddType application/x-compress .Z
> AddType application/x-gzip .gz .tgz
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20080509/be0088af/attachment-0001.html


More information about the Mod_python mailing list