Apply temporary patch:

Index: mod_wsgi.c
===================================================================
--- mod_wsgi.c  (revision 1105)
+++ mod_wsgi.c  (working copy)
@@ -4260,6 +4260,7 @@

     module = NULL;

+#if 0
     if (!wsgi_daemon_pool) {
         module = PyImport_ImportModule("apache");

@@ -4309,6 +4310,7 @@
                        AP_SERVER_MINORVERSION_NUMBER));

     Py_DECREF(module);
+#endif

     /*
      * Restore previous thread state. Only need to


recompile and tell me if problem goes away.

Also just clarify whether anywhere in your code you actually had:

  import apache

Graham

2008/11/3 gert <[EMAIL PROTECTED]>:
>
> revision 1105 is broken, the other one what ever version it was did
> work :P
>
> [Mon Nov 03 04:28:16 2008] [info] Init: Seeding PRNG with 0 bytes of
> entropy
> [Mon Nov 03 04:28:16 2008] [info] Init: Generating temporary RSA
> private keys (512/1024 bits)
> [Mon Nov 03 04:28:16 2008] [info] Init: Generating temporary DH
> parameters (512/1024 bits)
> [Mon Nov 03 04:28:16 2008] [info] Init: Initializing (virtual) servers
> for SSL
> [Mon Nov 03 04:28:16 2008] [info] mod_ssl/2.2.9 compiled against
> Server: Apache/2.2.9, Library: OpenSSL/0.9.8g
> [Mon Nov 03 04:28:16 2008] [info] Init: Seeding PRNG with 0 bytes of
> entropy
> [Mon Nov 03 04:28:16 2008] [info] Init: Generating temporary RSA
> private keys (512/1024 bits)
> [Mon Nov 03 04:28:16 2008] [info] Init: Generating temporary DH
> parameters (512/1024 bits)
> [Mon Nov 03 04:28:16 2008] [info] Init: Initializing (virtual) servers
> for SSL
> [Mon Nov 03 04:28:16 2008] [info] mod_ssl/2.2.9 compiled against
> Server: Apache/2.2.9, Library: OpenSSL/0.9.8g
> [Mon Nov 03 04:28:16 2008] [info] mod_wsgi: Initializing Python.
> [Mon Nov 03 04:28:16 2008] [info] mod_wsgi (pid=9471): Attach
> interpreter ''.
> [Mon Nov 03 04:28:16 2008] [info] mod_wsgi (pid=9471): Adding '/srv/
> www/appwsgi/www/lib' to path.
> [Mon Nov 03 04:28:16 2008] [info] mod_wsgi (pid=9473): Attach
> interpreter ''.
> [Mon Nov 03 04:28:16 2008] [info] mod_wsgi (pid=9473): Adding '/srv/
> www/appwsgi/www/lib' to path.
> [Mon Nov 03 04:28:16 2008] [info] mod_wsgi (pid=9474): Attach
> interpreter ''.
> [Mon Nov 03 04:28:16 2008] [info] mod_wsgi (pid=9474): Adding '/srv/
> www/appwsgi/www/lib' to path.
> [Mon Nov 03 04:28:16 2008] [info] mod_wsgi (pid=9475): Attach
> interpreter ''.
> [Mon Nov 03 04:28:16 2008] [info] mod_wsgi (pid=9475): Adding '/srv/
> www/appwsgi/www/lib' to path.
> [Mon Nov 03 04:28:16 2008] [info] mod_wsgi (pid=9476): Attach
> interpreter ''.
> [Mon Nov 03 04:28:16 2008] [info] mod_wsgi (pid=9476): Adding '/srv/
> www/appwsgi/www/lib' to path.
> [Mon Nov 03 04:28:16 2008] [notice] Apache/2.2.9 (Ubuntu) mod_ssl/
> 2.2.9 OpenSSL/0.9.8g mod_wsgi/3.0-TRUNK Python/2.5.2 configured --
> resuming normal operations
> [Mon Nov 03 04:28:16 2008] [info] Server built: Sep 19 2008 13:43:21
> [Mon Nov 03 04:28:22 2008] [info] mod_wsgi (pid=9477): Attach
> interpreter ''.
> [Mon Nov 03 04:28:22 2008] [info] mod_wsgi (pid=9477): Adding '/srv/
> www/appwsgi/www/lib' to path.
> [Mon Nov 03 04:28:23 2008] [info] mod_wsgi (pid=9478): Attach
> interpreter ''.
> [Mon Nov 03 04:28:23 2008] [info] mod_wsgi (pid=9478): Adding '/srv/
> www/appwsgi/www/lib' to path.
> [Mon Nov 03 04:28:23 2008] [info] mod_wsgi (pid=9479): Attach
> interpreter ''.
> [Mon Nov 03 04:28:23 2008] [info] mod_wsgi (pid=9479): Adding '/srv/
> www/appwsgi/www/lib' to path.
> [Mon Nov 03 04:28:29 2008] [info] [client 80.200.208.100] mod_wsgi
> (pid=9474, process='', application=''): Loading WSGI script '/srv/www/
> appwsgi/www/upload2/upload.py'.
> [Mon Nov 03 04:28:29 2008] [error] [client 80.200.208.100] mod_wsgi
> (pid=9474): Target WSGI script '/srv/www/appwsgi/www/upload2/
> upload.py' cannot be loaded as Python module.
> [Mon Nov 03 04:28:29 2008] [error] [client 80.200.208.100] mod_wsgi
> (pid=9474): Exception occurred processing WSGI script '/srv/www/
> appwsgi/www/upload2/upload.py'.
> [Mon Nov 03 04:28:29 2008] [error] [client 80.200.208.100] Traceback
> (most recent call last):
> [Mon Nov 03 04:28:29 2008] [error] [client 80.200.208.100]   File "/
> srv/www/appwsgi/www/upload2/upload.py", line 3, in <module>
> [Mon Nov 03 04:28:29 2008] [error] [client 80.200.208.100]     import
> re,sessions
> [Mon Nov 03 04:28:29 2008] [error] [client 80.200.208.100]
> ImportError: No module named apache
> [Mon Nov 03 04:28:40 2008] [info] [client 80.200.208.100] mod_wsgi
> (pid=9475, process='', application=''): Loading WSGI script '/srv/www/
> appwsgi/www/upload2/upload.py'.
> [Mon Nov 03 04:28:40 2008] [error] [client 80.200.208.100] mod_wsgi
> (pid=9475): Target WSGI script '/srv/www/appwsgi/www/upload2/
> upload.py' cannot be loaded as Python module.
> [Mon Nov 03 04:28:40 2008] [error] [client 80.200.208.100] mod_wsgi
> (pid=9475): Exception occurred processing WSGI script '/srv/www/
> appwsgi/www/upload2/upload.py'.
> [Mon Nov 03 04:28:40 2008] [error] [client 80.200.208.100] Traceback
> (most recent call last):
> [Mon Nov 03 04:28:40 2008] [error] [client 80.200.208.100]   File "/
> srv/www/appwsgi/www/upload2/upload.py", line 3, in <module>
> [Mon Nov 03 04:28:40 2008] [error] [client 80.200.208.100]     import
> re,sessions
> [Mon Nov 03 04:28:40 2008] [error] [client 80.200.208.100]
> ImportError: No module named apache
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to