Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Tagged and released mod_wsgi 1.2 and 2.0c1.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  16 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Graham Dumpleton  
View profile  
 More options Oct 29 2007, 9:37 pm
From: "Graham Dumpleton" <graham.dumple...@gmail.com>
Date: Tue, 30 Oct 2007 12:37:12 +1100
Local: Mon, Oct 29 2007 9:37 pm
Subject: Tagged and released mod_wsgi 1.2 and 2.0c1.
I have tagged and release mod_wsgi 1.2, plus a first release candidate
for 2.0. Files are available from:

  http://code.google.com/p/modwsgi/downloads/list

Details for mod_wsgi 1.2 are in:

  http://code.google.com/p/modwsgi/wiki/ChangesInVersion0102

It is highly recommended that all users of Apache 1.3 and Apache 2.0
upgrade to this version as it includes a fix for an issue whereby if
default for WSGIApplicationGroup is used, or %{RESOURCE} is used, that
particular URLs could result in a second Python sub interpreter
instance being created for each resource/application. This would have
the affect of doubling the amount of memory in use for that
application which in a constrained memory environment could cause
physical memory to be used up and swapping to occur, or cause you to
unexpectedly reach any VPS memory limit. This issue does not affect
users of Apache 2.2.

Details for mod_wsgi 2.0c1 are in:

  http://code.google.com/p/modwsgi/wiki/ChangesInVersion0200

This should only be used by those who like to test out the latest
version and give feedback.

Primary thing of interest in this version is 'Process' option for
WSGIReloadMechanism to make it easier to restart an application
running in a mod_wsgi daemon process when code changes are made. When
enabled, only need to touch the WSGI script file when you want
application to be reloaded.

Other significant changes include ability to hook into Apache 2.2 auth
provider mechanism, support for Python virtual environments and the
beginning of some hooks to be able to work with the internal Apache
APIs. Check out the changes file for further details.

Bernd and Adal, feel free to make Debian and Windows binaries. The
2.0c1 version should probably target just the unstable tree of Debian
release tree.

Thanks.

Graham


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Manuzhai  
View profile  
 More options Oct 30 2007, 4:21 am
From: Manuzhai <manuz...@gmail.com>
Date: Tue, 30 Oct 2007 09:21:31 +0100
Local: Tues, Oct 30 2007 4:21 am
Subject: Re: [modwsgi] Tagged and released mod_wsgi 1.2 and 2.0c1.
On 10/30/07, Graham Dumpleton <graham.dumple...@gmail.com> wrote:

> Bernd and Adal, feel free to make Debian and Windows binaries. The
> 2.0c1 version should probably target just the unstable tree of Debian
> release tree.

I've made available a Mercurial repository of my Portage overlay,
which currently only contains a mod_wsgi-1.2 ebuild. You can clone it
or download a tarball from the web, at
http://hg.xavamedia.nl/portage/.

Cheers,

Manuzhai


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nsteinmetz@gmail.com  
View profile  
 More options Oct 30 2007, 5:56 am
From: "nsteinm...@gmail.com" <nsteinm...@gmail.com>
Date: Tue, 30 Oct 2007 09:56:35 -0000
Local: Tues, Oct 30 2007 5:56 am
Subject: Re: Tagged and released mod_wsgi 1.2 and 2.0c1.
PKGBUILD for Archlinux for stable version is updated too :
<http://aur.archlinux.org/packages.php?do_Details=1&ID=13394>

I need to tweak a little bit how the package is named so that mod_wsgi
1.x & 2.x are not in conflit within AUR.

Should be fixed soon :-)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adal Chiriliuc  
View profile  
 More options Oct 30 2007, 7:05 am
From: Adal Chiriliuc <adal.chiril...@gmail.com>
Date: Tue, 30 Oct 2007 04:05:17 -0700
Local: Tues, Oct 30 2007 7:05 am
Subject: Re: Tagged and released mod_wsgi 1.2 and 2.0c1.
I have updated the Windows binaries. The 2.0c1 version builds only
after moving the "DispatchObject *adapter = NULL;" declaration from
around line 5495 to the start of the block.

Couldn't test them though.

I'm getting this error, can't figure out why since the path seems to
be ok (and I can run "from paste.deploy import loadapp" in the CLI
python). I'm not testing on my usual computer, so it could be a
configuration problem.

mod_wsgi (pid=212, process='', application='127.0.0.1:90|'): Loading
WSGI script 'X:/Project/Anim/Website/AnimWeb/anim.wsgi'.
mod_wsgi (pid=212): Target WSGI script 'X:/Project/Anim/Website/
AnimWeb/anim.wsgi' cannot be loaded as Python module.
mod_wsgi (pid=212): Exception occurred processing WSGI script 'X:/
Project/Anim/Website/AnimWeb/anim.wsgi'.
Traceback (most recent call last):
  File "X:/Project/Anim/Website/AnimWeb/anim.wsgi", line 4, in
<module>
    from paste.deploy import loadapp
ImportError: No module named paste.deploy


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Graham Dumpleton  
View profile  
 More options Oct 30 2007, 7:16 am
From: "Graham Dumpleton" <graham.dumple...@gmail.com>
Date: Tue, 30 Oct 2007 22:16:33 +1100
Local: Tues, Oct 30 2007 7:16 am
Subject: Re: [modwsgi] Re: Tagged and released mod_wsgi 1.2 and 2.0c1.
Are you setting WSGIPythonPath directive?

This behaves a bit differently now and calls site.addsitedir() instead
of just setting PYTHONPATH environment variable. It may be screwing
things up.

Graham

On 30/10/2007, Adal Chiriliuc <adal.chiril...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Graham Dumpleton  
View profile  
 More options Oct 30 2007, 7:33 am
From: "Graham Dumpleton" <graham.dumple...@gmail.com>
Date: Tue, 30 Oct 2007 22:33:10 +1100
Local: Tues, Oct 30 2007 7:33 am
Subject: Re: [modwsgi] Re: Tagged and released mod_wsgi 1.2 and 2.0c1.
BTW, if you are using WSGIPythonPath, create a hello world program
which echos back sys.path. In looking at value for WSGIPythonPath I
split it into separate directories and for Windows it should split on
';' and not ':', but if I am stuffing up somehow then any drive
specifier could be causing an issue. Also, not sure whether I may have
changed the behaviour in respect of how backslashes are treated. I
could well have changed it inadvertently without realising.

So, look carefully at sys.path and adjust backslash escaping, or use
forward slashes.

Graham

On 30/10/2007, Graham Dumpleton <graham.dumple...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nsteinmetz@gmail.com  
View profile  
 More options Oct 30 2007, 7:50 am
From: "nsteinm...@gmail.com" <nsteinm...@gmail.com>
Date: Tue, 30 Oct 2007 11:50:15 -0000
Local: Tues, Oct 30 2007 7:50 am
Subject: Re: Tagged and released mod_wsgi 1.2 and 2.0c1.
On Oct 30, 10:56 am, "nsteinm...@gmail.com" <nsteinm...@gmail.com>
wrote:

> PKGBUILD for Archlinux for stable version is updated too :
> <http://aur.archlinux.org/packages.php?do_Details=1&ID=13394>

> I need to tweak a little bit how the package is named so that mod_wsgi
> 1.x & 2.x are not in conflit within AUR.

> Should be fixed soon :-)

Here it is : http://aur.archlinux.org/packages.php?do_Details=1&ID=13521

Nicolas


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adal Chiriliuc  
View profile  
 More options Oct 30 2007, 1:21 pm
From: Adal Chiriliuc <adal.chiril...@gmail.com>
Date: Tue, 30 Oct 2007 10:21:12 -0700
Local: Tues, Oct 30 2007 1:21 pm
Subject: Re: Tagged and released mod_wsgi 1.2 and 2.0c1.
I'm not using WSGIPythonPath.

Here's my configuration:

LoadModule wsgi_module "../mod_wsgi/win32/
mod_wsgi_py25_apache22_Release/mod_wsgi.so"

WSGIOutputBuffering On
WSGIScriptReloading Off

WSGIScriptAlias / X:/Project/Anim/Website/AnimWeb/anim.wsgi

<Directory "X:/Project/Anim/Website/AnimWeb">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

I think I had this problem before, but I don't remember the details.

On 30 Oct, 12:16, "Graham Dumpleton" <graham.dumple...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bernd Zeimetz  
View profile  
 More options Oct 30 2007, 4:39 pm
From: Bernd Zeimetz <be...@bzed.de>
Date: Tue, 30 Oct 2007 21:39:48 +0100
Local: Tues, Oct 30 2007 4:39 pm
Subject: Re: [modwsgi] Tagged and released mod_wsgi 1.2 and 2.0c1.
Graham,

mod_wsgi 1.2 was uploaded to Debian's unstable.

While preparing 2.0c1 for experimental we hit the following problem:

The 1.X packages were all built using the apache-threaded-dev package,
which provides the necessary environment to build modules for all
threaded workers (like apache-mpm-worker). So far the package suggested
to use threaded workers and did not explicitly conflict with the
apache-mkm-prefork, as mod_wsgi worked well in the preforking
environment, even when it was built against the threaded-dev package.

With 2.0c1 I run into the problem that mod_wsgi doesn't work anymore if
it was built using the threaded-dev, if you run it with the preforking
worker.
/usr/lib/apache2/modules/mod_wsgi.so: undefined symbol: ap_thread_stacksize
Although this sounds obvious, the real problem for me is that I can't
install apache2-prefork-dev and apache2-threaded-dev at the same time,
which means I can't use them both as build-dependencies.

So the options I have now are:

- Build against -threaded-dev, conflict with the prefork worker. This
will probably make the php lovers upset, as their broken ******* doesn't
work with the threaded worker.

- Build against -prefork-dev. I didn't try if the module would work in
the preforking environment, but that wouldn't make me happy anyway.

- Put the source of mod-wsgi into Debian twice (not an acceptable
option, but I wanted to mention it).

- Build two packages and copy the apache-threaded-dev files into a
temporary directory and patch them so they look like apache-prefork-dev
and build against them. Pretty ugly way, and it needs to follow chances
in the -dev packages.

- Ask the apache maintainer to modify the -dev packages so they're
installable at the same time, probably using dpkg-alternatives, but this
is not really an easy task, so I'm looking for alternatives first.

Best regards,

Bernd

--
Bernd Zeimetz
<be...@bzed.de>                         <http://bzed.de/>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Graham Dumpleton  
View profile  
 More options Oct 30 2007, 5:05 pm
From: "Graham Dumpleton" <graham.dumple...@gmail.com>
Date: Wed, 31 Oct 2007 08:05:30 +1100
Local: Tues, Oct 30 2007 5:05 pm
Subject: Re: [modwsgi] Re: Tagged and released mod_wsgi 1.2 and 2.0c1.
Patch mod_wsgi.c and delete:

#if defined(AP_MPM_WANT_SET_STACKSIZE)
    else {
        if (ap_thread_stacksize != 0) {
            apr_threadattr_stacksize_set(thread_attr, ap_thread_stacksize);
        }
    }
#endif

It is not critical. I was just trying to inherit stack size from
ThreadStackSize directive. Just means that someone will need to set
both ThreadStackSize and stack-size option to WSGIDaemonProcess. Since
rare that this would required, not too concerned in dropping it if it
causes problems.

Graham

On 31/10/2007, Bernd Zeimetz <be...@bzed.de> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bernd Zeimetz  
View profile  
 More options Oct 30 2007, 6:07 pm
From: Bernd Zeimetz <be...@bzed.de>
Date: Tue, 30 Oct 2007 23:07:09 +0100
Local: Tues, Oct 30 2007 6:07 pm
Subject: Re: [modwsgi] Re: Tagged and released mod_wsgi 1.2 and 2.0c1.

Graham Dumpleton wrote:
> Patch mod_wsgi.c and delete:

patched and uploaded to experimental. Thanks for the fast response!

Bernd

--
Bernd Zeimetz
<be...@bzed.de>                         <http://bzed.de/>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gert  
View profile  
 More options Oct 30 2007, 8:00 pm
From: gert <gert.cuyk...@gmail.com>
Date: Wed, 31 Oct 2007 00:00:19 -0000
Local: Tues, Oct 30 2007 8:00 pm
Subject: Re: Tagged and released mod_wsgi 1.2 and 2.0c1.
windows results

[Wed Oct 31 00:50:42 2007] [info] mod_wsgi (pid=2576): Create
interpreter 'localhost|/query/servlet'.
[Wed Oct 31 00:50:42 2007] [info] mod_wsgi (pid=2576): Adding 'C:/
Program Files/Apache/trunk/wsgi' to path.
[Wed Oct 31 00:50:42 2007] [info] [client 127.0.0.1] mod_wsgi
(pid=2576, process='', application='localhost|/query/servlet'):
Loading WSGI script 'C:/Program Files/Apache/trunk/wsgi/query.py'.,
referer: http://localhost/query/query.htm
[Wed Oct 31 00:50:43 2007] [notice] Parent: child process exited with
status 3221225477 -- Restarting.
[Wed Oct 31 00:50:43 2007] [warn] mod_wsgi: Compiled for Python/2.5.
[Wed Oct 31 00:50:43 2007] [warn] mod_wsgi: Runtime using Python/
2.5.1.
[Wed Oct 31 00:50:43 2007] [warn] mod_wsgi: Python module path 'C:\
\WINDOWS\\system32\\python25.zip;C:\\Program Files\\Python\\Lib;C:\
\Program Files\\Python\\DLLs;C:\\Program Files\\Python\\Lib\\lib-tk;;C:
\\Program Files\\Apache\\bin'.
[Wed Oct 31 00:50:43 2007] [info] mod_wsgi: Initializing Python.
[Wed Oct 31 00:50:43 2007] [notice] Apache/2.2.6 (Win32) mod_wsgi/
2.0c1 Python/2.5.1 configured -- resuming normal operations
[Wed Oct 31 00:50:43 2007] [notice] Server built: Sep  5 2007 08:58:56
[Wed Oct 31 00:50:43 2007] [notice] Parent: Created child process 3924
[Wed Oct 31 00:50:43 2007] [warn] mod_wsgi: Compiled for Python/2.5.
[Wed Oct 31 00:50:43 2007] [warn] mod_wsgi: Runtime using Python/
2.5.1.
[Wed Oct 31 00:50:43 2007] [warn] mod_wsgi: Python module path 'C:\
\WINDOWS\\system32\\python25.zip;C:\\Program Files\\Python\\Lib;C:\
\Program Files\\Python\\DLLs;C:\\Program Files\\Python\\Lib\\lib-tk;;C:
\\Program Files\\Apache\\bin'.
[Wed Oct 31 00:50:43 2007] [info] mod_wsgi: Initializing Python.
[Wed Oct 31 00:50:43 2007] [notice] Child 3924: Child process is
running
[Wed Oct 31 00:50:43 2007] [info] Parent: Duplicating socket 188 and
sending it to child process 3924
[Wed Oct 31 00:50:43 2007] [info] mod_wsgi (pid=3924): Attach
interpreter ''.

------ Whohoo :) -------

[Wed Oct 31 00:50:43 2007] [info] mod_wsgi (pid=3924): Adding 'C:/
Program Files/Apache/trunk/wsgi' to path.

-------------------------

[Wed Oct 31 00:50:43 2007] [notice] Child 3924: Acquired the start
mutex.
[Wed Oct 31 00:50:43 2007] [notice] Child 3924: Starting 250 worker
threads.
[Wed Oct 31 00:50:43 2007] [notice] Child 3924: Starting thread to
listen on port 80.

It doesn't work for me anymore, and i don't see any error's in my log
file ?
Has it to do with the built notification ?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Graham Dumpleton  
View profile  
 More options Oct 30 2007, 8:06 pm
From: "Graham Dumpleton" <graham.dumple...@gmail.com>
Date: Wed, 31 Oct 2007 11:06:30 +1100
Local: Tues, Oct 30 2007 8:06 pm
Subject: Re: [modwsgi] Re: Tagged and released mod_wsgi 1.2 and 2.0c1.
On 31/10/2007, gert <gert.cuyk...@gmail.com> wrote:

Define doesn't work. What do you see from browser, a 500 page?

Can you add to your WSGI script file at start before anything else:

  import sys
  print >> sys.stderr, 'module #1'

Does this appear in error logs? Sprinkle such debug at end of script
file and also in the application function so can work out where
execution gets to.

> Has it to do with the built notification ?

No.

You are using WSGIPythonPath. Can you comment that out and set
sys.path in the WSGI script instead and see if it works. There may be
an issue with WSGIPythonPath on Windows in this version.

Graham


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gert  
View profile  
 More options Oct 30 2007, 8:10 pm
From: gert <gert.cuyk...@gmail.com>
Date: Wed, 31 Oct 2007 00:10:08 -0000
Local: Tues, Oct 30 2007 8:10 pm
Subject: Re: Tagged and released mod_wsgi 1.2 and 2.0c1.
i am on it just a sec

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gert  
View profile  
 More options Oct 30 2007, 8:17 pm
From: gert <gert.cuyk...@gmail.com>
Date: Wed, 31 Oct 2007 00:17:34 -0000
Local: Tues, Oct 30 2007 8:17 pm
Subject: Re: Tagged and released mod_wsgi 1.2 and 2.0c1.
 2328: Starting thread to listen on port 80.
[Wed Oct 31 01:12:23 2007] [notice] Parent: Received restart signal --
Restarting the server.
[Wed Oct 31 01:12:23 2007] [notice] Child 2328: Exit event signaled.
Child process is ending.
[Wed Oct 31 01:12:23 2007] [warn] mod_wsgi: Compiled for Python/2.5.
[Wed Oct 31 01:12:23 2007] [warn] mod_wsgi: Runtime using Python/
2.5.1.
[Wed Oct 31 01:12:23 2007] [warn] mod_wsgi: Python module path 'C:\
\WINDOWS\\system32\\python25.zip;C:\\Program Files\\Python\\Lib;C:\
\Program Files\\Python\\DLLs;C:\\Program Files\\Python\\Lib\\lib-tk;;C:
\\Program Files\\Apache\\bin'.
[Wed Oct 31 01:12:23 2007] [info] mod_wsgi: Initializing Python.
[Wed Oct 31 01:12:23 2007] [notice] Apache/2.2.6 (Win32) mod_wsgi/
2.0c1 Python/2.5.1 configured -- resuming normal operations
[Wed Oct 31 01:12:23 2007] [notice] Server built: Sep  5 2007 08:58:56
[Wed Oct 31 01:12:23 2007] [notice] Parent: Created child process 3944
[Wed Oct 31 01:12:23 2007] [warn] mod_wsgi: Compiled for Python/2.5.
[Wed Oct 31 01:12:23 2007] [warn] mod_wsgi: Runtime using Python/
2.5.1.
[Wed Oct 31 01:12:23 2007] [warn] mod_wsgi: Python module path 'C:\
\WINDOWS\\system32\\python25.zip;C:\\Program Files\\Python\\Lib;C:\
\Program Files\\Python\\DLLs;C:\\Program Files\\Python\\Lib\\lib-tk;;C:
\\Program Files\\Apache\\bin'.
[Wed Oct 31 01:12:23 2007] [info] mod_wsgi: Initializing Python.
[Wed Oct 31 01:12:23 2007] [notice] Child 3944: Child process is
running
[Wed Oct 31 01:12:23 2007] [info] Parent: Duplicating socket 188 and
sending it to child process 3944
[Wed Oct 31 01:12:23 2007] [info] mod_wsgi (pid=3944): Attach
interpreter ''.
[Wed Oct 31 01:12:23 2007] [info] mod_wsgi (pid=3944): Adding 'C:/
Program Files/Apache/trunk/wsgi' to path.
[Wed Oct 31 01:12:24 2007] [info] Child 2328: Accept thread exiting.
[Wed Oct 31 01:12:24 2007] [notice] Child 2328: Released the start
mutex
[Wed Oct 31 01:12:24 2007] [info] Child 2328: 250 threads blocked on
the completion port
[Wed Oct 31 01:12:24 2007] [notice] Child 3944: Acquired the start
mutex.
[Wed Oct 31 01:12:24 2007] [notice] Child 3944: Starting 250 worker
threads.
[Wed Oct 31 01:12:25 2007] [notice] Child 2328: Waiting for 250 worker
threads to exit.
[Wed Oct 31 01:12:25 2007] [notice] Child 2328: All worker threads
have exited.
[Wed Oct 31 01:12:25 2007] [info] mod_wsgi (pid=2328): Cleanup
interpreter ''.
[Wed Oct 31 01:12:25 2007] [info] mod_wsgi (pid=2328): Terminating
Python.
[Wed Oct 31 01:12:25 2007] [notice] Child 3944: Starting thread to
listen on port 80.
[Wed Oct 31 01:12:47 2007] [info] mod_wsgi (pid=3944): Create
interpreter 'localhost|/query/servlet'.
[Wed Oct 31 01:12:47 2007] [info] mod_wsgi (pid=3944): Adding 'C:/
Program Files/Apache/trunk/wsgi' to path.
[Wed Oct 31 01:12:47 2007] [info] [client 127.0.0.1] mod_wsgi
(pid=3944, process='', application='localhost|/query/servlet'):
Loading WSGI script 'C:/Program Files/Apache/trunk/wsgi/query.py'.,
referer: http://localhost/query/query.htm
[Wed Oct 31 01:12:47 2007] [error] module #1
[Wed Oct 31 01:12:48 2007] [notice] Parent: child process exited with
status 3221225477 -- Restarting.
[Wed Oct 31 01:12:48 2007] [warn] mod_wsgi: Compiled for Python/2.5.
[Wed Oct 31 01:12:48 2007] [warn] mod_wsgi: Runtime using Python/
2.5.1.
[Wed Oct 31 01:12:48 2007] [warn] mod_wsgi: Python module path 'C:\
\WINDOWS\\system32\\python25.zip;C:\\Program Files\\Python\\Lib;C:\
\Program Files\\Python\\DLLs;C:\\Program Files\\Python\\Lib\\lib-tk;;C:
\\Program Files\\Apache\\bin'.
[Wed Oct 31 01:12:48 2007] [info] mod_wsgi: Initializing Python.
[Wed Oct 31 01:12:48 2007] [notice] Apache/2.2.6 (Win32) mod_wsgi/
2.0c1 Python/2.5.1 configured -- resuming normal operations
[Wed Oct 31 01:12:48 2007] [notice] Server built: Sep  5 2007 08:58:56
[Wed Oct 31 01:12:48 2007] [notice] Parent: Created child process 2512
[Wed Oct 31 01:12:48 2007] [warn] mod_wsgi: Compiled for Python/2.5.
[Wed Oct 31 01:12:48 2007] [warn] mod_wsgi: Runtime using Python/
2.5.1.
[Wed Oct 31 01:12:48 2007] [warn] mod_wsgi: Python module path 'C:\
\WINDOWS\\system32\\python25.zip;C:\\Program Files\\Python\\Lib;C:\
\Program Files\\Python\\DLLs;C:\\Program Files\\Python\\Lib\\lib-tk;;C:
\\Program Files\\Apache\\bin'.
[Wed Oct 31 01:12:48 2007] [info] mod_wsgi: Initializing Python.
[Wed Oct 31 01:12:48 2007] [notice] Child 2512: Child process is
running
[Wed Oct 31 01:12:48 2007] [info] Parent: Duplicating socket 188 and
sending it to child process 2512
[Wed Oct 31 01:12:48 2007] [info] mod_wsgi (pid=2512): Attach
interpreter ''.
[Wed Oct 31 01:12:48 2007] [info] mod_wsgi (pid=2512): Adding 'C:/
Program Files/Apache/trunk/wsgi' to path.
[Wed Oct 31 01:12:48 2007] [notice] Child 2512: Acquired the start
mutex.
[Wed Oct 31 01:12:48 2007] [notice] Child 2512: Starting 250 worker
threads.
[Wed Oct 31 01:12:48 2007] [notice] Child 2512: Starting thread to
listen on port 80.
[Wed Oct 31 01:12:48 2007] [info] mod_wsgi (pid=2512): Create
interpreter 'localhost|/query/servlet'.
[Wed Oct 31 01:12:48 2007] [info] mod_wsgi (pid=2512): Adding 'C:/
Program Files/Apache/trunk/wsgi' to path.
[Wed Oct 31 01:12:48 2007] [info] [client 127.0.0.1] mod_wsgi
(pid=2512, process='', application='localhost|/query/servlet'):
Loading WSGI script 'C:/Program Files/Apache/trunk/wsgi/query.py'.,
referer: http://localhost/query/query.htm
[Wed Oct 31 01:12:48 2007] [error] module #1
[Wed Oct 31 01:12:49 2007] [notice] Parent: child process exited with
status 3221225477 -- Restarting.
[Wed Oct 31 01:12:49 2007] [warn] mod_wsgi: Compiled for Python/2.5.
[Wed Oct 31 01:12:49 2007] [warn] mod_wsgi: Runtime using Python/
2.5.1.
[Wed Oct 31 01:12:49 2007] [warn] mod_wsgi: Python module path 'C:\
\WINDOWS\\system32\\python25.zip;C:\\Program Files\\Python\\Lib;C:\
\Program Files\\Python\\DLLs;C:\\Program Files\\Python\\Lib\\lib-tk;;C:
\\Program Files\\Apache\\bin'.
[Wed Oct 31 01:12:49 2007] [info] mod_wsgi: Initializing Python.
[Wed Oct 31 01:12:49 2007] [notice] Apache/2.2.6 (Win32) mod_wsgi/
2.0c1 Python/2.5.1 configured -- resuming normal operations
[Wed Oct 31 01:12:49 2007] [notice] Server built: Sep  5 2007 08:58:56
[Wed Oct 31 01:12:49 2007] [notice] Parent: Created child process 3748
[Wed Oct 31 01:12:49 2007] [warn] mod_wsgi: Compiled for Python/2.5.
[Wed Oct 31 01:12:49 2007] [warn] mod_wsgi: Runtime using Python/
2.5.1.
[Wed Oct 31 01:12:49 2007] [warn] mod_wsgi: Python module path 'C:\
\WINDOWS\\system32\\python25.zip;C:\\Program Files\\Python\\Lib;C:\
\Program Files\\Python\\DLLs;C:\\Program Files\\Python\\Lib\\lib-tk;;C:
\\Program Files\\Apache\\bin'.
[Wed Oct 31 01:12:49 2007] [info] mod_wsgi: Initializing Python.
[Wed Oct 31 01:12:49 2007] [notice] Child 3748: Child process is
running
[Wed Oct 31 01:12:49 2007] [info] Parent: Duplicating socket 188 and
sending it to child process 3748
[Wed Oct 31 01:12:49 2007] [info] mod_wsgi (pid=3748): Attach
interpreter ''.
[Wed Oct 31 01:12:49 2007] [info] mod_wsgi (pid=3748): Adding 'C:/
Program Files/Apache/trunk/wsgi' to path.
[Wed Oct 31 01:12:49 2007] [notice] Child 3748: Acquired the start
mutex.
[Wed Oct 31 01:12:49 2007] [notice] Child 3748: Starting 250 worker
threads.
[Wed Oct 31 01:12:49 2007] [notice] Child 3748: Starting thread to
listen on port 80.
[Wed Oct 31 01:12:54 2007] [info] mod_wsgi (pid=3748): Create
interpreter 'localhost|/query/servlet'.
[Wed Oct 31 01:12:54 2007] [info] mod_wsgi (pid=3748): Adding 'C:/
Program Files/Apache/trunk/wsgi' to path.
[Wed Oct 31 01:12:54 2007] [info] [client 127.0.0.1] mod_wsgi
(pid=3748, process='', application='localhost|/query/servlet'):
Loading WSGI script 'C:/Program Files/Apache/trunk/wsgi/query.py'.,
referer: http://localhost/query/query.htm
[Wed Oct 31 01:12:54 2007] [error] module #1
[Wed Oct 31 01:12:55 2007] [notice] Parent: child process exited with
status 3221225477 -- Restarting.
[Wed Oct 31 01:12:55 2007] [warn] mod_wsgi: Compiled for Python/2.5.
[Wed Oct 31 01:12:55 2007] [warn] mod_wsgi: Runtime using Python/
2.5.1.
[Wed Oct 31 01:12:55 2007] [warn] mod_wsgi: Python module path 'C:\
\WINDOWS\\system32\\python25.zip;C:\\Program Files\\Python\\Lib;C:\
\Program Files\\Python\\DLLs;C:\\Program Files\\Python\\Lib\\lib-tk;;C:
\\Program Files\\Apache\\bin'.
[Wed Oct 31 01:12:55 2007] [info] mod_wsgi: Initializing Python.
[Wed Oct 31 01:12:55 2007] [notice] Apache/2.2.6 (Win32) mod_wsgi/
2.0c1 Python/2.5.1 configured -- resuming normal operations
[Wed Oct 31 01:12:55 2007] [notice] Server built: Sep  5 2007 08:58:56
[Wed Oct 31 01:12:55 2007] [notice] Parent: Created child process 2476
[Wed Oct 31 01:12:55 2007] [warn] mod_wsgi: Compiled for Python/2.5.
[Wed Oct 31 01:12:55 2007] [warn] mod_wsgi: Runtime using Python/
2.5.1.
[Wed Oct 31 01:12:55 2007] [warn] mod_wsgi: Python module path 'C:\
\WINDOWS\\system32\\python25.zip;C:\\Program Files\\Python\\Lib;C:\
\Program Files\\Python\\DLLs;C:\\Program Files\\Python\\Lib\\lib-tk;;C:
\\Program Files\\Apache\\bin'.
[Wed Oct 31 01:12:55 2007] [info] mod_wsgi: Initializing Python.
[Wed Oct 31 01:12:55 2007] [notice] Child 2476: Child process is
running
[Wed Oct 31 01:12:55 2007] [info] Parent: Duplicating socket 188 and
sending it to child process 2476
[Wed Oct 31 01:12:55 2007] [info] mod_wsgi (pid=2476): Attach
interpreter ''.
[Wed Oct 31 01:12:55 2007] [info] mod_wsgi (pid=2476): Adding 'C:/
Program Files/Apache/trunk/wsgi' to path.
[Wed Oct 31 01:12:55 2007] [notice] Child 2476: Acquired the start
mutex.
[Wed Oct 31 01:12:55 2007] [notice] Child 2476: Starting 250 worker
threads.
[Wed Oct 31 01:12:55 2007] [notice] Child 2476: Starting thread to
listen on port 80.

I dont get any response at all in my ajax firebug window just
Loading...

#import os, sys
#here = os.path.dirname(__file__)
#if  here not in sys.path:
#    sys.path.append(here)

import sys
print >> sys.stderr, 'module #1'

from db import MySql
from xml.dom import minidom
from xml.sax.saxutils import escape

def application(environ, response):
    ...the usual python stuff...

Python ...

read more »


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gert  
View profile  
 More options Oct 30 2007, 8:30 pm
From: gert <gert.cuyk...@gmail.com>
Date: Wed, 31 Oct 2007 00:30:02 -0000
Local: Tues, Oct 30 2007 8:30 pm
Subject: Re: Tagged and released mod_wsgi 1.2 and 2.0c1.
works fine when wsgipath is not used in httpd.conf

[Wed Oct 31 01:25:13 2007] [warn] pid file C:/Program Files/Apache/
logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Oct 31 01:25:13 2007] [warn] mod_wsgi: Compiled for Python/2.5.
[Wed Oct 31 01:25:13 2007] [warn] mod_wsgi: Runtime using Python/
2.5.1.
[Wed Oct 31 01:25:13 2007] [warn] mod_wsgi: Python module path 'C:\
\WINDOWS\\system32\\python25.zip;C:\\Program Files\\Python\\Lib;C:\
\Program Files\\Python\\DLLs;C:\\Program Files\\Python\\Lib\\lib-tk;;C:
\\Program Files\\Apache\\bin'.
[Wed Oct 31 01:25:13 2007] [info] mod_wsgi: Initializing Python.
[Wed Oct 31 01:25:13 2007] [notice] Apache/2.2.6 (Win32) mod_wsgi/
2.0c1 Python/2.5.1 configured -- resuming normal operations
[Wed Oct 31 01:25:13 2007] [notice] Server built: Sep  5 2007 08:58:56
[Wed Oct 31 01:25:13 2007] [notice] Parent: Created child process 2312
[Wed Oct 31 01:25:13 2007] [warn] mod_wsgi: Compiled for Python/2.5.
[Wed Oct 31 01:25:13 2007] [warn] mod_wsgi: Runtime using Python/
2.5.1.
[Wed Oct 31 01:25:13 2007] [warn] mod_wsgi: Python module path 'C:\
\WINDOWS\\system32\\python25.zip;C:\\Program Files\\Python\\Lib;C:\
\Program Files\\Python\\DLLs;C:\\Program Files\\Python\\Lib\\lib-tk;;C:
\\Program Files\\Apache\\bin'.
[Wed Oct 31 01:25:13 2007] [info] mod_wsgi: Initializing Python.
[Wed Oct 31 01:25:13 2007] [notice] Child 2312: Child process is
running
[Wed Oct 31 01:25:13 2007] [info] Parent: Duplicating socket 188 and
sending it to child process 2312
[Wed Oct 31 01:25:13 2007] [info] mod_wsgi (pid=2312): Attach
interpreter ''.
[Wed Oct 31 01:25:13 2007] [notice] Child 2312: Acquired the start
mutex.
[Wed Oct 31 01:25:13 2007] [notice] Child 2312: Starting 250 worker
threads.
[Wed Oct 31 01:25:13 2007] [notice] Child 2312: Starting thread to
listen on port 80.
[Wed Oct 31 01:25:18 2007] [notice] Parent: Received restart signal --
Restarting the server.
[Wed Oct 31 01:25:18 2007] [notice] Child 2312: Exit event signaled.
Child process is ending.
[Wed Oct 31 01:25:18 2007] [warn] mod_wsgi: Compiled for Python/2.5.
[Wed Oct 31 01:25:18 2007] [warn] mod_wsgi: Runtime using Python/
2.5.1.
[Wed Oct 31 01:25:18 2007] [warn] mod_wsgi: Python module path 'C:\
\WINDOWS\\system32\\python25.zip;C:\\Program Files\\Python\\Lib;C:\
\Program Files\\Python\\DLLs;C:\\Program Files\\Python\\Lib\\lib-tk;;C:
\\Program Files\\Apache\\bin'.
[Wed Oct 31 01:25:18 2007] [info] mod_wsgi: Initializing Python.
[Wed Oct 31 01:25:18 2007] [notice] Apache/2.2.6 (Win32) mod_wsgi/
2.0c1 Python/2.5.1 configured -- resuming normal operations
[Wed Oct 31 01:25:18 2007] [notice] Server built: Sep  5 2007 08:58:56
[Wed Oct 31 01:25:18 2007] [notice] Parent: Created child process 3228
[Wed Oct 31 01:25:18 2007] [info] Child 2312: Accept thread exiting.
[Wed Oct 31 01:25:18 2007] [warn] mod_wsgi: Compiled for Python/2.5.
[Wed Oct 31 01:25:18 2007] [warn] mod_wsgi: Runtime using Python/
2.5.1.
[Wed Oct 31 01:25:18 2007] [warn] mod_wsgi: Python module path 'C:\
\WINDOWS\\system32\\python25.zip;C:\\Program Files\\Python\\Lib;C:\
\Program Files\\Python\\DLLs;C:\\Program Files\\Python\\Lib\\lib-tk;;C:
\\Program Files\\Apache\\bin'.
[Wed Oct 31 01:25:18 2007] [info] mod_wsgi: Initializing Python.
[Wed Oct 31 01:25:18 2007] [notice] Child 3228: Child process is
running
[Wed Oct 31 01:25:18 2007] [info] Parent: Duplicating socket 188 and
sending it to child process 3228
[Wed Oct 31 01:25:18 2007] [info] mod_wsgi (pid=3228): Attach
interpreter ''.
[Wed Oct 31 01:25:19 2007] [notice] Child 2312: Released the start
mutex
[Wed Oct 31 01:25:19 2007] [info] Child 2312: 250 threads blocked on
the completion port
[Wed Oct 31 01:25:19 2007] [notice] Child 3228: Acquired the start
mutex.
[Wed Oct 31 01:25:19 2007] [notice] Child 3228: Starting 250 worker
threads.
[Wed Oct 31 01:25:20 2007] [notice] Child 2312: Waiting for 250 worker
threads to exit.
[Wed Oct 31 01:25:20 2007] [notice] Child 2312: All worker threads
have exited.
[Wed Oct 31 01:25:20 2007] [info] mod_wsgi (pid=2312): Cleanup
interpreter ''.
[Wed Oct 31 01:25:20 2007] [info] mod_wsgi (pid=2312): Terminating
Python.
[Wed Oct 31 01:25:20 2007] [notice] Child 2312: Child process is
exiting
[Wed Oct 31 01:25:20 2007] [notice] Child 3228: Starting thread to
listen on port 80.
[Wed Oct 31 01:26:36 2007] [notice] Parent: Received restart signal --
Restarting the server.
[Wed Oct 31 01:26:36 2007] [notice] Child 3228: Exit event signaled.
Child process is ending.
[Wed Oct 31 01:26:36 2007] [warn] mod_wsgi: Compiled for Python/2.5.
[Wed Oct 31 01:26:36 2007] [warn] mod_wsgi: Runtime using Python/
2.5.1.
[Wed Oct 31 01:26:36 2007] [warn] mod_wsgi: Python module path 'C:\
\WINDOWS\\system32\\python25.zip;C:\\Program Files\\Python\\Lib;C:\
\Program Files\\Python\\DLLs;C:\\Program Files\\Python\\Lib\\lib-tk;;C:
\\Program Files\\Apache\\bin'.
[Wed Oct 31 01:26:36 2007] [info] mod_wsgi: Initializing Python.
[Wed Oct 31 01:26:36 2007] [notice] Apache/2.2.6 (Win32) mod_wsgi/
2.0c1 Python/2.5.1 configured -- resuming normal operations
[Wed Oct 31 01:26:36 2007] [notice] Server built: Sep  5 2007 08:58:56
[Wed Oct 31 01:26:36 2007] [notice] Parent: Created child process 1816
[Wed Oct 31 01:26:36 2007] [warn] mod_wsgi: Compiled for Python/2.5.
[Wed Oct 31 01:26:36 2007] [warn] mod_wsgi: Runtime using Python/
2.5.1.
[Wed Oct 31 01:26:36 2007] [warn] mod_wsgi: Python module path 'C:\
\WINDOWS\\system32\\python25.zip;C:\\Program Files\\Python\\Lib;C:\
\Program Files\\Python\\DLLs;C:\\Program Files\\Python\\Lib\\lib-tk;;C:
\\Program Files\\Apache\\bin'.
[Wed Oct 31 01:26:36 2007] [info] mod_wsgi: Initializing Python.
[Wed Oct 31 01:26:36 2007] [notice] Child 1816: Child process is
running
[Wed Oct 31 01:26:36 2007] [info] Parent: Duplicating socket 188 and
sending it to child process 1816
[Wed Oct 31 01:26:36 2007] [info] mod_wsgi (pid=1816): Attach
interpreter ''.
[Wed Oct 31 01:26:36 2007] [info] Child 3228: Accept thread exiting.
[Wed Oct 31 01:26:37 2007] [notice] Child 3228: Released the start
mutex
[Wed Oct 31 01:26:37 2007] [info] Child 3228: 250 threads blocked on
the completion port
[Wed Oct 31 01:26:37 2007] [notice] Child 1816: Acquired the start
mutex.
[Wed Oct 31 01:26:37 2007] [notice] Child 1816: Starting 250 worker
threads.
[Wed Oct 31 01:26:38 2007] [notice] Child 3228: Waiting for 250 worker
threads to exit.
[Wed Oct 31 01:26:38 2007] [notice] Child 3228: All worker threads
have exited.
[Wed Oct 31 01:26:38 2007] [info] mod_wsgi (pid=3228): Cleanup
interpreter ''.
[Wed Oct 31 01:26:38 2007] [info] mod_wsgi (pid=3228): Terminating
Python.
[Wed Oct 31 01:26:38 2007] [notice] Child 3228: Child process is
exiting
[Wed Oct 31 01:26:38 2007] [notice] Child 1816: Starting thread to
listen on port 80.
[Wed Oct 31 01:26:43 2007] [info] mod_wsgi (pid=1816): Create
interpreter 'localhost|/query/servlet'.
[Wed Oct 31 01:26:43 2007] [info] [client 127.0.0.1] mod_wsgi
(pid=1816, process='', application='localhost|/query/servlet'):
Loading WSGI script 'C:/Program Files/Apache/trunk/wsgi/query.py'.,
referer: http://localhost/query/query.htm
[Wed Oct 31 01:26:43 2007] [error] module #1

import sys
print >> sys.stderr, 'module #1'

import os, sys
here = os.path.dirname(__file__)
if  here not in sys.path:
    sys.path.append(here)

from db import MySql
from xml.dom import minidom
from xml.sax.saxutils import escape

def application(environ, response):
    xml =
environ['wsgi.input'].read(int(environ.get('CONTENT_LENGTH','0')))
    ...

Anythings else i could try ?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google